No, you can’t use mysql
and mysqli
together. They are separate APIs and the resources they create are incompatible with one another.
There is a mysqli_close
, though.
More Related Contents:
- How to check if a row exists in MySQL? (i.e. check if username or email exists in MySQL)
- mysqli or PDO – what are the pros and cons? [closed]
- How to prevent duplicate usernames when people register?
- What is the difference between MySQL, MySQLi and PDO? [closed]
- PHP PDO and MySQLi [duplicate]
- Unknown database error in PHP but it exists in PHPMyAdmin
- PHP: mysql v mysqli v pdo [closed]
- PDO support for multiple queries (PDO_MYSQL, PDO_MYSQLND)
- Error when preparing a multiple insert query
- mysqli last insert id
- mysqli: can it prepare multiple queries in one statement?
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- How to call a MySQL stored procedure from within PHP code?
- Using MySQLi from another class in PHP
- How do I display a MySQL error in PHP for a long query that depends on the user input? [duplicate]
- Insert multiple rows with PDO prepared statements
- Do SQL connections opened with PDO in PHP have to be closed
- What is the advantage of using try {} catch {} versus if {} else {}
- Alternative for mysql_num_rows using PDO
- ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it
- Can I blindly replace all mysql_ functions with mysqli_?
- return one value from database with mysql php pdo
- Trying to access array offset on value of type bool
- return multiple response data in one response
- How to get a query error from prepare() in PDO PHP?
- How can I pass an array of PDO parameters yet still specify their types?
- PHP PDO how to run a multiple query request?
- Cannot figure out how to run a mysqli_multi_query and use the results from the last query
- How to get a list of databases?
- PDO and MySQL ‘between’