php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "set"

How can the order of mysqli_set_charset(), SET NAMES, and set character set utf8 queries impact UTF8 encoding in PHP scripts?

The order of mysqli_set_charset(), SET NAMES, and set character set utf8 queries can impact UTF8 encoding in PHP scripts. To ensure proper UTF8 encodi...

What are the potential pitfalls of using mysql_query("SET NAMES 'utf8'") and mysql_query("SET CHARACTER SET 'utf8'") in PHP?

Using mysql_query("SET NAMES 'utf8'") and mysql_query("SET CHARACTER SET 'utf8'") in PHP can lead to vulnerabilities such as SQL injection attacks. It...

How can the PHP query be modified to include "SET NAMES 'utf8'" and "SET CHARACTER SET 'utf8'" for handling umlauts in MySQL databases?

To handle umlauts in MySQL databases when using PHP, it is important to set the character encoding to 'utf8' both for the connection and the database....

Do you need to set "SET NAMES" again when reconnecting to the database after closing the connection in PHP?

When reconnecting to the database after closing the connection in PHP, you do not need to set "SET NAMES" again if you have already set it during the...

Is it necessary to set "SET NAMES 'utf8'" every time a connection to the database is established in PHP?

Setting "SET NAMES 'utf8'" every time a connection to the database is established in PHP is not necessary if the default character set of the database...

Showing 1 to 5 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.