Re: [PHP-DB] Retrieving Image Location in MySQL

[email protected] (Mattyasovszky Janos)
Newsgroups php.db
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.