Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

cearlp's Achievements


Newbie (1/5)



  1. My BAD! The code is mysqli_error() not mysql_errno(). BUT, adding the $conn to the mysqli_error($conn) produces a valid and informative error message. Many thanks for the help.
  2. Two identical php programs doing a mysqli_query, but on different databases. One succeeds and the other fails. The one that fails returns no errno. Could the cause be the databases? If so, what could be the problem? They are real similar in construction, one has more fields than the other, but almost the same data in both. $conn = use, passwd, database $sql = insert into members (name,addr,city,state) values('Joe','123 St','Somecity','CA') $result = mysqli_query($conn, $sql) or die (Can't run query because " . mysql_errno());
  • 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.