current position:Home>JQuery sends a post request (a method of connecting PHP variables to strings)

JQuery sends a post request (a method of connecting PHP variables to strings)

2022-04-29 06:22:02Tool man of konjaku

bug

 $query = "SELECT id,userName from users where userName='$userName' and userPwd='$userPwd'";

Write


```php
 $query = "SELECT id,userName from users where userName=$userName and userPwd=$userPwd";

Splicing method

  1. " “.” ".$a
  2. “$a $b”

copyright notice
author[Tool man of konjaku],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/116/202204260949129527.html

Random recommended