ball420 Posted June 19, 2007 Share Posted June 19, 2007 i'm using a config.php file but it seems not to connect here is my script <?php include 'db1config.php'?> <?php include 'connect.php'?> <?php function filter($string) { $pattern[0] = fck; $pattern[1] = ss; $pattern[2] = sit; $replacement[0] = beep; $replacement[1] = beep; $replacement[2] = beep; return preg_replace($pattern, $replacement, $string); } $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ ?> Link to comment https://forums.phpfreaks.com/topic/56240-configphp/ Share on other sites More sharing options...
akitchin Posted June 19, 2007 Share Posted June 19, 2007 you're missing semicolons in the first two includes. not sure if this is ignored when you close the tag immediately afterward, but it's best to get them in there anyway. Link to comment https://forums.phpfreaks.com/topic/56240-configphp/#findComment-277769 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.