Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Requête SQL de base
- function requete($requete)
- {
- $requete = mysql_query($requete) or die(mysql_error());
- $requete = mysql_fetch_array($requete);
- return $requete;
- }
- // HTMLentities UTF-8/ISO
- function htmlentities_isoutf8($text, $encodage)
- {
- if ($encodage)
- {
- $text = htmlentities($text, ENT_COMPAT, 'UTF-8');
- }
- else
- {
- $text = htmlentities($text);
- }
- return $text;
- }
- // utf8_decode UTF-8/ISO
- function utf8_decode_isoutf8($text, $encodage)
- {
- if ($encodage)
- {
- $text = utf8_decode($text);
- }
- return $text;
- }
- // Encode un tableau en UTF-8
- function array_enc_utf8(&$valeur)
- {
- $valeur = utf8_encode($valeur);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement