Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is this not working?

Status
Not open for further replies.

frankalbers

Programmer
Jan 3, 2002
3
0
0
DE
Can somebody tell me why this does not put data in mySQL table?
<?php

$db = mysql_connect(&quot;db.cupbase.f2s.com:3306&quot;,&quot;username&quot;,&quot;password&quot;)
or die (&quot;Could not connect to database&quot;);

mysql_select_db (&quot;nameofdatabase&quot;,$db);

$link = mysql_db_query (&quot;INSERT INTO bird (sales_id, bird_id, status, purchase_id, vet_id, weight_id, skingrade) values ('$textfield2', '$textfield3', '$textfield4', '$textfield5', '$textfield6', '$textfield7', '$textfield8')&quot;,$db);

mysql_close ($db);

?>

Thanx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top