![]() Topic awaiting preservation: Problem checking for exsisting data (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Wales |
![]() 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 |
![]() $query = "SELECT artist_name FROM artist WHERE artist_name = $artist"; |
Paranoid (IV) Inmate From: Madison, Indiana |
![]() |
Paranoid (IV) Inmate From: Wales |
![]() Yeah, Thanks for that hyperbole. That resolved the issue. |