schriptcase V 9.6.2
This is a control app
//preparation …
//create buchung record in hu_occupation
$sql5=“INSERT INTO hu_occupation (reserv_id,person_id,res_start_date,res_end_date,occup_key_code,occup_person_name,occup_house_rate, occup_adult_dayrate,occup_child_dayrate,occup_total_rebate) VALUES ($reservId,$personId,’$resStartDate’,’$resEndDate’,’$occupKeyCode’,’$occupPersonName’,$occupHouseRate,$adultDayRate,$childDayRate,$occupTotalRebate)”;
sc_exec_sql($ql5);
Problem: The script hangs in the sql_exec_sql.
Using a echo of $sql5 and executing the mysql statement in database builder->sql commando with the values filled in, it works!
sql Statement: INSERT INTO hu_occupation (reserv_id,person_id,res_start_date,res_end_date,occup_key_code,occup_person_name,occup_house_rate, occup_adult_dayrate,occup_child_dayrate,occup_total_rebate) VALUES (7,2,‘2021-04-17 12:00:00’,‘2021-04-24 12:00:00’,‘1:2:4.8:9’,‘Alex Sager’,35.00, 5.00,2.50,0.66)
WHAT or WHERE could be the problem?