june_c21 Posted February 19, 2008 Share Posted February 19, 2008 hi, i want to insert multiple rows in my database and it will stop inserting when the row is NULL. how to do so? $loop stop when it is NULL for ($d = 0; $d < $loop; $d++) { $query = mysql_query("INSERT INTO `prodates` (`date_session_id`, `session_month_year_id`, `session_dates`, `session_active`, `session_city_id`, `session_course_id`) VALUES ('$dsessioncourse', '$monthcourse', '$session_d', '$activecourse', '$citycourse', '$course')") } Link to comment https://forums.phpfreaks.com/topic/91811-insert-multiple-rows/ Share on other sites More sharing options...
june_c21 Posted February 19, 2008 Author Share Posted February 19, 2008 anyone pls help with this. thanks Link to comment https://forums.phpfreaks.com/topic/91811-insert-multiple-rows/#findComment-470232 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.