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')") } Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.