Re: [PHP-DB] MySQL Result

2002-03-08 Thread DL Neil
Hi Chris I have delete working perfectly by doing the following: include(connectionstart.php); mysql_query (DELETE FROM emaillist WHERE EMail = '$email' ); However, how do I return a true or false flag whether the row was deleted or not? I basically need to know how to do a 0 or 1 I

[PHP-DB] Next birthday?

2002-03-08 Thread Kristjan Kanarik
I have a table called 'members' with a field (among many others) 'member_dob' - the birthday of a particular member. The data type of this field is date (-mm-dd). What I'd like to do now is to fetch one particular row from the database (I am using MySQL 3.23.37) - namely the row of the

Re: [PHP-DB] MySQL Result

2002-03-08 Thread Mike Maltese
mysql_affected_rows(int resource_id); This will return the number of rows that were affected by the last operation, so you could do something like this: if(mysql_affected_rows($connection) == 1){ //insert, update or delete succeeded }else{ //operation failed } - Original Message

Re: [PHP-DB] Email Validation

2002-03-08 Thread Markus Lervik
On Fri, 2002-03-08 at 04:10, CrossWalkCentral wrote: How would I go about doing the DNS look up part? with checkdnsrr() I'd assume: checkdnsrr($host) Searches DNS for records of type type corresponding to host. Returns TRUE if any records are found; returns FALSE if no records were found or

Re: [PHP-DB] Email Validation

2002-03-08 Thread cristi radulescu
hi there, is there any way to check the existence of an e-mail address without sending an email? i mean not only DNS lookup, but also user validation? 10x, cristi radulescu http://translator.urbanxp.org http://www.urbanxp.org ML On Fri, 2002-03-08 at 04:10, CrossWalkCentral wrote: How would

RE: [PHP-DB] Email Validation

2002-03-08 Thread Kevin Bucknum
No. Some mail servers (qmail for sure) have the user auth section seperated from the piece that accepts mail from the internet. As long as the mail is for the correct domain, it will accept it, and passes it to a seperate program that checks for the user and either bounces or delivers the mail.

RE: [PHP-DB] Next birthday?

2002-03-08 Thread Robert V. Zwink
The simple answer might be: SELECT member.* FROM `member` WHERE DAYOFYEAR(member_dob) = DAYOFYEAR(CURDATE()) ORDER BY member_dob DESC LIMIT 1 Seems to work for me. The problem is that it wouldn't support members that have a birthday on the same day :) To solve that I would select the next

RE: [PHP-DB] Next birthday?

2002-03-08 Thread Kristjan Kanarik
On Fri, 8 Mar 2002, Robert V. Zwink wrote: The simple answer might be: SELECT member.* FROM `member` WHERE DAYOFYEAR(member_dob) = DAYOFYEAR(CURDATE()) ORDER BY member_dob DESC LIMIT 1 Seems to work for me. Not for me. I think it should be ordered like this: ORDER BY

[PHP-DB] Re: why won't session_start() work?

2002-03-08 Thread Killer Angel Clark
You may try to put session_start(); at the most begining. But should you also add a session path first? Ryan Snow [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... when I do: session_start(); session_register('signor');

Re: [PHP-DB] Soft-Linking and includes

2002-03-08 Thread Indioblanco
My limited understanding of Unix hard and soft links is that /www/dir2/subdir is not a directory, it is a pointer to the inode that is pointed to by /www/dir1/subdir. I think to accomplish what you want, /www/dir2/subdir would have to be a true directory, filled with soft links to each of the

[PHP-DB] Looking for a good MySQL db abstraction layer

2002-03-08 Thread Michael Zornek
I'm looking for a good MySQL db abstraction layer. I'm just coming back to PHP/MySQL and rather writing my own I figured I'd try to see if any are already out there. The layer should obviously have the basics, of connect, query, and close, and possibly some error checking and handling. thanks,

Re: [PHP-DB] Looking for a good MySQL db abstraction layer

2002-03-08 Thread Andrey Hristov
Try those provided in PEAR(in the distro). Best regards, Andrey Hristov On Friday 08 March 2002 08:04 pm, you wrote: I'm looking for a good MySQL db abstraction layer. I'm just coming back to PHP/MySQL and rather writing my own I figured I'd try to see if any are already out there. The

Re: [PHP-DB] Looking for a good MySQL db abstraction layer

2002-03-08 Thread Paul Burney
on 3/8/02 1:04 PM, Michael Zornek at [EMAIL PROTECTED] appended the following bits to my mbox: I'm looking for a good MySQL db abstraction layer. I'm just coming back to PHP/MySQL and rather writing my own I figured I'd try to see if any are already out there. The layer should obviously

Re: [PHP-DB] Is this possible in mysql?

2002-03-08 Thread Andrey Hristov
list($sum)=mysql_fetch_assoc(mysql_query('SELECT SUM(salary') FROM employes;')); Best regards, Andrey Hristov On Friday 08 March 2002 09:17 pm, you wrote: I need to add up the (integer) values of columns, and return the added up value as one column to php. Is this possible? Or is there

Re: [PHP-DB] Looking for a good MySQL db abstraction layer

2002-03-08 Thread Indioblanco
PEAR, Metabase, and ADODB are all good db abstraction packages with their respective merits. But if your looking for something simple, efficient, for mysql only try: http://www.phpclasses.org/browse.html/package/107.html The package contains basic connection, sql command, and recordset classes. I

Re: [PHP-DB] Soft-Linking and includes

2002-03-08 Thread olinux
You must use absolute paths in includes. essentially the include will reference itself as the starting point, rather than the script you are calling it from. olinux --- Jonathan Hilgeman [EMAIL PROTECTED] wrote: I'm on a red hat system, and I've soft-linked two directories: /www/dir1/subdir

RE: [PHP-DB] Soft-Linking and includes

2002-03-08 Thread Jonathan Hilgeman
However, on a different, FreeBSD platform, this is not the case. A linked file can call an include and have the desired file be called instead of the source one. That's where I'm getting confused. - Jonathan -Original Message- From: olinux [mailto:[EMAIL PROTECTED]] Sent: Friday, March

[PHP-DB] Where to get freetype2.x precompiled for windows 2000

2002-03-08 Thread Andy
Hi guys, does anybody know where to get freetype 2 for win2k as a binary? I did try it on freetype.org and through google but all links seem to lead to nothing. Maybe someone has the .dll already installed on his machine. If so, please send me a copy I would appreciate it. Thanx for any help

[PHP-DB] two different MySQL connections without always select_db?

2002-03-08 Thread PHP freak
How would you keep two different MySQL connections to two different MySQL databases (on two different MySQL servers) up and available with two different pointers (id), and not need to always do select_db() to switch between them? I thought that if I did this: --- php: -

[PHP-DB] RE: [PHP] two different MySQL connections without always select_db?

2002-03-08 Thread Nick Richardson
i dont know if this will work, but you can try selecting them in the query... i.e.: select * from database.table I am by no means a guru on sql queries, but it may work. -Original Message- From: PHP freak [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 8:39 PM To: [EMAIL