RE: [PHP] returning ONE field from a mySQL database, beginner

From: Date: Wed, 12 Jul 2000 15:07:48 +0000
Subject: RE: [PHP] returning ONE field from a mySQL database, beginner
Groups: php.general 
Request: Send a blank email to php-general+get-6150@lists.php.net to get a copy of this message
> So far so good. However, I also want to print the > description from the database below the picture. > So I tried eleventeen versions of the following: > $query = "SELECT Description FROM pictures WHERE Name = '$pic'"; > $description = MYSQL_QUERY($query); > print "$description</center>"; $description contains only the link identifier that is used with your database functions. Check out: mysql_result() mysql_fetch_array() et al. Chris

« previous php.general (#6150) next »