Jump to content

12Strings

New Members
  • Posts

    2
  • Joined

  • Last visited

12Strings's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys . I need to know where this error message is coming from. I've read everything from the promising to maniacal, from the learned to just plain snotty. I'm not a know it all, I'm just looking for help, Following is my code: <?php // error_reporting(0); error_reporting(E_ALL ^ E_NOTICE); mysql_connect('localhost','root',' '); mysql_select_db('passdb') or die("Unable to select database"); $query="SELECT * FROM 'passtbl' Where point='$point'"; $result=mysql_query($query); $num=mysql_numrows($result); echo date("m/d/Y") . "<br />"; echo "<font size=+2><b> Email info<br /><br />"; echo "<table cellspacing=1 cellpadding=0 border=0> <tr> <TH>point</TH> <TH>target</TH> <TH>username</TH> <TH>password</TH> <TH>emailused</TH> <TH>lastused</TH> <TH>purpose</TH> <TH>saved</TH> <tr> <TH colspan=8>=======================================================================</TH> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['point'] . "</td>"; echo "<td>" . $row['target'] . "</td>"; echo "<td>" . $row['username'] . "</td>"; echo "<td>" . $row['password'] . "</td>"; echo "<td>" . $row['emailused'] . "</td>"; echo "<td>" . $row['lastused'] . "</td>"; echo "<td>" . $row['purpose'] . "</td>"; echo "<td>" . $row['saved'] . "</td>"; echo "</tr>"; echo "</table>"; mysql_close(); } ?>
  2. After a couple of years running my 1.7.4 localhost system completely out of the box I decided to go to the 1.8.1. Since the download I haven't been able to run php programs. I've uninstalled & installed back to the older version & back again.I've checked my databases a couple of times, They are good. They control panel and command both tell me apache and mysql running but the php files only display code? Below is the stripped down php code and message. I sure could use some help. <?php if (isset( $_POST['payrec']) ) { $recur=$_POST['recur']; $pd=$_POST['pd']; $payrec=$_POST['payrec']; $acctno=$_POST['acctno']; } mysql_connect('localhost','root',''); mysql_select_db('oodb') or die( "Unable to select database"); print $_POST['acctno']; $query = " INSERT INTO oocust (recur,pd,payrec,acctno) VALUES ('$recur','$pd','$payrec','$acctno')"; echo "data inserted</font><br /><br />"; $stat = mysql_query($query) or die('Query failed: ' . mysql_error()); mysql_close(); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.