$bus_id = $_GET['bus_id'];
the business id is blank...
Invalid query: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '; WHERE customer_id = '19' AND business_id = ''' at line
i think i know what the problem is...i was thinking that $bus_id = $GET['bus_id']; would be retreived from mysqladmin (mysql). but it didn't. the $user_id = $SESSION['user_id']; work because i put it in session in the stages before.
the page before this one was to insert in a business to my table, and having bus_id autoincrement for each business. I just want to retrieve my bus_id from my database.