Re: Links with parameters in DB

From: Date: Thu, 19 Aug 2004 13:01:45 +0000
Subject: Re: Links with parameters in DB
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194249@lists.php.net to get a copy of this message
I tried what you said but i get an eval error: Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d code on line 1 ;( ----- 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:38 PM Subject: RE: [PHP] Links with parameters in DB [snip] 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. [/snip] Then did you eval that? I meant for you to use a proper rendering of the eval statement by itself, i.e. $sql = "SELECT * FROM table "; $result = mysql_query($sql, $connection); while($row = mysql_fetch_array($result)){ $link = eval($row['Link']); echo $link; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#194249) next »