MDanz 0 Junior Poster

i'm trying to do onclick row(result 1) swap with onclick row(result 2) in mysql..
here's what i have so far

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


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

 
}
</script>

the variable $number determines the row..

How do i switch two rows in with javascript? I'm thinking after clicking twice... they would both store in the function,swap then refresh.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.