jacek wrote:The above method is correct, although it would be better to use the mysql COUNT() function.
I'm just happy I got it right
![Razz :P](./images/smilies/icon_razz.gif)
![Razz :P](./images/smilies/icon_razz.gif)
![Razz :P](./images/smilies/icon_razz.gif)
jacek wrote:The above method is correct, although it would be better to use the mysql COUNT() function.
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\trabajos\ta2shop - tienda\administracion\postal-code\index.php on line 46
jacek wrote:I was thinking more of
[syntax=sql]WHERE `postal` = '$postal_code'[/syntax]
Unsure on the column names though