![]() |
Undefined Index mysql query
I am trying to implement a upload script can you please help me debug my errors? DB users TABLE images.
Notice: Undefined index: img in C:\wamp\www\workfun\myaccount.php on line 64 PHP Code:
PHP Code:
|
This query isn't in here anywhere.
The error is simple: you have no img offset in your $_GET superglobal. Since you didn't post that code, we can't help you with that. On the other hand, this other code is ancient. It relies on register globals which are now gone. $REMOTE_ADDR and $image will not exist for use as of 5.4, and will only exist if register_globals are explicitly enabled as of 4.2.0. Code wise there is no reason to move or copy this file if you are storing it in a db. Simply read and passthru it from the temporary location (that is, where $_FILES is stored, not where you created the ./temporary/). |
sorry for wasting both of our time, im going to find a better script.
|
every upload script I use I get the error
Notice: Undefined index: ______ |
Quote:
PHP Code:
PHP Code:
|
| All times are GMT +1. The time now is 12:02 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.