![]() |
Check if value exist in mysql
PHP Code:
//Zubat |
mysql_num_rows returns the number of rows or false. The docs. So you should test against > 0.
NB The mysql library is deprecated - there is a stark warning against its use on the docs page - and will be removed in the future. The font tag is obsolete. Your LI tag is not closed properly, so your HTML is mal-formed. |
A better way:
PHP Code:
|
| All times are GMT +1. The time now is 09:38 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.