That did it thanks
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"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
> SQ
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 e
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 e
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
S
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
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:
>
From: "Erik Meyer" <[EMAIL PROTECTED]>
> Have you tried:
>
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 think that would try to set $login=1.
Need two ==
> Have you tried:
>
>
> -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. I
From: "matthew perry" <[EMAIL PROTECTED]>
>
>
> 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 Mailing List (http://www.php.net/)
To unsubscribe,
Have you tried:
-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 times?!?!
>
>
> Why does this direct me to loginError.ph
Hum. Is $logIn null at times?!?!
>
>
> 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
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
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 (move_uploaded_file($so
So did you intend for this to happen :
Set $dest="". Check source supplied. Set $dest=$uploadpath.$photo_name;
Check if $dest="". If $dest="" (which it cant be if you supplied an image),
then move the uploaded file (it will never run). Else, echo couldn't store
image.
You see the problem, yes ?
Still should be able to use the \" double quotes.
echo (" 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 ab
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 f
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
>
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
Errr $HTTP_POST_FILES is not superglobal (am I wrong?)
$_FILES or specify global $HTTP_POST_FILES
Hans
Craig Hoffman wrote:
function display_edit_bio($user_id)
{
if($_POST['postback_bio'])
{
include "include/dbadmin.php";
//image uploader
$uploa
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 = $HTTP_POST_FILES['photo
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: [E
No problem - Here you go. Thanks - CH
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
eClimb Media and RaceLogix Traininglog
Welcome to Training
log
Home
Login
Mailin
> Here you go: I mostly echo out the HTML. I have included the entire
> form here.
> Thanks - CH
>
> echo (" encType='multipart/form-data'>");
> echo (" ...
If you could send the actual resulting HTML that is echoed by your
script, that would be more helpful in diagnosin
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
Here you go: I mostly echo out the HTML. I have included the entire
form here.
Thanks - CH
echo ("");
echo ("
Name:
$row[name]");
echo ("");
echo ("");
if ($row["photo_name"] != '') {
echo (" ");
} else {
$photo_na
> 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
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:
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: http
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 t
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. Would
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 run
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 try...
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
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. W
"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
36 matches
Mail list logo