I need to retrieve the biggest number from a mysql database.
Say I need to retrieve the biggest $catergory_id and display it.
How would the $sql line be like? 'SELECT * from catagories WHERE ??'
i tried "SELECT MAX(category_id) from categories"
That doesnt seem to work. hehe
Hope you get what i mean .
Need help quickkk thanks
Say I need to retrieve the biggest $catergory_id and display it.
How would the $sql line be like? 'SELECT * from catagories WHERE ??'
i tried "SELECT MAX(category_id) from categories"
That doesnt seem to work. hehe
Hope you get what i mean .
Need help quickkk thanks
Comment