Jump to content

Parse error: syntax error, unexpected T_STRING


kdford10

Recommended Posts

I am testing my script on the web, but it says a Parse error: syntax error, unexpected T_STRING in line 5.

I have researched everywhere, and I don't see the error. Do you?

 

<?php

function myproject_connect ()

{

$dbh = new PDO("mysql:host=localhost;dbname="custom", "username", "password");

$dbh->setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

return ($dbh);

}

 

?>

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.