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());
Source: ASK PHP QUESTIONS