>What I would do would instead be to put an 
>index on that column, then with a simple select 
>check if that username is free or not. Based on 
>what I get in return I can then either insert the 
>data or return the form to the visitor with information 
>about it. Much more simple in the long run.

I don't see how this method is simpler than querying the table to see if
user name exists then returning true or false. Either way you are inserting
the data or returning and error to be displayed on the form.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to