473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

cannot get a basic INSERT command to work..

hi all

i cannot get the following command to work, any ideas?

$sql_query = "INSERT INTO 'members' (uname, fname, lname, pword, email) VALUES ('$uname', '$fname', '$lname', '$pwordmd5', '$email')";

its not an issue with my db connections, as i have other sql staments working in the script

many thanks
Apr 13 '07 #1
4 1263
Motoma
3,237 Expert 2GB
Please read the Posting Guidelines before posting a question.
Please follow my directions, post the error message you receive.


hi all

i cannot get the following command to work, any ideas?

$sql_query = "INSERT INTO 'members' (uname, fname, lname, pword, email) VALUES ('$uname', '$fname', '$lname', '$pwordmd5', '$email')";

its not an issue with my db connections, as i have other sql staments working in the script

many thanks
Apr 13 '07 #2
i dont receive any errors
Apr 13 '07 #3
code green
1,726 Expert 1GB
cannot get the following command to work, any ideas?
[PHP]$sql_query = "INSERT INTO 'members' (uname, fname, lname, pword, email) VALUES ('$uname', '$fname', '$lname', '$pwordmd5', '$email')"; [/PHP] This is not a command. It is a string variable.
i dont receive any errors
Well you should if you are writing good code. Like Motoma said. What is the error?
Apr 16 '07 #4
Motoma
3,237 Expert 2GB
i dont receive any errors
You get no errors at all, even when you put the ini_set headers and the "or die(mysql_error());" at the end of your query?

If that is the case, your INSERT statement is working. Or you aren't executing the query.
Apr 17 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Loi | last post by:
Hi All, I use Bulk insert to put data to myTable. When the SQL server is in local machin, it works well. But when I put the data in a sql server situated not locally, then I get a error message...
2
by: kins | last post by:
Hi, I wrote a common.vb file as a code bebind logic. I cannot use some common method e.g. len, month, year, formatdatetime. Anyone can help me ? Thx u very much. The structure of my vb file :...
10
by: Jack | last post by:
Hi, I cannot get the date format correctly in dynamic sql statement, after trying various ways of handling it. I need some help with the date format in the following dynamic sql statement. Any...
1
by: WillieW | last post by:
Hi folks, I have Access 97 and have set up four tables, each with a Primary Key with a file name manually entered. For example, the four tables relate to information stored in a paper file, on...
1
by: alan | last post by:
in my project there are 5 textbox : tbOrderid, tbSeqNum, tbFoodCode, tbFoodDesc and tbPrice 9 button: btInsert, btdelete, btUpdate, btClear, btBind, btFirst, btPrevious, btNext and btLast i...
0
by: yukijocelyn | last post by:
I have experienced a problem here while doing a form for accessing datadbase using MS Access. I'm using the AccessDataSource control, and using Gridview to pull the data from the database. I am able...
3
by: Rahul B | last post by:
Hi, I have a user UCLDEV1 which is a part of staff and a group(db2schemagrp1) to which i have not given any permissions. The authorizations of that user are shown as db2 =get authorizations...
1
by: skanemupp | last post by:
in this program when using the "c"-button it deletes the last token entered. i want to delete the token after the mousecursor. lets say the string is: 12*(81**.5+12) and i put the cursor between...
7
by: anu b | last post by:
Hi I need to use Clr trigger for insert command My code is as below I am using SQL server 2005 and VS 2008.... but after running this code i didnt get the result as i expexted it shows the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.