Show values 1,2,22,11 mysql_select_db($database_cdl_cms, $cdl_cms); $query_photos = “SELECT * FROM table WHERE ex_ID IN (1,2,22,11)”; $photos = mysql_query($query_photos, $cdl_cms) or die(mysql_error()); $row_photos = mysql_fetch_assoc($photos); $totalRows_photos = mysql_num_rows($photos); or LIKE ‘%”.$_GET[‘cc_id’].”%’
Tag Archives: query
Mysql ORDER by Random
“SELECT * FROM talbe ORDER BY RAND()”;