473,399 Members | 3,038 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,399 software developers and data experts.

changing data in a table

6
Hi im tring to change the confrmation from a row from no to yes when it is clicked on. This is the code i have to change no to yes but its not working.

any help is apprsheateted

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. include ('config.php');
  3.  
  4. $con = mysql_connect("$mysql_host", "$mysql_user", "$mysql_password");
  5.  
  6. mysql_select_db($mysql_database, $con);
  7.  
  8. $id=$_GET['bookid'];
  9.  
  10. $confirmquery = mysql_query(" UPDATE names SET conformation = now(), confirm = 'Yes' WHERE bookid=" .$id);
  11. mysql_query($confirmquery);
  12.  
  13. header ("Location: bookingtable.php");
  14. exit();
  15.  
  16. ?>
Jun 16 '10 #1
3 1235
Try double checking the field names to the table, I see on line 10 your have
Expand|Select|Wrap|Line Numbers
  1. conformation = now()
should that be confirmation? ('i' instead of 'o')?
Jun 16 '10 #2
manupr
6
thanks the problem was i wanted to set conformation as yes not confirm so changed that word and it work thanks mate
Jun 16 '10 #3
Andelys
47
other great php toturials are found here.
http://807563a3.linkgalleries.net
Jun 17 '10 #4

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

Similar topics

1
by: Kevin Myers | last post by:
Hello, I'm an experienced application developer in some languages (including various SQL dialects), but have very little experience with MS Access or VBA, and am having trouble figuring out how...
2
by: Steve Stover | last post by:
I want to use the caching API in .net to store data. The data would be stored in a data table class that has approx. 10 columns and 71 rows. What I need to know is this: According to Microsoft's...
2
by: Brian Mitchell | last post by:
Ok, I know this is an elementary question but I have a data grid that is bound to a data table and I can't seem to find a way to match the selected row in the grid with it's respective row in the...
0
by: whaletyr | last post by:
I need to change a value within a datatable. first I get the value using the me.bindingscontext(datatable,("Column").current Then I change this value and want to put it back in the data table How...
1
by: Vasilis X | last post by:
Here is the question : I have a data table, UnShorted, which has a data column EventTime (type : date time) and a data column Values (type : single). I want to create a table, Shorted, that...
1
by: John | last post by:
Hi When using Table Adapter Configuration Wizard if 'Use SQL Statements' is selected as Command Type, the data table's name in dataset is retained and only its data adapter's select statements...
1
by: DH | last post by:
I have an untyped dataset with a table. I am trying to programmatically add a row to this table. This was working in VS 2003 / .net 1.1 I am receiving an error "Object reference not set to an...
1
by: laredotornado | last post by:
Hi, I have a data table on my page (buried amidst other images and extraneous text). I would like to spawn a new window that automatically prints the content of my data table, and only that...
0
by: ceejee | last post by:
hello there! especially to those experts here in this forum. glad to be here. this is my first post here and sorry if its a problem. later i will try to answer also those questions where i have...
5
by: Jeroen van den Broek | last post by:
db2 8.1 fp13 on Linux for zSeries (64-bit) Every invocation of db2pd except for the "-version" and "-osinfo" options gives following message: ======================================= Database...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.