Jump to content

onclick swap mysql rows


MDanz

Recommended Posts

heres what i've done so far.. i'm having trouble with the function

 

<div class=\"rollover\"><a onclick=\"Swap($number)\"></a></div>


<script type='text/javascript'>
function Swap(number){


}
</script>

 

$number is the id the row.  So if i clicked on any result i would have a different id stored as $number. How do i do the function to swap two rows though?  hope this is easy...

Link to comment
https://forums.phpfreaks.com/topic/176064-onclick-swap-mysql-rows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.