Hi Hope thet someone can help me with folowing

I have a mini event calender

but i want to show te even into a popup but i can't fiux it

i have here the code

echo "><a href='".$_SERVER['PHP_SELF']."?month=".$monthstring."&day=".$daystring."&year=".$year."&v=true' onclick='Popup.showModal('modal');return false;'>".$i."</a></td>";
}
echo "</tr>";
?>
</table>
<div id="modal" style="border:3px solid black; background-color:#9999ff; padding:25px; font-size:150%; text-align:center; display:none;">

<?php
$sqlEvent = "select * from terminkalender where datum_wann='".$year."-".$month."-".$day."'";
$resultEvents = mysql_query($sqlEvent);

while ($events = mysql_fetch_array($resultEvents)){
echo "Treffpunkt zeit: ".$events['treffpunkt_zeit']."<br>";
echo "Auftritt zeit: ".$events['auftritt_zeit']."<br>";
echo "Treffpunkt wo: ".$events['treffpunkt_wo']."<br>";
echo "Was: ".$events['was']."<br>";
echo "Wer geht mit: ".$events['wer_geht_mit']."<br>";
echo "Wer tanzt: ".$events['wer_tanzt']."<br>";
?>
<br>
	<input type="button" value="OK" onClick="Popup.hide('modal')">
</div>

<?php

}

?>
</body>
</html>

Thanks in advice
John

Click here to learn about popup view using javascipt

Thanks for your link

it's only one problem left sometimes i have more event on one day
and these events wil show outside of the popup.
but i think i can fix it

so thanks

Thanks for your link

it's only one problem left sometimes i have more event on one day
and these events wil show outside of the popup.
but i think i can fix it

so thanks


If Your problem is solved then mark the thread as solved....

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.