[PHP] walking through database one record at a time with forms.

2003-07-23 Thread Artoo
I'm tring to create a script for the WEBMASTER to go through a temporary table in a MySQL database, and either accept or reject the data submitted by users. $sql = mysql_query("SELECT * FROM temp_table"); $result = mysql_num_rows($sql); Then with, while($row = mysql_fetch_array($sql)) { ... ...

Re: [PHP] reposting in textarea

2003-07-16 Thread Artoo
That didn't seem to work. I changed the echo $old_data to echo $_SESSION['old_data'] since old_data is a session variable. I put a test line echo $_echo $_SESSION["old_data"]; just before the form is displayed to make sure the data is being set, which it is and has the correct data. But the dat

[PHP] reposting in textarea

2003-07-14 Thread Artoo
How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can be re-editied. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] just wondering

2003-07-10 Thread Artoo
Just wondering if there's a clear screen function in PHP like the clrscr() in 'C'. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what's wrong with this?????

2003-07-08 Thread Artoo
Thanks. - Original Message - From: "Adam Voigt" <[EMAIL PROTECTED]> To: "Artoo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 11:31 AM Subject: Re: [PHP] what's wrong with this? > Umm quotes. > > Any

[PHP] what's wrong with this?????

2003-07-08 Thread Artoo
I keep getting Parse error: parse error, unexpected T_LNUMBER in /usr/local/psa/home/create.php on line 9 This is line 9, which should just create a table. $result = mysql_query('CREATE TABLE members (userid INT(25) NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(50)

[PHP] reposting data into forms after confirmation screen

2003-07-07 Thread Artoo
Anyone know where I can view some sample code that does the following? When the user clicks on SUBMIT, they are taken to a confirmation screen which they can click an EDIT button or SUBMIT button. If they click on the EDIT button they are taken back to the first form. How do you repost the data th

[PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Artoo
Hi, How can I start searching for the first space in a string while starting at say the 150th character? I'm trying to display the first 150 characters of an article that is stored in a LONGTEXT filed of a MYSQL database, and should the 150th character be inside a word, I would want to finish dis

[PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread Artoo
Thanks, Is it better to use that function before the INSERT query and save it to the database like that or use that nl2br() function while displaying the results of the SELECT query, Thanks agian. Artoo "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT

[PHP] making image smaller with same aspect ratio

2003-06-21 Thread Artoo
Hey all, How do you reduse an image while keeping the same aspect ratio so not to distort the image Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] saving TEXTAREA data into mysql database

2003-06-21 Thread Artoo
Hey, How do you save the data from a TEXTAREA of a form into a mysql database so that when you retrieve the data later you get the same format that the user entered EXAMPLE user enters the following and cliks save Line 1 testing Line 2 TEST Line 4 test line 5 test test testing result when d

Re: [PHP] uploading files after passing vars between forms

2003-06-12 Thread Artoo
I didn't know that Thanks for the info. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Don't forget uploaded files are removed after confirmation.php finishes. > You need to move them to a temporary directory. > > Art

[PHP] uploading files after passing vars between forms

2003-06-12 Thread Artoo
Hey I'm confused! Do I use move_uploaded_file() or copy() and what is the first parameter of both in the following case: form portion of upload.htm -- Upload.htm asks for the image to be uploaded and passes of to confirmation.php which allows the u

[PHP] adding confirmation to an existing upload form

2003-06-11 Thread Artoo
Hi, I have an upload script in which the user selects an image to upload, and a brief description. I would like to have some kind of confirmation that allows the user the ability to upload the file and description or go back and make changes. I was thinking of adding to the beginning of the "

Re: [PHP] thumbnail program

2003-06-07 Thread Artoo
thanks. I'll give that a try. Happen to know where to get sample code that uses this program? "Philip Olson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Sat, 7 Jun 2003, Artoo wrote: > > > Anyone know of a good free thumbnail p

[PHP] thumbnail program

2003-06-07 Thread Artoo
Anyone know of a good free thumbnail program that can be called from a PHP script using the exec() call or something similar? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] e-mailing with attachements

2003-05-30 Thread Artoo Smith
How do you send attachments when sending e-mail uisng the mail() command? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] creating thumbnails from .BMP files

2003-05-29 Thread Artoo Smith
Hey, How do you create thumbnails from .BMP files? Is there a function like there is for JPG (ImageJPEG)? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php