Computers |
|
| | #1 (permalink) |
| Monster Techie | Ok, on my quest of learning PHP and MySQL, i want to make a simple database project. Here's what I want to do: Create a page where users just use a simple inputbox and drop down list to answer to questions 'name' and 'something (i haven't decided hahah)' and i just want to be able to store it to the database, and then on a sperate page i want to be able to call and print the database. I am good at this part, calling and printing the database. But I just want to know how I would go about taking the user input and storing it . This would be a much appreciated reply with instructions or a website or something like that ![]() Thanks ~Shan
__________________ C:\\ Is the root of all evilphiber@sysdum.com spam this account, it's fun. |
| | |
| | #2 (permalink) |
| the flaming hermit | You might wanna try this PHP/MySQL tutorial.. it looks pretty simple http://www.freewebmasterhelp.com/tutorials/phpmysql/1 |
| | |
| | #3 (permalink) |
| Monster Techie | ****, looks good. Why couldn't i find that site ? hahaha
__________________ C:\\ Is the root of all evilphiber@sysdum.com spam this account, it's fun. |
| | |
| | #4 (permalink) |
| Monster Techie | Ok, techies: Riddle me this. Here's the form, PHP Code: PHP Code: EDIT: Actually what it's doing is creating 2 more rows (blank rows) every time you submit. So say there are 8 rows, you enter your name and choose your OS. Well on row 9 should reside the name and OS, but it is blank, along with an added row, 10, which is also blank? ![]() Thanks for all of your help!!!! ![]() ~Shan
__________________ C:\\ Is the root of all evilphiber@sysdum.com spam this account, it's fun. |
| | |
| | #5 (permalink) |
| Monster Techie | argh, I've modified the script to this now, PHP Code: Well, now I only get 1 blank line, i guess I'm making progress? ahhahaha
__________________ C:\\ Is the root of all evilphiber@sysdum.com spam this account, it's fun. |
| | |
| | #6 (permalink) | |
| Monster Techie | Hey Shan, I found this on the php website, could this be your problem? Quote:
__________________ C:\\ Is the root of all evilphiber@sysdum.com spam this account, it's fun. | |
| | |
| | #8 (permalink) |
| Monster Techie | OH WOW, it's about time i figure this out. Thanks for all you help Shan!!! lmfao!! hahhahhaha ![]() I'm bored at work, hahaha and I didn't sleep well last night, so I'm a little odd today. It's kinda funny I actually found this while on an ASP site researching some stuff for work. I'm so happy.
__________________ C:\\ Is the root of all evilphiber@sysdum.com spam this account, it's fun. |
| | |
| | #9 (permalink) |
| Junior Techie Join Date: Oct 2002
Posts: 90
| OK let me fix up your script a bit..........some of your messaging techniques are quite odd, especially because your script prints "Database updated" before the database is even queried, so if it fails, you look like an idiot. Here's my revisions: PHP Code: ![]() |
| | |