If I know the query only returns one row, and more specefically, in this case one value,
$full_name = database::query("SELECT concat (fname, ' ', lname) from cr WHERE email='$email'");
how do I get that value into a single variable. Database::query returns the value form mysql_query. The query above insert “Resource ID 4” in to mysql table.


I don’t know about
database::query(), butmysql_query()does indeed return a resource.Once you have that resource, you must fetch your data from it, using, for example,
mysql_fetch_array():Note that there are several
mysql_fetch_*function, depending on what kind of result your want (array, object, …) :mysql_fetch_row()mysql_fetch_object()mysql_fetch_assoc()