Hi, when i use the following code;
$current_availa ble = mysql_query("SE LECT availableplaces FROM
tblCourses WHERE course_id='$_PO ST[selectedcourse]'");
$current_availa ble -= 1;
mysql_query("UP DATE tblCourses SET
availableplaces ='$current_avai lable' WHERE
course_id='$_PO ST[selectedcourse]'");
The variable $current_availa ble is initially 32, after running the
above it is changed to 2.
I'm really lost and would appreciate some direction.
Many thanks
$current_availa ble = mysql_query("SE LECT availableplaces FROM
tblCourses WHERE course_id='$_PO ST[selectedcourse]'");
$current_availa ble -= 1;
mysql_query("UP DATE tblCourses SET
availableplaces ='$current_avai lable' WHERE
course_id='$_PO ST[selectedcourse]'");
The variable $current_availa ble is initially 32, after running the
above it is changed to 2.
I'm really lost and would appreciate some direction.
Many thanks
Comment