Snukzz Posted December 6, 2004 Author Report Share Posted December 6, 2004 :D Nu pag te buus: features preces produktu fiichas Link to comment Share on other sites More sharing options...
Snukzz Posted December 7, 2004 Author Report Share Posted December 7, 2004 (edited) :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 December 7, 2004 by Snukzz Link to comment Share on other sites More sharing options...
bubu Posted December 7, 2004 Report Share Posted December 7, 2004 (edited) 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 December 7, 2004 by bubu Link to comment Share on other sites More sharing options...
Snukzz Posted December 7, 2004 Author Report Share Posted December 7, 2004 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 More sharing options...
Snukzz Posted December 7, 2004 Author Report Share Posted December 7, 2004 aa nee viss ir OK,.... htmlspecfialchars! Link to comment Share on other sites More sharing options...
Venom Posted December 7, 2004 Report Share Posted December 7, 2004 mmm htmlspecfialchars() vispirms apskaties, pēc tam postē varbūt tu kādam no mums samaxāsi un mēs tev beidzot uztaisīsim ? Link to comment Share on other sites More sharing options...
Snukzz Posted December 7, 2004 Author Report Share Posted December 7, 2004 varbuut... Link to comment Share on other sites More sharing options...
Recommended Posts