andrew6607 Posted February 6, 2008 Share Posted February 6, 2008 Cant Get This To Get Info From The Database!! <?php $Host = "localhost"; $User = "****"; $Password = "*******"; $DBName = "news"; $TableName = "news"; $Conn = mysql_connect ($Host, $User, $Password) or die ( "MySQL Error!" ); //now lets do the query $Query = "SELECT * from $TableName"; $Result = mysql_db_query ($DBName, $Query, $Conn) or die ( "MySQL Error 2!" ); print ("$Result[content]"); ?> There Are NO Errors Displayed On The Page! Link to comment https://forums.phpfreaks.com/topic/89666-solved-cant-get-info-from-mysql/ Share on other sites More sharing options...
Stooney Posted February 6, 2008 Share Posted February 6, 2008 See if this helps. Also, what is the output you are getting? $data=mysql_fetch_assoc($Result); echo $data['content']; Link to comment https://forums.phpfreaks.com/topic/89666-solved-cant-get-info-from-mysql/#findComment-459449 Share on other sites More sharing options...
andrew6607 Posted February 6, 2008 Author Share Posted February 6, 2008 It Worked Thanks Link to comment https://forums.phpfreaks.com/topic/89666-solved-cant-get-info-from-mysql/#findComment-459452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.