Programming

  • 0 {{ upvoteCount | shortNum }}

    Including AdSense On Select MediaWiki Pages...

    Michael Ten in Programming

    Alright here is my question.... PHP Code: <?php           if(!strstr($_SERVER['REQUEST_URI'], "Special:") &&                !strstr($_SERVER['REQUEST_URI'], "User:") &&                !strstr($_SERVER['REQUEST_URI'], "User_talk:") &&                !strstr($_SERVER['REQUEST_URI'], "Image:") &&                !strstr($_SERVER['REQUEST_URI'], "action=submit") &&                !strstr($_SERVER['REQUEST_URI'], "action=edit") &&                !strstr($_SERVER['REQUEST_URI'], "Secure:") &&                !strstr($_SERVER['REQUEST_URI'], "Template:")) {             include("adsense/adsense_unit1.php");           } Right now, I use this code on a wiki to display AdSense ... [read more]

  • 8 {{ upvoteCount | shortNum }}

    Deletting from a database with php

    otfromtot in Programming

    <?php $username="user"; $password="pass"; $database="db"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM table"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); ?> <table border="1" cellspacing="2" cellpadding="2"> <tr> <td><font face="Arial, Helvetica, sans-serif">Date Entered</font></td> ... [read more]