Re: Will this return a value?
Posted by:
Jay Pipes
Date: June 26, 2005 09:35PM
No.
$sql = "SELECT prod_title FROM products WHERE prod_id = '" . $array['spec_prod_id'] . "'";
if ($result = mysql_query($sql)) {
$row = mysql_fetch_array($result);
$title = $row['prod_title'];
}
else {
echo 'Error: ' . mysql_error();
}
then you can use $title.
I'd recommend looking through the PHP manual for these functions. The manual has lots of examples for you to walk through.
Jay Pipes
Community Relations Manager, North America, MySQL Inc.
Got Cluster?
http://www.mysql.com/cluster
Personal:
http://jpipes.com
Subject
Written By
Posted
Re: Will this return a value?
June 26, 2005 09:35PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.