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
What you should look for is an encapsulation mecanism. For example you could create a classe User that would correspond to a rows of SQL table "user". Then you could get his id just with a single line:
$user->getID();
You could also create a class that would aggregate all the user and then use something like this:
$collection->getUserID("3435563");
But really there isn't a simpler way to do it in my knowledge.