Is there a quick and dirty way to get the value of one column from one row? Right now I use something like this:
$result = mysql_query(\"SELECT value FROM ta
Try this:
$result = mysql_query("SELECT value FROM table WHERE row_id='1'"); $row = mysql_fetch_row($result); return $row[0];
Create a simple function to contain your lookup-code, which you can call for your database lookups in a single statement.