Topic awaiting preservation: Problem checking for exsisting data (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Wales |
posted 03-25-2007 21:56
Following my lyrics database project, I'm taking user-input and checking if the artist already exsists within the database. If it does the data is appended to the artists record of songs and if not the Artist is added to the database in theroy. code: $query = "SELECT artist_name FROM artist WHERE artist_name = $artist"; $sql = mysql_query($query); $result = mysql_num_rows($sql);
code: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/official/public_html/lyrics/submitlyrics.php on line 20 Unknown column 'Eminem' in 'where clause'
|
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 03-26-2007 00:00
$query = "SELECT artist_name FROM artist WHERE artist_name = $artist"; |
Paranoid (IV) Inmate From: Madison, Indiana |
posted 03-26-2007 18:34 |
Paranoid (IV) Inmate From: Wales |
posted 03-27-2007 01:56
Yeah, Thanks for that hyperbole. That resolved the issue. |