-
The following is my code:
<?php
session_start();
$_SESSION['$username'];
require_once("admin/db.php");
$result = mysql_query("SELECT financealert, username FROM users WHERE financealert='yes'") or die(mysql_error());
if($user_session == $username && $financealert == 'yes') {
?>
<script type="text/javascript">
windows.alert('ATTENTION');
</script>
<?php
}
?>
The alert is not showing anyway.
-
Please only have one thread per problem. What happened with the code I posted in the previous thread?
http://www.dynamicdrive.com/forums/s...ad.php?t=59525
-
If you're still having trouble, something I noticed in the other thread you started is:
Code:
<script type="text/javascript">
windows.alert('ATTENTION');
</script>
<!-- should be: -->
<script type="text/javascript">
alert('ATTENTION');
</script>