February 17, 201214 yr I’m working with php scripts, phpMyAdmin with Dreamweaver CS4. I’m building a social network website. I have a table called MDB_trvldiary. I’m getting this error on my page title: edit_trvldiary_entry.php Warning: ereg_replace() [function.ereg-replace]: REG_EMPTY in /home/****/public_html/root/******/data.inc.php on line 126 if(!$db_query) { $x_query = explode('\'',mysql_error()); Line 26: $query = ereg_replace($x_query[1],"<strong>".$x_query[1]."</strong>",$query); echo "<font color='red' face='Verdana'><strong>MySQL Error: ".mysql_errno()."</strong></font><hr size='2'><font face='Verdana' size='2'>".mysql_error(); -------------------------------------------------------------------------------- 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 '' at line 1 SQL Query: [ ] Line 1 from Table: $result = mysql_query ("CREATE TABLE MDB_trvldiary ( In File: /home/*****/public_html/root/******/edit_trvldiary_entry.php Line Number: 25 Line 25: $query = do_query("select entry from ".$config['tableTRVLDiary']." where D_ID=".$_GET['id'],__LINE__,__FILE__); Thanks in advance, S
Create an account or sign in to comment