Zeradin Posted September 8, 2008 Share Posted September 8, 2008 i have a link to an inbox where if there are new messages it makes it bold and shows the number of new messages like this: $newpmquery = 'SELECT * FROM pms WHERE pmto = '.$_SESSION['id'].' AND pmread = 0'; $newpmresult = mysql_query($newpmquery); if (mysql_num_rows($newpmresult) > 0) { echo '<a href="inbox.php" target="formload"><strong>Inbox ['.mysql_num_rows($newpmresult).' New]</a></strong>'; } else { echo '<a href="inbox.php" target="formload">Inbox</a>'; } i was wondering how i could make it so that when the person reads the message and the pmread becomes 1 that the style on the link would change, either number or back to regular link. I would love it if it happened instantly on the change of the value, but it'd be ok if it was just some sort of reload every regular interval. does anyone know how to do something like this? Link to comment https://forums.phpfreaks.com/topic/123325-dynamic-link-styletext/ Share on other sites More sharing options...
Zeradin Posted September 9, 2008 Author Share Posted September 9, 2008 bump and should i ask in java or something? Link to comment https://forums.phpfreaks.com/topic/123325-dynamic-link-styletext/#findComment-637265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.