[PHP] very basic php mysql question

2004-09-20 Thread AMC
Hi, I have a php page with the code below. The page doesn't show the record from the database when it runs and I'm not sure why. I'm not getting any error message, just a blank page. There is one record in the tabele I'm trying to query. I'm brand new to php so I'd really appreciate the help. -

Re: [PHP] very basic php mysql question

2004-09-20 Thread Matthew Sims
> > I have a php page with the code below. The page doesn't show the record > from > the database when it runs and I'm not sure why. I'm not getting any error > message, just a blank page. There is one record in the tabele I'm trying > to > query. > I'm brand new to php so I'd really appreciate the

Re: [PHP] very basic php mysql question

2004-09-20 Thread Victor SaldaƱa D.
On Mon, 20 Sep 2004 15:17:33 -0700, AMC <[EMAIL PROTECTED]> wrote: > http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Greg Donald wrote: I didn't reply to your email. The email I replied to mentioned nothing related to PHP. Exactly.. you probably don't use a threaded email client, else you might have noticed the thread was on-topic when I started it. The recursion is killing me here. Need a GMail account? I do

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Jim Grill
> On Mon, 20 Sep 2004 15:25:40 -0400, John Holmes > <[EMAIL PROTECTED]> wrote: > > Come on... all good bottom-posting-firewall-turning-off PHP programmers know > > that print() is a function and returns a value while echo does not. We're > > all using templates, anyhow, so your code wouldn't have b

[PHP] Multiple External Files with DB calls

2004-09-20 Thread GH
I have a question, what happens if there are multiple 'required' and 'included' files that have calls to the same DB via the same username and password (they even use the same variable to call)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] very basic php mysql question

2004-09-20 Thread AMC
Thanks, the script runs now, but I cannot open a connection. I know the user name, and password are correct. What could be the cause? "Matthew Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > I have a php page with the code below. The page doesn't show the record > > fr

Re: [PHP] very basic php mysql question

2004-09-20 Thread AMC
I figured it out - using the wrong info for host Thanks again "Amc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, > > the script runs now, but I cannot open a connection. I know the user name, > and password are correct. What could be the cause? > > > > > $user = "aclark";

Re: [PHP] very basic php mysql question

2004-09-20 Thread Jason Davidson
add mysql_error() to your die string so you can report what the error is. Jason "AMC" <[EMAIL PROTECTED]> wrote: > > Thanks, > > the script runs now, but I cannot open a connection. I know the user name, > and password are correct. What could be the cause? > > > > > $user = "aclark"; > >

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Chris Shiflett
--- Greg Donald <[EMAIL PROTECTED]> wrote: > --- Rick Fletcher <[EMAIL PROTECTED]> wrote: > > Please stop talking about gmail invites on the list. Anyone > > who wants one, or who has some to give away, just do a google > > search for a place to get or give them. > > > > Sites like this one (the 3

Re: [PHP] List Etiquette

2004-09-20 Thread Thomas Goyne
On Sun, 19 Sep 2004 10:02:23 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: I really shouldn't be indulging you as it's pretty obvious you're only here for a vigorous debate (that's my euphemism for an argument - the not so nice meaning of argument). The OP asked for the pros and cons of top

[PHP] generating a mysql script

2004-09-20 Thread AMC
Is there a tool that will generate a script that can be run to rebuild a mysql database? I need to move my database to a different server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Infinate looping

2004-09-20 Thread Thomas Goyne
On Sun, 19 Sep 2004 11:20:01 -0500, Stephen Craton <[EMAIL PROTECTED]> wrote: Yes, I agree, if I were making a task to run every few minutes it would be easier, but that's not exactly what I'm doing. I'm more or less streaming content from the database to the end-user. It's basically a chat sc

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 15:29:35 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > I do use a threaded client, actually. You're the one who didn't notice > I replied to someone other than yourself. I noticed your reply, it said the thread was off-topic and it was not. There was a PHP question in the

[PHP] cookie saving problem

2004-09-20 Thread Jason FB
PHP GENERAL LIST: I am trying to get the session cookie to stay active for 10 years I have at the top of EVERY page on my website an include statement which includes a file which contains only this code: If I quit my browser and re-launch, it seems to remember my session variables. [Which was N

Re: [PHP] generating a mysql script

2004-09-20 Thread Stut
On Mon, 20 Sep 2004 16:20:21 -0700, AMC <[EMAIL PROTECTED]> wrote: > Is there a tool that will generate a script that can be run to rebuild a > mysql database? I need to move my database to a different server Not technically PHP-related, but I suggest you look for mysqldump in the mysql manual. -

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 15:54:40 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > If you really want to use this list to distribute something that you think > might be interesting to the subscribers, please use a few lines of your > signature. As long as you're a legitimate participant, you wil

Re: [PHP] cookie saving problem

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP GENERAL LIST: I am trying to get the session cookie to stay active for 10 years I have at the top of EVERY page on my website an include statement which includes a file which contains only this code: If I quit my browser and re-launch, it seems to remember my session variabl

Re: [PHP] generating a mysql script

2004-09-20 Thread Brian V Bonini
On Mon, 2004-09-20 at 19:37, Stut wrote: > On Mon, 20 Sep 2004 16:20:21 -0700, AMC <[EMAIL PROTECTED]> wrote: > > Is there a tool that will generate a script that can be run to rebuild a > > mysql database? I need to move my database to a different server No need to use PHP which also makes this O

[PHP] Re: curl grabbing a website

2004-09-20 Thread Matthew Weier O'Phinney
* Martin Justra <[EMAIL PROTECTED]>: > I finally managed to grab the website via curl. Now the problen is that I > want to have a small piece of that site. I tried to cut that site by > explode. Now the browser hangs. He says "waiting for www.domain.de" and > does nothing. > > Here is my lis

Re: [PHP] cookie saving problem

2004-09-20 Thread Jason Wong
On Tuesday 21 September 2004 07:33, Jason FB wrote: > I am trying to get the session cookie to stay active for 10 years Session cookies as its name suggests lasts for the duration of the session, meaning your browser does not store them anywhere permanent and are lost when browser is closed. -

[PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Jordi Canals
Hi all, I have seen an strange thing with the funcion Header("Location: $url") and will tell in short words. I have a method in a class wich composes an URL from the database, this method sets some extra params in the url. In this case, the function returns: /myaccount/?opt=sys&id=3 Note the &

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Jason Wong
On Tuesday 21 September 2004 07:32, Greg Donald wrote: > I noticed your reply, it said the thread was off-topic and it was not. > There was a PHP question in the first post, but you didn't see it. > Pretty simple. gmail accounts = off topic two unrelated topics in one post = bad form -- Jason

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Robert Cummings
On Mon, 2004-09-20 at 21:10, Jason Wong wrote: > On Tuesday 21 September 2004 07:32, Greg Donald wrote: > > > I noticed your reply, it said the thread was off-topic and it was not. > > There was a PHP question in the first post, but you didn't see it. > > Pretty simple. > > gmail accounts = off

Re: [PHP] mysql_connect does not connect

2004-09-20 Thread Carlos Souza
Sam Hobbs wrote: "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Would you mind spilling the beans? I'm sure everyone is dying to know what the resolution of this thread is. I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to

[PHP] captcha lib

2004-09-20 Thread Roger Thomas
What's the most popular/usable captcha library that is currently available. I frequent PEAR website but couldnt find any. Pls advise. -- roger --- Sign Up for free Email at http://ureg.home.net.my/ -

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Marek Kilimajer
Jordi Canals wrote: I have a method in a class wich composes an URL from the database, this method sets some extra params in the url. In this case, the function returns: /myaccount/?opt=sys&id=3 Note the & in the URL Well, with this code, the url works perfect and the & is going as expected redirec

Re[2]: [PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hello Marek, Monday, September 20, 2004, 6:58:46 PM, you wrote: MK> adwinwijaya wrote: >> Hi all ... >> >> >> I have script that looks like : >> >> if(file_exists($filename)){ >> $len = filesize($filename); >> //header("Content-type: attachment/pdf"); >> header('C

[PHP] Re: captcha lib

2004-09-20 Thread Manuel Lemos
Hello, On 09/20/2004 10:24 PM, Roger Thomas wrote: What's the most popular/usable captcha library that is currently available. I frequent PEAR website but couldnt find any. Pls advise. Here you may find several solutions exactly for that problem: http://www.phpclasses.org/googlesearch.html?words=ca

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Brad Pauly
On Mon, 20 Sep 2004 10:58:46 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > I suppose you are trying to force IE to download the pdf file, but it is > always displaying it - you did not tell what is your problem. > > IE determines the type of file from the extension, if it is a known > ext

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Chris Shiflett
--- Jordi Canals <[EMAIL PROTECTED]> wrote: > I have seen an strange thing with the funcion > Header("Location: $url") and will tell in short words. > > I have a method in a class wich composes an URL from the > database, this method sets some extra params in the url. In > this case, the function

[PHP] [Newbie Guide] For the benefit of new members

2004-09-20 Thread Ma SivaKumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try ht

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Markus Fischer
John Holmes wrote: From: "Markus Fischer" <[EMAIL PROTECTED]> Which do you prefer, echo() or print() ? Albeit that, they're identical I think (both are core language construct, no real functions). Come on... all good bottom-posting-firewall-turning-off PHP programmers know that print() is a fun

[PHP] php5 and php4?

2004-09-20 Thread Minuk Choi
I've been meaning to ask this... but I always thought I could find the answer online(I didn't). Back when PHP 5.0.1 was released, PHP 4.something else was released. What was the main reasoning behind this move? Is it because PHP5 is more OOP(similar to java)?

Re: [PHP] php5 and php4?

2004-09-20 Thread Thomas Goyne
On Tue, 21 Sep 2004 01:29:06 -0400, Minuk Choi <[EMAIL PROTECTED]> wrote: I've been meaning to ask this... but I always thought I could find the answer online(I didn't). Back when PHP 5.0.1 was released, PHP 4.something else was released. What was the main reasoning behind this move? Is i

Re: [PHP] List Etiquette

2004-09-20 Thread Octavian Rasnita
No, there is no way for customizing the headers Outlook Express use to put in the email messages. I wish there was, because I don't like them also... Teddy - Original Message - From: "- Edwin -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 20, 2004 2:51 PM Subject:

<    1   2