Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEWBIE: Error opening db

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
here is my code:
<?php
$link = mysql_connect(&quot;localhost&quot;,&quot;username&quot;,&quot;password&quot;);
$db = &quot;databasename&quot;;
if(!$link)
die(&quot;Could not connect&quot;);
mysql_select_db($db,$link)
or die(&quot;Could not open $db: &quot;.mysql_error());
?>

and I get this error:

Parse error: parse error on line 41

line 41 is second die....

any thoughts?

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top