Re: Links with parameters in DB

From: Date: Thu, 19 Aug 2004 12:34:47 +0000
Subject: Re: Links with parameters in DB
Groups: php.general 
Request: Send a blank email to php-general+get-194247@lists.php.net to get a copy of this message
It doesn´t work, I have other fields in the DB apart from the field 'Link', so if I use $link = eval($result); I get a parse error. Apart from that, I have to write the name of the field (link), if not the server won´t know the field I´m refering to. Thanks ----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "WebMaster. Radio ECCA" <webmaster@radioecca.org>; <php-general@lists.php.net> Sent: Thursday, August 19, 2004 1:28 PM Subject: RE: [PHP] Links with parameters in DB [snip] $i=0; $q="select * from links'"; while ($i<mysql_num_rows($result)) { $link=eval(mysql_result($result,$i,"link")); ..... ..... and then i put this: [/snip] What happens if you do this? while($i < mysql_num_rows($result)){ $link = eval($result); echo $link; }

« previous php.general (#194247) next »