QUESTOMNI
asked on
Can't get script to connect to database connect script in root.
Can't get script to connect to database connect script in root. It's 2 levels up. Getting HTTP 500 response
register.php
register.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If it's in the 'root', you should be able to use...
require ('/mysqli_connect.php');
Hmmm, that about covers the possibilities; other than hard coding an absolute path.
Cd&
Cd&
After you get connected to the data base, you might want to learn about this:
http://php.net/manual/en/mysqli.real-escape-string.php
http://php.net/manual/en/mysqli.real-escape-string.php
ASKER
Thanks.
Cd&