18.08.2013, 05:50
@Prodigy: If the connection to the MySQL server doesn't even exist, how do you expect to run a query? What would be the point...?
@.Mento: Yes, mysql_ping has been removed. Take a look at some of the examples in the previous pages of using mysql_errno to determine if the connection to the MySQL server succeeded or not.
@d711728: You're pretty much doing it correctly. This would be the correct way:
@.Mento: Yes, mysql_ping has been removed. Take a look at some of the examples in the previous pages of using mysql_errno to determine if the connection to the MySQL server succeeded or not.
@d711728: You're pretty much doing it correctly. This would be the correct way:
pawn Код:
format(string, sizeof(string), "%d rows were affected.", cache_affected_rows());