Can I mix MySQL APIs in PHP?
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.
I have problem with php code connecting to MySQL
You can not mix mysql_*
and mysqli_*
functions, they are two different APIs. The mysql_*
functions have been deprecated and should no longer be used. mysqli_*
doesn't have an equivalent function, but you can do mysqli_query($link_id, 'SHOW DATABASES')
and then iterate over the results. See mysqli_query()
for examples.
Related Topics
Laravel Eloquent How to Get the Minimum Value That Is Not Null
How to Pass an Array Within a Query String
Loop Row in Bootstrap Every 3 Columns
Laravel Unique Validation on Multiple Columns
How to Get the Values of Input Using PHP
How to Install and Use PHP on Macos Via Brew
Get Total Number of Members in Discord Using PHP
Finding the Longest Gap Between Multiple Intervals
Success Message Pop-Up After from Submit Button Clicked
How to Deal With Json That Is Encoded Twice
How to Use Find in Set for User Rankings Based on Score
Disable the Button in the Table Based on the Td Text
Displaying Data from an Array in a HTML Table Using PHP
How to Get Values of Checkbox Array in Laravel 5
Comparing Date from Variable to MySQL Date