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.. 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. Link to comment https://forums.phpfreaks.com/topic/176189-mysql-swap-id/#findComment-933413 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.