Run MySQL INSERT Query multiple times (insert values into multiple tables)

后端 未结 5 1069
失恋的感觉
失恋的感觉 2021-01-24 05:07

basically, I have 3 tables; users and projects, then I have \'users_projects\' to allow the one-to-many formation. When a user adds a project, I need the project information st

5条回答
  •  孤城傲影
    2021-01-24 05:39

    Yeah, two things I would check would be

    1) are the queries being executed? Like the other poster mentiond, are you executing the SQL queries in between setting the SQL?

    2) if you print/debug/display somehow the variables that you are inserting, are they getting populated? If you're seeing things get inserted, but some of the data is blank then something might be blowing up before that and those variables would be blank.

提交回复
热议问题