Programming

  • 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]