Script needed to add data via web page
Posted: Mon Sep 02, 2002 5:24 pm
I have a database, call it "data". There's a table in it called "movies". The parameters for the entries is :
Title varchar (50) not null, primary key
genre (enum - horror, action, comedy, etc)
format (enum - dvd, video, vcd, etc)
no of cd's (int 2 unsigned).
I have written a script whereby I enter the whole INSERT query and it works, but I am trying to write a script where I can just enter the values into a web page, hit submit, and it enters the values into the database. I have tried a variety of script attempts, but have got nowhere !!! I admit I am a complete noobie at this, and have been trying to learn this for a week (I hadent even tried html until last week).
Can anybody help, or even post a script that they use that I could edit ??
Thanks in advance.
Pha3dr0n
Title varchar (50) not null, primary key
genre (enum - horror, action, comedy, etc)
format (enum - dvd, video, vcd, etc)
no of cd's (int 2 unsigned).
I have written a script whereby I enter the whole INSERT query and it works, but I am trying to write a script where I can just enter the values into a web page, hit submit, and it enters the values into the database. I have tried a variety of script attempts, but have got nowhere !!! I admit I am a complete noobie at this, and have been trying to learn this for a week (I hadent even tried html until last week).
Can anybody help, or even post a script that they use that I could edit ??
Thanks in advance.
Pha3dr0n