im using 1.4.7 server files and im new to pw servers and my dedi PHP extension is mysqli, its not mysql. so when im going to register a new user with registration page say cannot execute, please help me with this problem if someone can :(:
Printable View
im using 1.4.7 server files and im new to pw servers and my dedi PHP extension is mysqli, its not mysql. so when im going to register a new user with registration page say cannot execute, please help me with this problem if someone can :(:
Do you have an authd that works with that ?
I will admit I don't know the differences between the two though, as I only use MySQL
there is small deference between MySQL and MySQLi
Here is MySQL
MySQLiCode:$DB["dbName"] = "emails";
$DB["host"] = "localhost";
$DB["user"] = "root";
$DB["pass"] = "";
$link = mysql_connect($DB['host'], $DB['user'], $DB['pass']) or die("Unable to connect to the SQL server");
mysql_select_db($DB['dbName']);
I dont know everything but i know something :D as i know i tired to explain i post someone will give me a solution for this problem :/Code:$mysqli = new mysqli("localhost", "user", "password", "database");
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
Edit :
I fixed myself :D, close the thread 343
just replace mysql to mysqli
PHP: mysqli - Manual
read this, very usefull :)
Excellent, always like it when a person is able to help themselves too :D
and per being resolved and your request:
[s]closed[/s]