jQuery/Ajax call - It Doesn't work on IE7

后端 未结 7 1892
别那么骄傲
别那么骄傲 2021-01-20 03:35

i make a Jquery function that (for the moment) call a function dinamically and print it with an alert. with firefox, chrome : it works! when i try on IE7 (the first time), i

7条回答
  •  自闭症患者
    2021-01-20 04:04

    I believe you have an error in your SQL code. Is userd supposed to be userid?

    Gaby is absolutely right that your SQL code is wide open for injection. Please consider learning PDO, which will reduce the likelihood of SQL injection significantly, particularly when using placeholders. This way you will have query($sql) and execute($sql), rather than the code going directly into your DB.

提交回复
热议问题