Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  uploading files not working

phpMyEdit General     uploading files not working
Post new topic   Reply to topic    
 
lelales     Joined: 31 Jan 2004   Posts: 19  
Post Posted: 2004-02-19 20:19
Back to top  Reply with quote     

I have a table with the following fields

page_number
page_name
Image1
Image2
Image3
. . .
Image8

When I try to upload a file to the table I get a "success" response, but the image doesn't load into the table, though I can view the image in my uploads folder.

here's the code I am using
Code:
$query = "UPDATE $table_name SET $radiobutton='$userfile_name' WHERE page_name='$insertartist'";


when I go in and hardcode the info in place of the variables it works for that one field.

But I need to use variables for multiple reasons.

Does anyone know why my code doesn't load the new image link into the database?

thanks

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-02-19 22:14
Back to top  Reply with quote     

try
Code:

$query = "UPDATE $table_name SET $radiobutton='".$userfile_name."' WHERE page_name='".$insertartist."'";



which is a more proper php syntax. '(single quotes) are sometimes tricky

 
lelales     Joined: 31 Jan 2004   Posts: 19  
Post Posted: 2004-02-20 02:39
Back to top  Reply with quote     

your code is right on, but my problem was with one of the variables. I needed to use page_number instead of page_name


Code:
$query = "UPDATE $table_name SET $radiobutton='$userfile_name' WHERE page_name='$insertartist'";


thanks for the input anyway

 
lanbo     Joined: 08 Jan 2004   Posts: 4  
Post Posted: 2004-02-24 15:10
Back to top  Reply with quote     

Please, could you give some more information about how you upload files with phpmyedit?
Perhaps a piece of working code?
I'm VERY interested in this new feature. Is it new, by the way?
Thanks for the info!

 
hbernard     Joined: 23 Mar 2003   Posts: 159   Location: FRANCE
Post Posted: 2004-02-24 17:55
Back to top  Reply with quote     

lanbo wrote:
Please, could you give some more information about how you upload files with phpmyedit?
Perhaps a piece of working code?
I'm VERY interested in this new feature. Is it new, by the way?
Thanks for the info!


This is not a phpMyEdit feature, only a way to store name/path of an externaly uploaded file, IMHO

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-02-24 17:58
Back to top  Reply with quote     

see a bug report on uploading files.

it just storing files in normal folders using phpWebFileManager.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy