MDanz Posted October 1, 2009 Share Posted October 1, 2009 e.g. i have 4 images... i'm trying to do onclick i swap id's(mysql) with the next onclick(image).. basically just swap id's but its activated by javascript onclick. the javascript part is what i'm having trouble with because you can't write mysql statements in a function.. Quote Link to comment https://forums.phpfreaks.com/topic/176189-mysql-swap-id/ Share on other sites More sharing options...
fenway Posted October 8, 2009 Share Posted October 8, 2009 You sound very confused.... mysql has no idea about javascript. Get a JSON object from the DB, and then pretend the DB doesn't exist. Quote Link to comment https://forums.phpfreaks.com/topic/176189-mysql-swap-id/#findComment-933413 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.