
September 30th, 2009, 10:53 AM
|
|
Contributing User
|
|
Join Date: Aug 2009
Posts: 32
Time spent in forums: 13 h 18 m 6 sec
Reputation Power: 1
|
|
|
Onclick swap mysql rows ..help
heres what i've done so far.. i'm having trouble with the function
PHP Code:
<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...
|