Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MySQL Error: 1064 from a Table and 2 diff php scripts

Featured Replies

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.