|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MySQL 5 - Mysqli_real_query vs mysqli_query
According to the PHP website, _query is the same as calling _real_query followed by _use_result or _store_result (Depending on the third parameter of _query). Is this the only difference between the two?
I presume not otherwise _real_query could get depreciated. As _query has the same functionality
__________________
~~==~~ Whoever said nothing is impossible never tried pushing a revolving door ~~==~~ |
|
#2
|
|||
|
|||
|
the data they return is different. The _real_query will just return true or false where _query will return an actual result object depending on the query. Sometimes you do want to just run a query that doesn't need a result and/or query, but not use the result if a condition is met. By just getting back the true/false, you save the time of having to run the extra functions on the result.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > MySQL 5 - Mysqli_real_query vs mysqli_query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|