PostNuke

Flexible Content Management System

News

Addon for Mail Notification on home Page.

Contributed by on Aug 09, 2002 - 09:22 AM

[ line 1. ] $result2 = $dbconn->Execute("SELECT count(*) FROM KGLX_priv_msgs WHERE pn_to_userid=" . pnUserGetVar('uid'));


[ line 2. ] list($numrow) = $result2->fields;


[ line 3. ] if ($numrow > 0) {


[ line 4. ] echo "<bgsound src=\"sounds/gotmail.wav\">";


[ line 5. ] }


[ line 6. ] else


[ line 7. ] {


[ line 8. ] echo "";


[ line 9. ] }




The line Numbers are for you to know that the text wrapping was done by the browser you are viewing and it should not be coded as it appears. You will need to delete the "[ line n. ]" indicators. The number of the line has no relevance to the code you are placing it in. It just need to go directly above "include 'footer.php';" as previously stated.




Have a good day.


Peter Schmalfeldt




____________________________________________________________________________


Freeloader Studios - All our hard work for you to take credit for.


http://www.FreeloaderStudios.com


Webmaster@FreeloaderStudios.com


2562
Footnote: 1