|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am developing a site for which I am including the ability to upload images. These images are associated to records in a MySQL database table of inventory items. I am encountering the following parse error when trying to do so:
Code:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/www/website/admin/alter_table.php on line 72 Here is the snippet of code that is referenced in the error. Note that it all worked before adding the image handling part, the database connects correctly, etc.: PHP Code:
$userfile is the image sent from the form on the sending page using the "file" input type and enctype="multipart/form-data" in the form tag. I have attached the whole alter_table.php file for those who would like to see exactly what's happening. Thanks for the help! |
|
#2
|
|||
|
|||
|
Just throwing this out,...Since $WINDIR is not a function, mayby try doing it this way,...
PHP Code:
|
|
#3
|
|||
|
|||
|
Duh!
Thanks for that. It all just blurs together after staring at the screen for 3 hours...Now if I can just get it to actually upload the image... ![]() |
|
#4
|
|||
|
|||
|
haha,...we all have been there before...
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > expecting `T_VARIABLE' or `'$'' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|