SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: i'm a big dummy, help me
-
Jul 8, 2001, 22:23 #1
i'm a big dummy, help me
PHP Code:$tablename = "songs";
$link = mysql_connect($host, $user, $password);
$query = "INSERT into $tablename values ('0','$array[artist]','$array[songtitle]','$array[file]','$array[review]','$array[date]','0','1')";
print("your query is:<br> $query <p>\n");
if (mysql_db_query($query, $dbname, $link)) {
print("thanks, the audio was added successfully<br>\n");
}else{
print("you messed up, try again<br>\n");
}
mysql_close($link);
?>
-
Jul 8, 2001, 22:29 #2
- Join Date
- Jul 1999
- Location
- Chicago
- Posts
- 2,629
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try adding this somewhere in your code:
echo mysql_error();
And tell us what the error message is.
-
Jul 8, 2001, 23:51 #3
mysql_db_query was mixed up. i fixed it and it works now.
Bookmarks