Hi, once again!
I have just seen a problem i have in one of my scripts which takes data from a form. The user keys in an amount, in numbers, which then gets put into a database.
The only problem i have is that the user can enter in text as well, and an error is given. I have tried using javascript validation, but it still goes and enters all the data into my mysql database anyway! Any help would be appreciated.
I also have a few other questions, one concerning the time() function, and possibly one to do with sql codeing. I have built myself a user messaging system, and when someone sends a message to another person, it enters all the information into a database, with time() as the timestamp. What i can't work out is how to turn this (the number it comes out with) back into a readable date and time. Also with this messaging system, when someone goes to read their messages, it will just display all of them on one page! I was wondering how you could get it to display the first 5 results, then have a link to look at the next 5 etc (i was wondering if this was to do with the SQL code).
The last question is to do with email functions in php. I have a register page which i have built, but i was wondering how i could get the code to email the user with their details, plus a link to activate their account (perhaps someone knows a good tutorial to do with this.)
Thanks for your time,