Answer the question
In order to leave comments, you need to log in
Is there a library for working with mysqli mysql methods?
I'm used to working with mysql, but everywhere I meet that it is unsafe, etc., as well as that it will soon disappear from php builds.
It's hard for me to work with MySQLi or PDO. I can't understand how it works, but with Mysql everything is much easier. Made a connection mysql_connect(); and execute queries mysql_query(); rather than write a huge amount of code in MySQLi and parse all errors, and so on.
Is there such a library with which you can perform database queries using MySQL methods, but at the same time the library itself transfers everything through MySQLi, well, or PDO?
Answer the question
In order to leave comments, you need to log in
www.database.phpinfo.su - developed a long time ago, brought to mind recently. there will be questions - write
What? For MySQL && MySQLi users, it's still the same, with only minor changes.
php.net/manual/en/mysqli.query.php
mysql_connect() vs mysqli_connect()
mysql_query() vs mysqli_query
Nothing needs to be rewritten there: in most methods, replace mysql with mysqli, the rest is easy to google.
So forget that old mysql module already.
Once there was such a problem, you need to change the value of the field with the name="name" attribute, for example, to name="uname". Helped me.
And it may also be that the php's mail () function is blocked on the server, try executing:
$res = mail("[email protected]", "My Subject", "message");
if( $res ){
echo 'Сообщения отправляются';
} else {
echo 'Заблокирована отправка сообщений';
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question