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! Quote Link to comment 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']; Quote Link to comment Share on other sites More sharing options...
andrew6607 Posted February 6, 2008 Author Share Posted February 6, 2008 It Worked Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.