Drezard Posted March 10, 2007 Share Posted March 10, 2007 Hello, what is the shortest code to retrieve variable(s) from a MySQL Database? I have a few variables i need retrieved and each time i do it, it takes up about 8 lines of code... - Cheers, Daniel Link to comment https://forums.phpfreaks.com/topic/42106-mysql-query-help/ Share on other sites More sharing options...
gerkintrigg Posted March 10, 2007 Share Posted March 10, 2007 $r=mysql_fetch_array(mysql_query("SELECT * FROM table WHERE id='1'")); echo $r['whatever']; Link to comment https://forums.phpfreaks.com/topic/42106-mysql-query-help/#findComment-204207 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.