La recherche dans une BD qui contient apostrophe
Bonjour
J'ai utilisé la fonction
Code:
mysql_real_escape_string(stripslashes($var))
pour l’insertion de texte qui contient apostrophe, et l'affichage se passe normale, mais quand je lance une recherche je trouve ce message: :calim2:
Citation:
Warning:mysql_fetch_array()expects paraneter 1 to be ressource, boolean given in C:/wamp/www/site3/recherche.php on line 48
Aidez moi svp.
Problème de fichier .htaccess
Bonjour
Je n'ai pas arrivé à ouvrir une nouvelle discussion, et j'ai un grand problème et vraiment urgent aussi :
Apres quelque reherches sur le net j'ai trouvé que je dois cofigurer mon .htaccess comme suit :
voici le contenu de ce fichier chez moi:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| 1 #Fichier .htaccess : /dossier_no3/
2 Options +FollowSymlinks
3 RewriteEngine on
4 RewriteOptions Inherit
5
6 RewriteRule ^page1.php$ saisit.php[L]
7 RewriteRule ^page2.php$ saisit1.php[L]
8 RewriteRule ^page3.php$ affich.php[L]
9 RewriteRule ^page4.php$ affich.php[L]
10 RewriteRule ^page5.php$ livreor.php[L]
11 RewriteRule ^page6.php$ contact.php[L]
12 RewriteRule ^page7.php$ contacta.php[L]
13 RewriteRule ^page8.php$ info.php[L]
14 RewriteRule ^page9.php$ infoa.php[L]
15 RewriteRule ^page10.php$ sitsa.php[L]
17 RewriteRule ^page11.php$ nous.php[L]
18 RewriteRule ^page12.php$ nousa.php[L] |
Mais quand je demande une page dans mon site, je trouve ce message:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Aidez-moi SVP. C'est urgent