Home >Backend Development >PHP Tutorial >Explanation of id=%d for SQL query statements in PHP

Explanation of id=%d for SQL query statements in PHP

巴扎黑
巴扎黑Original
2016-12-22 14:41:041718browse

Some of the SQL statements are written like this:

'SELECT id FROM dbname WHERE xx_id = %d;', $bl['student_id']

"xx_id = %d", where %d refers to taking a decimal number (d means decimal) , the content of the decimal number is the following $bl['student_id'].


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn