Queries / variables
| From: | Ron Piggott | Date: | Sat, 06 Dec 2008 20:16:12 +0000 |
| Subject: | Queries / variables | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-45770@lists.php.net to get a copy of this message | ||
What is the correct syntax for this?
$description =
mysql_result($image_result,0,"photo_gallery_index.description_{$language}");
I am offering a web page in multiple languages. $language is what
language the user is requesting. There is a matching column in the
table for each language.
For example I may be trying to get the value of description_french
I am trying to use the variable instead of having several mysql_result
lines
Ron