1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Err... me = noob... Insert Multiple Rows?

Discussion in 'XenForo Development Discussions' started by Jaxel, Jan 1, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    I am trying to do the following:
    	INSERT INTO EWRatendo_recurs
    		(event_id, event_strtime, event_endtime)
    ", $recurs);
    The value of $recurs is as follows:
    Theoretically, this should work shouldn't it? Instead I get the following error:
    Mysqli prepare error: 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 4
  2. Luke F

    Luke F Well-Known Member

    MySQLi doesn't work like that - you'd have to escape the data manually rather than using the ? substitution thing

Share This Page