I can't wrap my head around this one.
When I create an array it begins with an empty value. The values that needs to be in the array starts as second.
Array:
Array (
[0] =>
[1] => Value 1
[2] => Value 2
[3] => Value 3
)
Code:
$categories = array();
$query2 = mysql_query("SELECT * FROM books_categories");
do{
array_push($categories, $category['description']);
}while($category=mysql_fetch_assoc($query2));
How do I accomplish to get the first item in the array to be Value 1?