Search found 3 matches
- Fri Sep 27, 2013 8:48 am
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 5998
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: 5998
Re: how to convert MySQL to MySQLi
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}'"); return (mysql_re...
- Thu Sep 26, 2013 11:23 am
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 5998
how to convert MySQL to MySQLi
Convert this
.....................
sorry for my eng
return (mysql_result($total, 0) == '1') ? true : false;to MySQLI ?
.....................
sorry for my eng