View Single Post
  #2 (permalink)  
Old April 19th, 2008, 13:06 PM
binary8383 binary8383 is offline
Jr. Member

Join Date: Apr 2008
Location: California
Posts: 156
BRL$: 18.33
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 33
binary8383 is on a distinguished road
Smile Re: MySQL General: Retrieving Data from a table

hope this help

<?php

$conn = mysql_connect("localhost", "*****", "**********");
mysql_select_db("car");

$sql = "select speed from ford limit 1";

$res = mysql_query($sql, $conn) or die(mysql_error());

if($res && mysql_num_rows($res))
{
while ($rows = mysql_fetch_array($res))
{
echo "speed is ".$rows['speed'];
}

}

mysql_free_result($res);
?>


Jobs In !!! - Post Jobs, Hire Employees, Create Blogs and Earn Money.
Reply With Quote