I am wanting to use a combo box that pulls data from a secondary table (Foreign key lookup - using a join statements in mySQL), so I consulted the Ajax Advanced example. When I create a page and run it with the example code, it is full of errors.
Warning: mysql_set_charset() expects parameter 2 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_query() expects parameter 2 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_fetch_field() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_free_result() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_error() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_set_charset() expects parameter 2 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_query() expects parameter 2 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_result() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_free_result() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_error() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_query() expects parameter 2 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_free_result() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_error() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Warning: mysql_error() expects parameter 1 to be resource, null given in /var/www/KoolControls/KoolGrid/koolgrid.php on line 1
Then, below this there is a small grid control that gives the option to add a new record, which gives the following... there are no choices in the drop down boxes for continent and country (see below/bottom) I have checked my Kool database and it has values in the appropriate tables, also the database is working for other examples that use database lookups.
Other than copying the code and creating a php page, I have not altered the provided sample code.
Inserting a new customer
Name:
Continent:
Country:
ConfirmCancel
Add New Record Refresh
First Prev Next LastPage 0 in 0, items 0 to of .