RE: [PHP-DB] Register Globals Question

2002-09-30 Thread MET
It is deprecated as it creates a massive security hole. However, all you have to do is change the setting in your php.ini file. Set register_globals=On. That's all. However, for all code you write from now on you should use $_POST, $_GET and the like. Read this article.

RE: [PHP-DB] installing to connect to a remote database server

2002-08-18 Thread MET
I'm not actually running PostgreSQL so it's setup could be different that MySQL. But if you want to install PHP with MySQL support and the database isn't running locally you just do '--with-mysql' in the configure statement. It'll give you a warning saying that its not suggested to do this, but

RE: [PHP-DB] mySQL settings

2002-08-18 Thread MET
As Joni said you need to read about the GRANT functions in the MySQL manual. But basically here's what's happening. Each person your hosting has a specific login/pass into the database. When they login MySQL looks in the 'MySQL' database and checks the users privileges. By default Ensim sets

RE: [PHP-DB] installing to connect to a remote database server

2002-08-18 Thread MET
...listen to Ramsus =) ~Matthew -Original Message- From: Brian Noecker [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 9:08 PM To: '[EMAIL PROTECTED]' Subject: [PHP-DB] installing to connect to a remote database server Newbie here. I need to install php with postgres

RE: [PHP-DB] Database abstraction layer needed?

2002-08-17 Thread MET
What's your current website? Why do you think you need one? ~MET -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Database abstraction layer needed? I'm redoing my web site, and I'm

RE: [PHP-DB] Upgrading PHP

2002-08-14 Thread MET
Don't forget to make register_globals equal to on instead of off. Well, actually this is just a security/preference issue. Prior to PHP 4.2.0 globals were default to on, but now they're default to off meaning that you have to use _GET['query_string_value'] instead of just $query_string_value.

[PHP-DB] Supplied argument is not a valid MySQL result resource

2002-08-09 Thread MET
I'm getting some massive errors on some pretty simple code. Included are the errors as well as the PHP function that is giving me issues. Any help would be greatly appreciated. And the weirdest thing, is that the code used to work ?? Line 267 is equal to this PHP line:

[PHP-DB] Variables Not Staying Set

2002-08-09 Thread MET
...slightly in regards to my last email. I have a database query which requires a variable ( $USER[$id][cbannerID] ) to be equal to the ID of the current banner being viewed. If you've come to the page for the first time my script gives that variable a default value of -1 .