Ok, I figured out that I needed to include mysqli.php for this to work. Now I am getting the following error.Notice: Trying to get property of non-object in C:\xampp.php5\htdocs\support\include\mysqli.php on line 157
Fatal error: Call to a member function query() on null in C:\xampp.php5\htdocs\support\include\mysqli.php on line 164I am trying to retrieve the ticket_id internal value from the DB for the newly created ticket. Here is my SQL query. I will populate the query with the variable once I get it working with a known value. This Query works perfectly in phpMyAdmin.$ticket = db_query('SELECT ticket_id FROM ost_ticket WHERE number = 491551');