UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Technical Support > Control Panel Questions

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2009, 05:16
new member
 
Join Date: Aug 2009
Posts: 3
Default phpmyadmin

wondering if any of you guys could help me out.

I'm having problems with my sql database. I made the data base and then made the table with three fields and it was created all was good but when I inputed data from my website(I set up a form using "formloom" and linked it too the database/table) I got an 1064 sql error message. I realized that I need to direct those three fields too the ones in the table and tried writing some insert code" insert into dbname.tablename('name':'email':'date')

but it didnt like that,hope you guys can help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-08-2009, 07:19
Ben's Avatar
Ben Ben is offline
Customer Interaction and Editor for eUKhost Blog/Knowledgebase
 
Join Date: Jan 2007
Location: UK
Posts: 2,306
Default

Could you paste the SQL error message(s) you get?
__________________
eUKhost Web Hosting Blog - eUKhost Web Hosting Knowledgebase
Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!
Find out about our new cloud hosting platform: eNlight Cloud!
Support: support [@] eukhost.com / 0808 262 0455
Sales: sales[@]eukhost.com / 0808 262 0255
Feedback Dept: feedback[@]eukhost.com

Live in the US? Please say NO to the SOPA/PIPA Bill (Stop Online Piracy Act) (Protect IP Act). It can be devastating to Internet freedom, speech and expression.
=
The press, on a daily basis, are distorting our perception and opinions. They are not always completely honest, truthful and fully rounded in what they publish as they may portray in a particular way, in a particular one-sided context or be biased. Please, don't believe everything you read and hear.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-08-2009, 11:58
new member
 
Join Date: Aug 2009
Posts: 3
Default

here is the error message

Alert
MySQL Error!

1064: 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 'and email SET Please enter full name = 'justin', Please enter your E-mail Addres' at line 1
When executing:
INSERT INTO name and email SET Please enter full name = 'justin', Please enter your E-mail Address = 'brokenleg513@aim.com', please enter a date = '08-04-2009', = '69.114.5.120', = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12', = NOW()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-08-2009, 12:42
DavidAllen's Avatar
Premium Member
 
Join Date: Jan 2007
Location: Amersham
Posts: 505
Send a message via MSN to DavidAllen Send a message via Skype™ to DavidAllen
Default

assuming your table is called USERS and the fields are name, email and date. Then the sql would be:

INSERT INTO USERS set name="Justin", email="Broke...", date=NOW()

hope this helps
__________________
David Allen - www.serina.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-08-2009, 01:23
new member
 
Join Date: Aug 2009
Posts: 3
Default

I altered the code you gave me but it gave me this error message



INSERT INTO 'name and mail' set name="Justin", email="Brokenleg513@aim.com", date=NOW()




SQL query: Documentation

SELECT *
FROM `name and email`
WHERE 1
INSERT INTO 'name and mail'
SET name = "Justin",
email = "Brokenleg513@aim.com",
date = NOW( ) LIMIT 0 ,
30

MySQL said: Documentation
#1064 - 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 'INSERT INTO 'name and mail' set name="Justin", email="Brokenleg513@aim.com", dat' at line 3




I'm given the field names on the side and thats confusing me I think i'm support to fill in those fills instead of "justin" etc etc. Or is this process just for one single update. I hope you can help me clear some of this up
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-08-2009, 12:59
Senior Member
 
Join Date: Jul 2007
Posts: 151
Default

the set clause should not be part of an insert statement

The correct syntax for insert is (from memory)

INSERT INTO 'name and mail' (name,email,date) values ("Justin", "Brokenleg513@aim.com", NOW())
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 20:16.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2012, eUKhost LTD. All rights reserved.

 


UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting
 
 

Android and Apple App


knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting

 

Web Hosting Affiliate Program
 

popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles