09-13-2008, 04:48 PM
[eluser]Nummero2[/eluser]
Hi,
I want to show an simple jquery alert box within a simple if statement in php:
what I want. As the user you click on a href which leads to this view above. Now if there is nothing to show I want to display a popup alert window to notify the user that there is no entry at the moment present.
Am I on the right path?
Greetings Sebastian
Hi,
I want to show an simple jquery alert box within a simple if statement in php:
Code:
if($result == 0)
{
#-- ----------------------------------------------------------------------------
# Kein zugehöriges Protokoll vorhanden
#-- ----------------------------------------------------------------------------
?>
[removed]
$(document).ready(function()
{
$("a").click(function() {
alert("Hello world!");
});
});
[removed]
<?php
}else
{
some other code
what I want. As the user you click on a href which leads to this view above. Now if there is nothing to show I want to display a popup alert window to notify the user that there is no entry at the moment present.
Am I on the right path?
Greetings Sebastian