4/4/2023 0 Comments Penjualan array php![]() ![]() ![]() Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /var/www/site1/test.php on line 13 PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /var/www/site1/test.php on line 13 Warning: mysqli_fetch_assoc() expects exactly 1 parameter, 2 given in /var/www/site1/test.php on line 12 PHP Warning: mysqli_fetch_assoc() expects exactly 1 parameter, 2 given in /var/www/site1/test.php on line 12 So, the error messages are as follows: Notice: Undefined variable: conn in /var/www/site1/test.php on line 12 I have added debugging code so that I can see where the errors are, but I really don’t quite understand either (a) why they are errors to begin with, or (b) the error message, or (c) how to fix them. However, despite lengthy searches of similar issues I don’t seem to be able to make any progress. I’m really not too familiar with PHP, but have attempted to update the bits which I’ve learned are no longer supported (notably mysql functions). The script is basically trying to do a few simple things by connecting to a database and reading off a record, and then getting the results from an array. The current machine I’m using runs CentOS-7 and is using PHP 7.3.9. So, I’m attempting to update some PHP, which used to work a long while ago on older versions of PHP, but I’m running into many issues. I did already ask this question on Stack Exchange or somewhere, but didn’t get anywhere, so I’m hoping someone on here can assist, or at least help me understand some of it a bit more. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |