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))
{
...
...
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
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
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
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
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)
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
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
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
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
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
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
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
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 "
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
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
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
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
18 matches
Mail list logo