[PHP-DB] PHP question

2005-09-17 Thread reclmaples
I'm not sure if this is the correct distro, if not please let me know which
one I should send this to.

I am having an issue that I can't figure out.  I have a table that has a
HOME and AWAY fields in it.  I want to make those two fields (the result
will be one record in HOME and one record in AWAY per ID).

my sql looks like this:

select ID,HOME,AWAY where WEEK = '$WEEK' and USERNAME = '$username'

This loops to get all weeks and usernames in the table.  Can anyone help me
with the php code.  My problem is, if I have them looping through the users
in the table, how do I keep a variable for each record that is returned.

i.e

I have PIT in the HOME field and GIA in the AWAY field for WEEK = 1 with
username a blah (this would have an ID of 1)

I want PIT and GIA in the same dropdown, but also for username  blah and
WEEK =1 (ID = 2)  I have ATL in the HOME and PHI in the AWAY (the while loop
does this for me)  How do I keep the variable for the ID =1 equal to what I
pick from that dropdown and how do I keep the value from the second drop
down.  Can you help?  I'm not sure if this is explained well enough, let me
know if you need more details.

Thanks
-Rich

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] php question - newbie

2001-09-09 Thread Chris Ross

Our website was running PHP Version 4.0RC1, then our host decided to upgrade
to version 4.0.6. Once they did this our site no longer worked every
time we went to a php page it would give an internal error. Now our host
tells us its because we have old php code is this possible.

Now they went back to version 4.0RC1, but I'm confused.

I'm new to php, but that would be strange if the updated it and it didn't
support old code. If this is the case can someone point me in the right
direction so I can find how to change my code to be compatible?

Thanks
chris
www.iwinweekly.com


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] PHP question needing info

2001-04-22 Thread Phil Jackson

Paul,
You upload the script to your server and request the page in your browser,
as you would any typical html page.  The server retrieves the page, sees the
php or php3 tag, knows to kick in the php interpreter, tries to parse the
script within the various tags, if successfull, and returns to your browser
an html document - perhaps a page generated dynamicaly from a
databasejust a rough, general idea  of what should happen...an exception
might be when the source of an image is a php file...

In repsonse to an earlier reply expecting "flames" to Paul's question - I
hope that type behavior will not be tolerated -  the goal here is to share
info and all benefit and become more proficient - folks come into this from
all levels of experience - The only really stupid questions are those that
go un-asked!

My Thoughts,

Phil J.


Paul S wrote:

> I have a question that I need help with.
>
> The question is that how do I execute a script in PHP.
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] PHP question needing info

2001-04-20 Thread Szii

*begins dousing Paul S with water before the flames start*

-Szii

- Original Message - 
From: Paul S <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 3:04 PM
Subject: [PHP-DB] PHP question needing info


> I have a question that I need help with.
> 
> The question is that how do I execute a script in PHP.
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] PHP question needing info

2001-04-20 Thread Paul S

I have a question that I need help with.

The question is that how do I execute a script in PHP.

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]