Hello i 'd like to post something because i believe its right but for some reason it doesnt work... I d like to make a link that gets the ID from the url and then displays data
the url returns as wanted e.g. localhost/rove/login/php?showallphoto=536 so they is no need to post the whole $query
<a class="showallphoto" href="'.$base_url.'login.php?showallphoto=' . $messageid . '" style="cursor:pointer">
i use javascript to open colorbox
<script type="text/javascript">
$(document).ready(function(){
$(".showallphoto").colorbox({width:"70%", height:'80%', inline:true});
$("#click").click(function(){
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});
</script>
this is the php syntax i use to return the data
$query = mysql_query("SELECT M.msg_id FROM messages AS M WHERE M.msg_id = ".$GET_['showallphoto'] );
while($row=mysql_fetch_array($query))
{
$messageid = $row['msg_id'];
?>
<div style="display:none">
<div id="showallphoto<?php echo $messageid;?>" style="margin-left:20px">
Can anyone help?