Search found 3 matches
- Fri Sep 27, 2013 8:48 am
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 3455
Re: how to convert MySQL to MySQLi
Ohh, thank you
- Fri Sep 27, 2013 7:38 am
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 3455
Re: how to convert MySQL to MySQLi
[syntax=php] function valid_credentials($user, $pass){ global $mysqli; $user = $mysqli->real_escape_string($user); $pass = $mysqli->real_escape_string($pass); $total = $mysqli->query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}' AND `user_password` = '{$pass}'"); retu...
- Thu Sep 26, 2013 11:23 am
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 3455
how to convert MySQL to MySQLi
Convert this
[syntax=php]return (mysql_result($total, 0) == '1') ? true : false;[/syntax]
to MySQLI ?
.....................
sorry for my eng
[syntax=php]return (mysql_result($total, 0) == '1') ? true : false;[/syntax]
to MySQLI ?
.....................
sorry for my eng