[PHP-DB] Include File Syntax

2001-04-26 Thread James McLaughlin
This is my first time programming with PHP. I have seen include files in the beginning of a php block and wonder is there a specific syntax used in these files and how secure this is vs code in my .php page? Can someone show me a small example of what the include file might look like that would

RE: [PHP-DB] Include File Syntax

2001-04-26 Thread Steve Brett
hi kat, the include files are simply a way for repetitive code (like a connection to a db) to be inserted into your pages. the syntax for the files is the same as any php script and it is added to the page at the point that you include it. the format is include (page_name.php); the pages

[PHP-DB] I'm using mysql. How can i resolv this error?.

2001-04-26 Thread hansol
This is Sample: $conn= mysql_connect(localhost,login,passwd) or die (ERREUR de connexion au Serveur); $result = mysql($conn, SELECT id, name, salary FROM employees); But,Error appear. supplied argument is not a valid mysql/Link resource in line xx -- PHP Database Mailing List

[PHP-DB] Query problem cont'd..

2001-04-26 Thread Russ Michell
Hi there: I'm stil having problems with this query in that it doesn't bring up any results! Here is the select menu that refreshes the page and deposites the var: 'sortedBy' into play: form select name=\sortMonth\ onChange=\MM_jumpMenu('parent',this,0)\; option--select one--/option option

RE: [PHP-DB] Query problem cont'd..

2001-04-26 Thread Steve Brett
ok. try this. ahven't tested it though ... form name=thisForm action = ?php print $PHP_SELF ? ?php // to dump out the months $months = Array(January, February, March, April, May, June, July, August, September, October, November, December); echo 'select name=sortMonth

RE: [PHP-DB] Sending the user their forgotten password via emal??

2001-04-26 Thread SOHH.com Webmaster
What I've done is I set up an INPUT box on the site, where you type in your e-mail address. Upon hitting submit, I query the database looking for the persons e-mail address. If it's there, I send it to them, if not I inform them that they aren't in the database. This is the code I use for

Re: [PHP-DB] mail system

2001-04-26 Thread Andreas D. Landmark
At 26.04.2001 16:20, you wrote: I was wondering if anyone had any ideas on how I can setup a email system , internal using php and mysql only .. No Imap Server, or POP. Can someone please guide me in the right direction ,, this is email sysetm would be only for registered members. I am setting up

Re: [PHP-DB] file and mail

2001-04-26 Thread kancha
That is not the problem. @ and . need not be escaped. It's got to do with the array that stores the file. Just need to dump the array and try to debug. Any idea on how I can dump an array regards, kancha On Thu, 26 Apr 2001 00:30:40 +0530, Subodh Gupta wrote: Hi Kancha, Since you are

[PHP-DB] update problems

2001-04-26 Thread ns
hi i got to have data from mysql database to drop down menues in html how do i do that? I can´t get any data to my drop down menues... thanks to anyone who can do this... ns -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP-DB] update problems

2001-04-26 Thread Paul Burney
on 4/26/01 11:16 AM, ns ([EMAIL PROTECTED]) wrote: hi i got to have data from mysql database to drop down menues in html how do i do that? I can´t get any data to my drop down menues... You need to run a query, something like: SELECT DISTINCT from TABLE where SOMETHING and they run a

Re: [PHP-DB] Can't connect to local MySQL server through socket '/tmp/mysql.sock'

2001-04-26 Thread Larry Hotchkiss
Providing additional information such as the OS your useing as well as your mysql version can be a big help as well. franky wrote: I have this error Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) what appening? AND I CANT connect to mysql for html

RE: [PHP-DB] Can't connect to local MySQL server through socket '/tmp/mysql.sock'

2001-04-26 Thread Andreas D. Landmark
At 26.04.2001 20:53, you wrote: I have this error Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) sounds like MySQL is not running on your server.. ensure it's installed properly and has actually started, i think typing mysqladmin -p version at the

[PHP-DB] Really embarassing newbie question...

2001-04-26 Thread ~BD~
Sorry to do this to ya... Ive been involved with PHP for a total of two days now, and I'm kinda stumped. I've been looking in docs for about 4 hours now for this, and I'm sure I'm slipping right by the obvious answer somewhere, but What's the best (recommended) way to determine if a table

Re: [PHP-DB] Really embarassing newbie question...

2001-04-26 Thread ~BD~
Doh! Sorry about that - yes, it's MySQL. And I complete blew by mysql_list_tables - I mis-read what I thought it did, then didn't look at it any further... I told you it was embarrasing... Thanks! http://www.bustdustr.net Home of Radio Free Bd You didn't mention what DBMS you are running...

[PHP-DB] Sending the user their forgotten password via emal??

2001-04-26 Thread DC
Hi all I would like to offer my users the chance to have their username and password sent to them via the email address stored. As i see it i have two issues (1) how do i do the verify email thing where the script send a click here to confirm email address on registration application (2) how

[PHP-DB] mail system

2001-04-26 Thread Greg K
I was wondering if anyone had any ideas on how I can setup a email system , internal using php and mysql only .. No Imap Server, or POP. Can someone please guide me in the right direction ,, this is email sysetm would be only for registered members. I am setting up a dating site.. Any help would