DeepakJ Posted August 3, 2007 Share Posted August 3, 2007 I get no error messages but nothing happens, this script used to work fine. I am completely lost. <html><head><title>AlibreCam Verification System</title></head> <center><h3>AlibreCam Verification System</h3></center> <center><TABLE border=0 cellpadding=3><form name="input" action="verification.php" method="get"> <tr><td><center>Customer ID:</center></td> <td><input type="text" name="user"></td></tr> <tr><td colspan=2><center><input type="submit" value="Submit"></center></td></tr> </form><br></table><br> <?php $hostname = "mysql123.hosting.earthlink.net"; $username = "licensinginfo"; $password = "98989lol"; $dbname = "licensinginfo"; $customerid = $_GET['user']; mysql_connect($hostname, $username, $password) or DIE("Unable to connect to MySQL server $hostname"); $selected = mysql_select_db($dbname) or DIE("Could not select requested db $dbname"); if ($customerid == ""){ echo "Please enter a customer name"; }else{ $query = "SELECT * FROM invoiceid WHERE customerid='$customerid'"; $cResult = mysql_query($query) or die("could not query"); while($row=mysql_fetch_array($cResult)){ $value=$value+$row['numoflicenses']; } echo "Total number of licenses purchased: ".$value; } ?> </html> Link to comment https://forums.phpfreaks.com/topic/63208-solved-does-anyone-see-anything-wrong-with-this-script/ Share on other sites More sharing options...
DeepakJ Posted August 3, 2007 Author Share Posted August 3, 2007 lolo... i forgot enable .php extensions in .htaccess.. Link to comment https://forums.phpfreaks.com/topic/63208-solved-does-anyone-see-anything-wrong-with-this-script/#findComment-315029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.