Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  uploading files not working

phpMyEdit General     uploading files not working
Odoslať novú tému   Odpovedať na tému    
 
lelales     Založený: 31.01.2004   Príspevky: 19  
Príspevok Zaslal: 2004-02-19 20:19
Návrat hore  Odpovedať s citátom     

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
Kód:
$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     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-02-19 22:14
Návrat hore  Odpovedať s citátom     

try
Kód:

$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     Založený: 31.01.2004   Príspevky: 19  
Príspevok Zaslal: 2004-02-20 02:39
Návrat hore  Odpovedať s citátom     

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


Kód:
$query = "UPDATE $table_name SET $radiobutton='$userfile_name' WHERE page_name='$insertartist'";


thanks for the input anyway

 
lanbo     Založený: 08.01.2004   Príspevky: 4  
Príspevok Zaslal: 2004-02-24 15:10
Návrat hore  Odpovedať s citátom     

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     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-02-24 17:55
Návrat hore  Odpovedať s citátom     

lanbo Napísal:
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     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-02-24 17:58
Návrat hore  Odpovedať s citátom     

see a bug report on uploading files.

it just storing files in normal folders using phpWebFileManager.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov