It all depends on you, I basically get used on using mysql_fetch_array which
returns an associative array.
$result = mysql_query("SELECT name, lastname, age FROM table");
$ra = mysql_fetch_array($result);
$ro = mysql_fetch_object($result);
$rr = mysql_fetch_row($result);
echo "name is :" . $ra["name"]; // array
(same as: echo "name is:" . $ra;
echo "name is:" . $ro->name; // object
echo "name is:" .$rr;
just like the mysql_fetch_array() cause it returns both enumarated and
"Kevin" <[EMAIL PROTECTED]> wrote in message
> I have been coding php for a while now but can't seem to get a grasp on
> which type of query I should use for a given situation.
> Perhaps there is no right answer or perhaps the answer comes with
> experience. In any case, I would love to get some pointers.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]