Dim sql_album As String = "select * from album,image WHERE album.album_id = image.album_id AND album.gallery_id ='" & Request.QueryString("gallery_id") & "'ORDER BY image_id DESC LIMIT 0,1 "
ขึ้น error แบบนี้ครับ
Incorrect syntax near 'LIMIT'.
Dim sql_album As String = "select * from album,image WHERE album.album_id = image.album_id AND album.gallery_id ='" & Request.QueryString("gallery_id") & "' ORDER BY album.image_id DESC LIMIT 0,1 "
Dim sql_album As String = "select * from album,image WHERE album.album_id = image.album_id AND album.gallery_id ='" & Request.QueryString("gallery_id") & "' ORDER BY image.image_id DESC LIMIT 0,1 "