[PHP-DB] Re: Page cannot be displayed continues

2004-04-30 Thread Torsten Roehr
Matthew Perry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Everyone, Thank you very much for your advice about not using PUT. I will use GET or POST from now on. I am, however, failing to understand how to use headers to change pages instead of meta tags. After checking if

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Ford, Mike [LSS]
On 30 April 2004 01:10, Craig Hoffman wrote: When I put single quotes in the PHP_SELF and I get this error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING and I can't use double quotes because its in an echo statement. What

RE: [PHP-DB] PHP Training

2004-04-30 Thread Galbreath, Mark A
Yeah...Zandstra, Teach Yourself PHP in 24 Hours, 3rd ed. (Sams 2004). ;-) -Original Message- From: Rafi Sheikh [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 11:50 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] PHP Training Any one know of a good training course for PHP (beg to

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit files to themselves? I am slowly running out things to

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
Craig Hoffman wrote: This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit files to themselves? I am slowly

[PHP-DB] inserting same data into multiple tables question (?)

2004-04-30 Thread JeRRy
Hi, I want to input the same data into multiple tables in one query if possible. So what I want to do is input about 6 usernames I have into about 15 tables. How would I do this? In one query? I really don't want to run multiple queries over 15 times to put in the data in each table.

Re: [PHP-DB] inserting same data into multiple tables question (?)

2004-04-30 Thread Ignatius Reilly
You can't with standard SQL, nor with MySQL. _ - Original Message - From: JeRRy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 30, 2004 3:04 PM Subject: [PHP-DB] inserting same data into multiple tables question (?) Hi, I want to input the

Re: [PHP-DB] inserting same data into multiple tables question (?)

2004-04-30 Thread John W. Holmes
From: JeRRy [EMAIL PROTECTED] I want to input the same data into multiple tables in one query if possible. It's not. You really have to question your database schema if you need to do this. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Hans, Thanks Hans. I tried what your suggested and still no luck. __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On Apr 30, 2004, at 7:57 AM, Hans Lellelid wrote:

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Chris Boget
Thanks Hans. I tried what your suggested and still no luck. What does the actual HTML form look like? Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Here you go: I mostly echo out the HTML. I have included the entire form here. Thanks - CH echo (form method='post' action='{$_SERVER['PHP_SELF']}' encType='multipart/form-data'); echo (table border='0' cellpadding='5' width='500' cellspacing='0' id='result_table' tr

Re: [PHP-DB] inserting same data into multiple tables question (?)

2004-04-30 Thread Hans Lellelid
Hi, John W. Holmes wrote: From: JeRRy [EMAIL PROTECTED] I want to input the same data into multiple tables in one query if possible. It's not. You really have to question your database schema if you need to do this. Yeah, I agree w/ John -- you probably want to examine your database schema if

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
Here you go: I mostly echo out the HTML. I have included the entire form here. Thanks - CH echo (form method='post' action='{$_SERVER['PHP_SELF']}' encType='multipart/form-data'); echo (table border='0' cellpadding='5' width='500' ... If you could send the actual

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
No problem - Here you go. Thanks - CH !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head titleeClimb Media and RaceLogix Traininglog/title meta

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Hutchins, Richard
Craig, Where is the code that actually handles the image upload? Is it in /~choffman/www/mtrain/client_profile.php? If so, can you post that too? Rich -Original Message- From: Craig Hoffman [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 10:08 AM To: Hans Lellelid Cc: [EMAIL

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Sure - I never thought i would have some many issues with a simple postback. ;) Here 's the code: ? function display_edit_bio($user_id) { if($_POST['postback_bio']) { include include/dbadmin.php; //image uploader $uploadpath = 'images/clients/'; $source =

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
That worked! Han's and everyone else thank you very much. I owe everyone who helped out a beer. ;) Thanks CH __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Hutchins, Richard
Jinkeys! I had a hunch the problem was with that upload script. Nice catch, Hans! Rich -Original Message- From: Craig Hoffman [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 10:41 AM To: Hans Lellelid Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Image / file uploader

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Arthur Pelkey
does it puke when its not using _self? Craig Hoffman wrote: This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit

[PHP-DB] Re: Subject: Image / file uploader

2004-04-30 Thread Neil Smith [MVP, Digital media]
BTW that line should read if ($dest =='') not if ($dest = '') You need 2 equals signs to test for equality, using one you are setting $dest to an empty string. It's a miracle it ever worked ;-) Cheers - Neil if ($dest = '') { if

[PHP-DB] headers and if statements

2004-04-30 Thread matthew perry
?if($logIn != 1) {header(Location: loginError.php);}? Why does this direct me to loginError.php even when $logIn = 1? - Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] headers and if statements

2004-04-30 Thread Daniel Clark
Hum. Is $logIn null at times?!?! ?if($logIn != 1) {header(Location: loginError.php);}? Why does this direct me to loginError.php even when $logIn = 1? - Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Erik Meyer
Have you tried: ?php if (!$login=1) {header(Location: loginerror.php);)? -Original Message- From: Daniel Clark [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 4:19 PM To: matthew perry Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] headers and if statements Hum. Is $logIn null at

Re: [PHP-DB] headers and if statements

2004-04-30 Thread John W. Holmes
From: matthew perry [EMAIL PROTECTED] ?if($logIn != 1) {header(Location: loginError.php);}? Why does this direct me to loginError.php even when $logIn = 1? It doesn't. Double check your value of $logIn by printing it out or using print_r/vardump/etc... ---John Holmes... -- PHP Database

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Daniel Clark
I think that would try to set $login=1. Need two == Have you tried: ?php if (!$login=1) {header(Location: loginerror.php);)? -Original Message- From: Daniel Clark [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 4:19 PM To: matthew perry Cc: [EMAIL PROTECTED] Subject: Re:

Re: [PHP-DB] headers and if statements

2004-04-30 Thread John W. Holmes
From: Erik Meyer [EMAIL PROTECTED] Have you tried: ?php if (!$login=1) {header(Location: loginerror.php);)? Uhmm... Have _YOU_ tried that??? = vs == ? ;) ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Erik Meyer
I am testing now testing it with the ==, silly mistake -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 4:38 PM To: Erik Meyer; PHP-DB Subject: Re: [PHP-DB] headers and if statements From: Erik Meyer [EMAIL PROTECTED] Have you tried: ?php

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Daniel Clark
We've ALL done it before :-) I am testing now testing it with the ==, silly mistake -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 4:38 PM To: Erik Meyer; PHP-DB Subject: Re: [PHP-DB] headers and if statements From: Erik Meyer

Re: [PHP-DB] Re: [PHP] What's wrong with this IF statement?

2004-04-30 Thread Leo G. Divinagracia III
if ($cat_id != 53 || $cat_id != 54 || $cat_id != 55 || $cat_id != 117 || $cat_id != 118 || $cat_id != 74) anyone else see the problem with the IN clause instead: ie. if !($cat in (53, 54, 55, 117, 118, 74))... makes building SQL statements much easier. especially with mutiple SELECTS in a

[PHP-DB] SQL for Showing the number of queries served on each day.

2004-04-30 Thread Vern
I found this code below that allows me to retreive the queries served on my server for each day but can't figure out how to actually display the information using echo. Can some one give me an example using the following SQL? SELECT DATE_FORMAT(ex_date, '%Y %m %d %W'), COUNT(id) FROM email WHERE

Re: [PHP-DB] SQL for Showing the number of queries served on each day.

2004-04-30 Thread John W. Holmes
Vern wrote: I found this code below that allows me to retreive the queries served on my server for each day but can't figure out how to actually display the information using echo. Can some one give me an example using the following SQL? SELECT DATE_FORMAT(ex_date, '%Y %m %d %W'), COUNT(id) FROM

[PHP-DB] Re: SQL for Showing the number of queries served on each day.

2004-04-30 Thread Uzi Klein
Vern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I found this code below that allows me to retreive the queries served on my server for each day but can't figure out how to actually display the information using echo. Can some one give me an example using the following SQL?

Re: [PHP-DB] SQL for Showing the number of queries served on each day.

2004-04-30 Thread Vern
That did it thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php