S
S
Spark1082016-04-10 15:27:43
PHP
Spark108, 2016-04-10 15:27:43

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

4 answer(s)
T
trevoga_su, 2016-04-10
@spark108

www.database.phpinfo.su - developed a long time ago, brought to mind recently. there will be questions - write

I
IceJOKER, 2016-04-10
@IceJOKER

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

Hmm, how different they are))
I also once started with mysql , but there were absolutely no problems with the transition to mysqli, not only to the procedural style, even to OOP (considering that I knew OOP "very well" then) )

Z
zooks, 2016-04-10
@zooks

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.

I
Ildar Saribzhanov, 2015-03-11
@Bluz

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 'Заблокирована отправка сообщений';
}

If they don't leave, write to the host.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question