How Can I Verify store code in mysql and update the table if result return true

前端 未结 1 2005
轻奢々
轻奢々 2021-01-29 06:01

Someone should please help me verify whether this code is right. I want to generate ID base on Pin from pin table under Pin column and insert into pin table in the appid column.

相关标签:
1条回答
  • 2021-01-29 06:39

    just try to write your query some thing like this with providing escape character ( ` ) to your field name.

    mysql_query("UPDATE pin SET 'appid' ='$num' WHERE 'Pin' = '$Pin'");
    
    0 讨论(0)
提交回复
热议问题