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" <[EMAIL PROTECTED]>
To: "WebMaster. Radio ECCA" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
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;
}

Reply via email to