Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by conjokes

  1. conjokes

    Save the result of a SQL query to a PHP variable

    tied that m8, its crashes with the results below: Parse error: parse error in /mnt/moya/home/ugrad/ma102sopublic_html/test/traning.phpon line 8
  2. conjokes

    Save the result of a SQL query to a PHP variable

    thanks anyway m8, u been a great help, but it it still done work, oh well <?php pg_connect(&quot;dbname=offenders user=jack&quot;) or die(&quot;Couldn't Connect: &quot;.pg_last_error()); $query = &quot;select MAX(offender_no) from offenders;&quot;; $row = pg_fetch_array($query)...
  3. conjokes

    Save the result of a SQL query to a PHP variable

    Thanks 4 that, here is a edited version of the code, which does the same thing, I have included the suggestions, however I get the error message &quot;Parse error: parse error in public_html/my_folder/fines.php on line 10/fines.php on line 10:...I am using postgres as supposed to mysql if that...
  4. conjokes

    Save the result of a SQL query to a PHP variable

    <br></bog> </center><br><br><hr> <?PHP $conn = pg_Connect (&quot;port=5432 dbname=jack user=ma103tw&quot;); if (!$conn) { exit; } $result1 = pg_exec ($conn, &quot;select MAX(offender_no) from offenders;&quot;); $result2 = pg_exec ($conn, &quot;select * from civil_fines where...

Part and Inventory Search

Back
Top