i have the page "list.php" where my php script show the list of the records stored in a mysql table, when the user click on the record should go on the page "detail.php" and see all the details.
<a class='box' href='detail.php'>
<img src='img.gif' width='60' height='60' alt='' />
<span class='title'>$title</span><br>
<span class='text'>$text</span>
</a>
the code above work, but then i cannot add a second "a href" inside the first, for example:
<a class='box' href='detail.php'>
<img src='img.gif' width='60' height='60' alt='' />
<a class='right' href='page2.php'>delete</a>
<span class='title'>$title</span><br>
<span class='text'>$text</span>
</a>
so i've try to use a "div" instead of the "a href", like this:
<div class='box' style='cursor:pointer' onClick='location='detail.php'>
<img src='img.gif' width='60' height='60' alt='' />
<a class='right' href='page2.php'>delete</a>
<span class='title'>$title</span><br>
<span class='text'>$text</span>
</div>
but the "onClick='location='page.php'" inside the "div" don't work, any workaround?