Home > database >  PHP mysql_query use problems
PHP mysql_query use problems

Time:09-22

Using mysql_query query information in the database,

$openid in the value of 'ABC', () is found in the database table



Writing, $effect_rows values for 1





Writes, $effect_rows values is 1





What circumstance?

CodePudding user response:

Are you the incoming parameters, ABC,

CodePudding user response:

Results of 1 said query error, that is, there is something wrong with the SQL statement, should be a character to use quotes
If $openid one font, no problem
If $openid for character, needs to be enclosed in single quotation marks

CodePudding user response:

Less with single quotes, should be the openid='$openid'
  • Related