mysql query not showing results

Dieseltofo

New Member
Newish to mysql. I have a query and it is not showing the value of the cell just the row name:\[code\]$sql="SELECT 'first' from `users` WHERE `id`= $userid ";$res=mysql_query($sql) or die(mysql_error());$row=mysql_fetch_assoc($res); echo $row['first'] ; \[/code\]What am I doing wrong????
 
Back
Top