我有2个表,并想查询所有的专辑数据与艺术家连接albums: album_id | artist_id | songsSELECTFROM albums JOIN artists ON artists.artist_id = albums.artist_idSELECT * FROM albums
WHERE
`id`)) subq,ORDER by vehicle asc;#1064 - You have an error in your SQL syntax; check the manual that corresponds
to your MySQLserver version for the right
我对mysql_real_escape_string有个问题。我使用ezSQL与MySQL连接。代码:
$row = $db->get_row("SELECT firstname, secondname, id FROM users WHERE login='".mysql_real_escape_stringAND password='".mysql_real_escape_string($password).&