Re: Retrieving Image Location in MySQL
| From: | Mattyasovszky Janos | Date: | Mon, 02 Mar 2009 14:29:14 +0000 |
| Subject: | Re: Retrieving Image Location in MySQL | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46013@lists.php.net to get a copy of this message | ||
Fortuno, Adam írta:
//Write a query to pull out the picture's path $sql = "SELECT path FROM Image WHERE ID = %s"; mysql_real_escape_string($value);Sorry, but this won't work, since you don't map the value of the escaped $value to the %s, lets say with sprintf()... Regards, Matya