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
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
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
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
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
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.
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
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:
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:
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
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
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
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
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
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
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 =
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
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
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
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
?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
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
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
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
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:
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
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
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
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
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
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
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?
That did it thanks
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
33 matches
Mail list logo