[PHP] Re: Uploading Files

2004-02-24 Thread Tom Wollaston
My script now reads: \n"; //$username : contains the name of TMP file, $usrfile_name : it's the real name of file } ?> File to Upload: I now get: Warning: Unable to create '/home/sites/site176/web/makeit/Ski club logo high resolution.jpg': Permission denied in /home/sites/site176/web/admin

Re: [PHP] Uploading Files

2004-02-24 Thread Tom Wollaston
I have updated my script as follows but it still doesn't seem to work: \n"; //$username : contains the name of TMP file, $usrfile_name : it's the real name of file } ?> File to Upload: I get the message that the file has been successfully added, but when I check the location the file doesn't

[PHP] Uploading Files

2004-02-24 Thread Tom Wollaston
Hi I am trying to write a cript for some file uploading. So far I have come up wth: \n"; } ?> File to Upload: This seems to be fine except it cannot seem to find the file its trying to upload. It says it doesn't exsist. Can anybody see a reason why?? Tom Wollaston --

[PHP] Oh why won't it work

2003-10-27 Thread Tom Wollaston
I am having problems sorting stuff into an array. It doesn't seem to work quite how everything I read says it should. It is probably my understanding of it but either way I don't really know whats going on. I am trying to put everything out of a table into an array so I can call up the individual

[PHP] Trying to organise an array

2003-10-25 Thread Tom Wollaston
I have made this function which should be quite simple but doesn't seem to do what it is meant to. What I want it to do is create an array where there is a numbered key (the rows of the table) and the colume headings as the second key. It doesn't seem to work. If I set $pid=0 then I get no results

[PHP] Got myself confused

2003-10-24 Thread Tom Wollaston
I have been trying to write some code for a simple menu system. The idea was that every item on a menu should be tied to anouther to give a menu structure. To do this I have tried to use the following code. Some of it I have added in to try and understand why its not really working. My first probl

[PHP] Text into a url

2003-09-13 Thread Tom Wollaston
Hi I am havening a problem retrieving url from a mysql database. I have the url's stored as text and am using the following code to retrieve them $query = "SELECT name,url FROM clubs WHERE url>'' ORDER BY name"; $result = @mysql_query($query) or die ("Query failed"); if (mysql_num_rows($resul