Jump to content

Unable To Spot ';' Error In 4 Lines


yshua

Recommended Posts

Dear Code Talking People:

 

Following code:

 

<?php
 $mysql = mysql_real_connect('localhost', 'root', '***********', '*******');
 if (!$mysql {
   die('Could not connect: ' . mysql_error());
 }

?>

 

gets this emsg:

 

Parse error: syntax error, unexpected ';' in C:\Program Files (x86)\Apache Software Foundation\

Apache2.2\htdocs\includes\db.php on line 4

 

Probably obvious, but oblivious,

Yshua

Link to comment
https://forums.phpfreaks.com/topic/269135-unable-to-spot-error-in-4-lines/
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.