Jump to content

Recommended Posts

I have recently moved from MSSQL to mySQL and am sorting out all the errors. I have an asp update script that is working in that it does the update but the page does not load, it just hangs until I stop it loading and I check the db and it has updated. The only code on the page is the update sql - see below. (please excuse the rude words)

 

If I response.write my sql to the page and copy that to myAdmin and run it there it handles it fine.

 

UPDATE distinctImages SET bodyPainting=\'\',pregnant=\'\',publicNudity=\'\',shower=\'\',stockings=\'YES\',shaving=\'\',smoking=\'\',bondageRestraint=\'\',tattooPierced=\'\',toy=\'\',telephone=\'\',messy=\'\',anal=\'\',doublePenetration=\'\',pissing=\'\',toys=\'\',fingers=\'\',teen=\'\',pink=\'YES\',shaven=\'\',hairy=\'YES\',leatherPVC=\'\',SingleSetCatRef=\'\',spiel=\'hello\',photographer=\'2\',licencedOwner=\'1\',location=\'1\',strength=\'2\',sublocation=\'16\' WHERE model_id=487 AND folder=\'SI19\'

Link to comment
https://forums.phpfreaks.com/topic/137-update-problem/
Share on other sites

I seem to have sorted it. I added <p>update complete</p> at the end of the page and it worked. Weird.

 

Now I have another problem. I added a date field on the update page that is populated from the db, and it pulls it into the field fine but wont put it back into the db. If I change the date format it works.

 

It pulls it from the db and puts it into the text field as 2/1/2003 3:39:00 PM format. But wont it go back in unless I change it to 2003-02-01 15:39:00 format manually by hand before the update is executed.

Link to comment
https://forums.phpfreaks.com/topic/137-update-problem/#findComment-428
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.