Go Back   kirupaForum > Development > Server-Side (PHP, SQL, ASP.NET, etc.)

Reply
 
Thread Tools Display Modes
Old 11-28-2009, 04:33 PM   #1
drummer392
Brandon R. Ray
 
drummer392's Avatar
Fla Box Jquery Update Database Not Working

Hey, I am using this tutorial right here: http://www.wil-linssen.com/musings/e...th-ajax-mysql/

It is a great tutorial, but I cannot get the database to update at all. The printed query shows changes, but it doesn't update the database.

Any help?
drummer392 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-28-2009, 04:40 PM   #2
drummer392
Brandon R. Ray
 
drummer392's Avatar
Nevermind. I have gotten it to work.

Simple using this query statement:

PHP Code:
foreach($_GET['listItem'] as $key=>$value) {
$query"UPDATE `category` SET `order` = '" $key "' WHERE `catid` ='" $value "'";
$result mysql_query($query$handle); 
drummer392 is offline   Reply With Quote
Old 11-28-2009, 04:44 PM   #3
icio
looks better in lowercase
 
icio's Avatar
Location Edinburgh, Scotland

Posts 3,689

off topic:
-------------------------

You should try giving yourself 30 minutes with a problem before posting on kirupaForum that you can't do a simple SQL update.



You're forgetting to escape your SQL input, btw.
icio is offline   Reply With Quote
Old 11-28-2009, 04:50 PM   #4
drummer392
Brandon R. Ray
 
drummer392's Avatar
sorry, but that's a newb for ya!

someday, I will be as great as you, but even you had to learn sometime!
drummer392 is offline   Reply With Quote
Old 11-28-2009, 04:51 PM   #5
icio
looks better in lowercase
 
icio's Avatar
Location Edinburgh, Scotland

Posts 3,689

off topic:
-------------------------

No, my mother is JavaScript and my father PHP.

icio is offline   Reply With Quote
Old 11-28-2009, 04:53 PM   #6
drummer392
Brandon R. Ray
 
drummer392's Avatar
off topic:
_________________

haha! I love your humor.

Seriously though,
Thanks for all your help.
drummer392 is offline   Reply With Quote
Old 11-28-2009, 04:55 PM   #7
drummer392
Brandon R. Ray
 
drummer392's Avatar
I do have to admit, this is the dumbest question I have asked. My other questions have been very logical and good questions to ask coming from a learner like me. This was just plain stupid!
drummer392 is offline   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

Forum Jump


All times are GMT -4. The time now is 06:46 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com