I'm tryin to figure this out.
Let's say that I run the following query against a db;
$email =mysql_query("select email from cust where cstid='4'") or
die(mysql_error());
What exactly does this pull?
It would seem that since only one record is being pulled "email" that the variable $email would have to whatever data was pulled from the database.
BUT
I can't seem to do anything with the data that is pulled with out running a mysql_fetch_array of the result.
$row=mysql_fetch_array($email);
$email= $row["email"];
echo $email;
would allow me to display to the screen the e-mail address that I pulled.
I've looked in the manual on the php.net, and the answer confused me slightly.
It stated that the mysql_query function will generate a positive if the query is doable and negative if it is not. It doesn't say anything about how the data is pulled, or what format the data is in as it is pulled.
Does my question even make sense?
Help