sql server error codes list
On PHP: Include does work for me?
I applied a code for email subscribers and I separated the code for database connection in a separate file and used include to reduce code in the main programs, but it seemed that the include statement I used did not work for reason I could not understand. To solve this issue, I included all the code for the database connection in the main program and it worked. I should appreciate it if any one can explain why the include statement did'nt work for me.
function doDB() {
global $mysqli;
//connect to server and select database; you may need it
$mysqli = mysqli_connect("localhost", "root", "acrobat2", "testDB");
//exit;
//if connection fails, stop script execution
if (mysqli_connect_errno()) {
printf("Connect failed: %sn", mysqli_connect_error());
exit();
}
}
function emailChecker($email) {
global $mysqli, $check_res;
//check that email is not already in list
$check_sql = "SELECT id FROM subscribers WHERE
Use require(" "); instead of include... If you need help, contact me. I'm a Web Developer.
[phpzon]sql server error codes list, 5, Electronics[/phpzon]
[phpbay]sql server error codes list, 30, "11211"[/phpbay]
How to make a WoW WoTLK private server for 3.1.3 (easy)