hi! is there any way to get the number of arrays that explode() made?
// connection stuff...
$sql = "SELECT * FROM $table WHERE 1 AND artist_1 LIKE";
$exploded = explode(' ', $pojam);
for ($i=0; $i < 6; $i++) {
$sql .= " '%$exploded[$i]%' OR artist_2 LIKE '%$exploded[$i]%' OR artist_1 LIKE ";
}
$sql .= "'%$exploded[6]%' ORDER BY artist_1 ASC";
$eskjuel = mysql_query($sql);
// fetch array etc....
i need to change number 6 in for() with the number of arrays that i have... please help!