Re: MySQL: How to properly extract fields from retrieved single record ???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 22 Sep 2003, -{ Rene Brehmer }- wrote:

>      $result = mysql_query($query);

 replace with:

       $result = mysql_query($query) or die("MySQL Error: ".mysql_error()."\n<br/>SQL: ".$query);

 If the query fails, you will see why the query failed, and be able to view
 the query itself.  Maybe $_POST['edit'] isn't set.  Maybe you have a
 problem in your SQL.  Maybe the DB you are connecting to doesn't exist.  I
 would check your connection as well.

Beckman
---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman@purplecow.com                             http://www.purplecow.com/
---------------------------------------------------------------------------

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux