Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Php connect to dataBase

Explorer ,
May 24, 2007 May 24, 2007
ii have being getting erroe messages .. and everything seems to ok .. i dont know what the problem is ...this is the error {Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in G:\wamp\www\testApps\dataPage.php on line 13}
TOPICS
Server side applications
349
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 24, 2007 May 24, 2007
LATEST
scriptEater wrote:
> $sql = "SELECT * FROM friends;";

Remove the semicolon at the end of the SQL query. You need the semicolon
only if you're submitting the query in the MySQL Monitor. It should be:

$sql = "SELECT * FROM friends";

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines