Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php sql insert prob. Need advice and maybe a solution.
Old 11-22-2007, 03:25 AM php sql insert prob. Need advice and maybe a solution.
VirusDoctor's Avatar
Skilled Talker

Posts: 53
Name: Shaun
Trades: 0
I’m experiencing a few small problems with my code on a registration page I'm creating.
Firstly, my email validation code doesn’t seem to be working, it checks to see if an email address has been entered, but that’s it, for some reason its bypassing the other “else if” statement.

The other problem is that I can’t seem to get the script to insert the data into mysql, I’ve tried various things. I think it might have something to do with my true/false statements.



Keep in mind that I'm still a n00b when it comes to php and I'm learning daily.
If anyone can fix my problems, please comment what you fix properly.


Any help would be appreciated.
Attached Files
File Type: zip register.zip (3.5 KB, 0 views)
VirusDoctor is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-22-2007, 04:37 AM Re: php sql insert prob. Need advice and maybe a solution.
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Being a noob does not excuse your desire to get your problems solved by others. Obviously you should ask not to fix your problems but to teach you how to fix them.

Can you tell me what exactly works not as you expect?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 11-22-2007, 07:40 AM Re: php sql insert prob. Need advice and maybe a solution.
VirusDoctor's Avatar
Skilled Talker

Posts: 53
Name: Shaun
Trades: 0
Well I kinda meant help, not do it for me. And if someone was to do it for me, please comment a lot so that I may learn from it.

As for telling you exactly what isn't working correctly, I was under the impression I did that in my first post

basically there's a form to input user data (name, username, email etc) now I've created a bunch of validation checks but the above (in my first post) isn't working for the email validation check.

I also tried inserting the data into mysql as you will see in the attatched php.
VirusDoctor is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php sql insert prob. Need advice and maybe a solution.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43025 seconds with 13 queries