Jump to content
php.lv forumi

Tātad, errors smadzenēs...


Snukzz

Recommended Posts

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

:huh: ... kaad lai pasaka... kaa lai sito uzraksta pareizi...

 

<TABLE>
<?php
$prece_id=user_num($_GET['prece']);
$f_res=mysql_query('SELECT * FROM pro_feat WHERE preces_ID ='.$prece_id);
while($f_row=mysql_fetch_row($f_res)){
?>
$f2_res=mysql_query('SELECT * FROM features WHERE ID ='$f2_row[1]);
while($f2_row=mysql_fetch_row($f_res)){
<TR><TD><?=$f2_row[1]?></TD></TR>
<?
}
}
?>
</TABLE>

:ph34r:

Edited by Snukzz
Link to comment
Share on other sites

Produkta, kuram ID zināms, fīčas vajag? Ja jā, tad::

<table><tr><th>Fīča:</th><th>Vērtība:</th></tr>
 <?php
   $prece_id = (int)$_GET['prece'];
   $res = mysql_query(
     "SELECT nos, veert FROM pro_feat pf, features f " . 
     "WHERE pf.features_ID = f.ID AND pf.preces_ID = $prece_id");
   while ($row=mysql_fetch_row($res)){
     echo '<tr><th>' . htmlspecfialchars($row[0]) . 
          '</th><th>' . htmlspecfialchars($row[1]) . '</th></tr>';
   }
 ?>
</table>

Edited by bubu
Link to comment
Share on other sites

maneejais pretii izbljaava kaut ko par htmlspecialchars

 

Fatal error: Call to undefined function: htmlspecfialchars() in D:\WEB\ILB\include\feat.php on line 11

Link to comment
Share on other sites


×
×
  • Create New...