How to display MySQL Select statement results in PHP

Posted by Vafello on Stack Overflow See other posts from Stack Overflow or by Vafello
Published on 2010-04-19T15:25:44Z Indexed on 2010/04/19 15:33 UTC
Read the original article Hit count: 253

Filed under:
|
|
|

I have the following code and it should return just one value (id) from mysql table. The following code doesnt work. How can I output it without creating arrays and all this stuff, just a simple output of one value.

$query = "SELECT id FROM users_entity WHERE username = 'Admin' ";
$result = map_query($query);
echo $result;

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql