[PHP] Uploading PDF

2008-02-14 Thread Pastor Steve
Greetings, I am getting an error when I am trying to upload a PDF file through a script. When I do a print_r($_FILES) I get the following: Array ( [userfile] => Array ( [name] => document.pdf [type] => [tmp_name] => [error] => 2

[PHP] Order directory output

2008-02-08 Thread Pastor Steve
Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? Breaking News Please check here often for breaking news stories.

Re: [PHP] fgets???

2008-02-08 Thread Pastor Steve
2/8/08 11:03 AM Zoltán Németh ([EMAIL PROTECTED]) wrote: > 2008. 02. 8, péntek keltezéssel 10.54-kor Pastor Steve ezt írta: >> > Is it possible to read each line of data from a file? >> > >> > I have a text file that has several lines on it. I only want to di

[PHP] fgets???

2008-02-08 Thread Pastor Steve
Is it possible to read each line of data from a file? I have a text file that has several lines on it. I only want to display the first line only. The file I have looks like this. But outputs: "The file I have looks like this." Here is my code: Breaking News Please che

Re: [PHP] Rename

2008-01-24 Thread Pastor Steve
/> > > >- Rick > > > Original Message >> > Date: Thursday, January 24, 2008 02:36:55 PM -0600 >> > From: Pastor Steve <[EMAIL PROTECTED]> >> > To: PHP eMail List >> > Subject: [PHP] Rename >> &g

[PHP] Rename

2008-01-24 Thread Pastor Steve
Does anyone know if there is a way to move all the files in one directory into another? Thanks, -- Steve M.

[PHP] if

2008-01-24 Thread Pastor Steve
Greetings, Can anyone point me in the right direction on this? I want a link to an image that appears below the link after it is clicked. I think it would be an ³if² statement, but I am not sure where to start. Thanks, -- Steve M.

Re: [PHP] Foreach

2008-01-18 Thread Pastor Steve
Yes, each variable is an array. foreach works individually with no problems. The problem I am having is getting both to update the table in MySQL. It will update $i three times with no problem, however, it will only update $t with the last value in the array. Name is a checkbox and contains the n

[PHP] Foreach

2008-01-17 Thread Pastor Steve
Here is my code: $name = $_POST['name']; if ($name) { foreach ($name as $t) { echo "$t"; } $order = $_POST['order']; if ($order) { foreach ($order as $i) { //Update the table in MySQL $update_data = "UPDATE sections SET `order` =

Re: [PHP] Count

2008-01-17 Thread Pastor Steve
Richard, Thank you so much for your response. The select would be created from the number of records in the db. $variable2 The problem that I am having is rather than getting just the number of records, which is 3 currently, I would like it to be 1 for the first option, 2 for the second..., so

[PHP] Count

2008-01-17 Thread Pastor Steve
Greetings, I am wanting to create an select menu for displaying the order of the item on a page. I am guessing that I need to get the count of how many items are in the db and them put them into a select menu. Does anyone know how to do this or can point me in the right direction? I hope this ma

Re: [PHP] Strings

2007-06-05 Thread Pastor Steve
Thank you. I tried what you suggested below and it gave me an unexpected T_CONSTANT_ESCAPED_STRING error. Would this be valid: (I am typing in my Entourage, but I am writing the code in Dreamweaver. You are probably seeing the quotes that Entourage (my email application) is giving you.) > $im

[PHP] Results In Variable

2006-02-06 Thread Pastor Steve
Greetings, I am attempting to put the results of a ³while² loop into a variable. Example: $result = mysql_query(³SELECT filename, page_title FROM table²); while ($row = mysql_fetch_assoc($result)) { $var = ³{$row[Œpage_title¹]}²; echo ³$var²;