Topic: Undefined variable: job_id in page_write.php on line 204
Hello, when i post new in frontend, i have the same problem as this post : http://www.jobberbase.com/forum/topic34
error.html
Notice: Undefined variable: job_id in /homez.406/kundaliw/www/jobtest/page_write.php on line 204
Fatal error: Uncaught exception 'QueryException' with message '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 '' at line 12' in /homez.406/kundaliw/www/jobtest/_includes/class.Db.php:34 Stack trace: #0 /homez.406/kundaliw/www/jobtest/_includes/class.Job.php(919): Db->query('UPDATE job_jobs...') #1 /homez.406/kundaliw/www/jobtest/page_write.php(233): Job->Edit(Array) #2 /homez.406/kundaliw/www/jobtest/index.php(108): require_once('/homez.406/kund...') #3 {main} thrown in /homez.406/kundaliw/www/jobtest/_includes/class.Db.php on line 34and when i change my page_write.php with that code :
if ( ! isset($job_id)) $job_id = NULL;
$job = new Job($job_id);i have a new error :
Fatal error: Uncaught exception 'QueryException' with message '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 '' at line 12' in /homez.406/kundaliw/www/jobtest/_includes/class.Db.php:34 Stack trace: #0 /homez.406/kundaliw/www/jobtest/_includes/class.Job.php(919): Db->query('UPDATE job_jobs...') #1 /homez.406/kundaliw/www/jobtest/page_write.php(234): Job->Edit(Array) #2 /homez.406/kundaliw/www/jobtest/index.php(108): require_once('/homez.406/kund...') #3 {main} thrown in /homez.406/kundaliw/www/jobtest/_includes/class.Db.php on line 34why this happen ? Thank You.