Jump to content

return cell in mysqli


rubing

Recommended Posts

$sql = "SELECT cow,cheese FROM `animals` WHERE `farm`='Hillshire'";
$res = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_assoc($res);
echo "The cow, <b>".$row['cow']."</b> that made the cheese, <b>".$row['cheese']."</b> was from <b>Hillshire Farms</b>";

 

get it? (technically the statement above is false)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.