Jump to content

[SOLVED] Cant Get Info From MySQL


andrew6607

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.