MySQL Forums
Forum List  »  PHP

Re: PHP UPDATE passes a blank string instead of contents of variable
Posted by: Peter Brawley
Date: July 27, 2015 04:06PM

To start debugging that, I'd add this in just before the foreach() loop ...

echo "<pre>";
print_r( $_FILES['imgs']['tmp_name'] );
echo "</pre>";

... and ...

echo $sqlfile;

just before the mysqli_query() call, then if the array contents are as expected but the derived query isn't, you just need to add in stubs till you identify the step that's failing.

BTW, BBCode code tags use square brackets, not angle brackets.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.