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

巴扎黑
Release: 2023-03-03 22:54:01
Original
1688 people have browsed it

Some of the SQL statements are written like this:

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

"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'].


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template