mysql_num_rows error - help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

TheOracle wrote: Also, how do 'validate' $_POST['username']?
If you mean validate as in checking for sql injections just do this

Code: Select all

<?php
addslashes($_POST['username'])
?>
Post Reply