whoops...hit that darned Submit button a bit too early...
- Query the database a get back the result:
$result = mysql_db_query ( "associates", "SELECT * FROM friends WHERE name = 'John'");
- Take the result and return the row(s) as an array.
I assume you'll be returning one row since we placed a condition to grab the row with name = 'John', so...
$row = mysql_fetch_array ($result);
echo $row["name"];
Or if you return mulitple rows:
while ($row = mysql_fetch_array ($result)😉{
echo $row["name"];
}
My suggestions, play with it and read the manual until it makes sense. I taught myself PHP in a week basically by approaching it like, "I want to do this." And following through till it worked ;-)
Good luck!