|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
please any1 can help with this? i am trying to check if the username already exist in the databse, and if so tell the user to choose another, but i get this error:Parse error: parse error in reg_form.php on line "if (mysql_num_rows($sql_username_result > 0)"
PHP Code:
|
|
#2
|
|||
|
|||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
still does not work
thanks , i corrected that but still does not work. i ve got thismessage Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in reg_form2.php on line mysql_num_rows
i believe it is something to do with mysql_num_rows but i can not find what cheers |
|
#4
|
|||
|
|||
|
Try this:
PHP Code:
That should fix your problem...
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#5
|
|||
|
|||
|
thanks people!!
i got it working! cheers |
|
#6
|
|||
|
|||
|
Was it something other than what we advised? If so, would you mind letting us know... I'm curious to know what it was.
|
|
#7
|
|||
|
|||
|
hi
yeah.... sorryy for not postin before.
to be honest it was a wierd error i vave not got for ages.....but as normally happens it was just a silly mistake , too many hour staring at the screen and too little coffee. it was a sitnax error.... i close the if staement ( extra.that was it...... thanks again |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > check existing username in database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|