Nieuw lid | 
                 | 
                
				
				Hoi ik heb een nieuws script gedonwload van deze site. 
 
als ik het woord foto's gebruik krijg ik de volgende fout 
    
    
        
            
                You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's' WHERE id='20'' at line 1 
             
            You have an error IN your SQL syntax; CHECK the manual that corresponds TO your MySQL server version FOR the RIGHT syntax TO USE near 's' WHERE id='20'' at line 1 
 
  
         
          
     
  
 
Als ik in het script ubb.php bekijk zie ik dit. 
    
    
        
            
                function ubb($bericht) {
	$bericht = stripslashes($bericht);
	$bericht = nl2br("$bericht");
	$bericht = eregi_replace("([a-zA-Z0-9_-]+)@([a-zA-Z0-9\._-]+)(\.[a-zA-Z]+)", "<a href=\"mailto:\\1@\\2\\3\">\\1@\\2\\3</a>", $bericht);
	$bericht = str_replace("[img]","<img src=\"http://",$bericht);
	$bericht = str_replace("[/img]","\">",$bericht);
	$bericht = eregi_replace("\[url\]www.([^\[]*)","<a href=\"http://www.\\1\" target=_blank>\\1", $bericht);
	$bericht = eregi_replace("\[url\]([^\[]*)","<a href=\"\\1\" target=_blank>\\1", $bericht);
	$bericht = eregi_replace("(\[url=)([A-Za-z0-9_~&=;\?:%@#./\-]+[A-Za-z0-9/])(\])", "<a href=\"http://\\2\" target=_blank>", $bericht);
	$bericht = eregi_replace("\[url](http://(.*))", "<a href=\"\\1\" target=\"_blank\">\\1", $bericht);
	$bericht = eregi_replace("(\[/url\])", "</a>", $bericht);
	$bericht = str_replace("http://http://", "http://", $bericht);
             
            function ubb($bericht) { 	$bericht = nl2br("$bericht"); 	$bericht = eregi_replace("([a-zA-Z0-9_-]+)@([a-zA-Z0-9\._-]+)(\.[a-zA-Z]+)", "<a href=\"mailto:\\1@\\2\\3\">\\1@\\2\\3</a>", $bericht); 	$bericht = str_replace("[img]","<img src=\"http://",$bericht); 	$bericht = eregi_replace("\[url\]www.([^\[]*)","<a href=\"http://www.\\1\" target=_blank>\\1", $bericht); 	$bericht = eregi_replace("\[url\]([^\[]*)","<a href=\"\\1\" target=_blank>\\1", $bericht); 	$bericht = eregi_replace("(\[url=)([A-Za-z0-9_~&=;\?:%@#./\-]+[A-Za-z0-9/])(\])", "<a href=\"http://\\2\" target=_blank>", $bericht); 	$bericht = eregi_replace("\[url](http://(.*))", "<a href=\"\\1\" target=\"_blank\">\\1", $bericht); 	$bericht = str_replace("http://http://", "http://", $bericht); 
 
  
         
          
     
  
Nu moet ik elk woord met een ' in het db verandere hoe kan ik dit oplossen  
 
MvG, Vinnie  				
				 |