Jump to content

how to send info to database (noob at this)


rallokkcaz

Recommended Posts

im wondering how to submit info into a database.

 

i know the code goes something lie

$sql = "UPDATE <tablename> set $var = "var"

 

but i know that is wrong

and i want to put it in form so on submit it posts it in the database

 

any help?

 

Thanks.

There are alot of excellent tutorials on php mysql.  Do a search on google for php mysql tutorial and it will bring up tons.  There are also tutorials on the front page of phpfreaks.  That is how I learned how to do alot of my php/mysql.

 

for update you would need something like

"update table_name set name='$name', name2='name2', etcifmore where id='$id'"

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.