Fw: [PHP] date

2002-05-02 Thread Richard Emery
When/If you read the PHP manual, you'll discover that the second parameter MUST be a timestamp; not a text string. - Original Message - From: Norman Zhang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 02, 2002 2:17 PM Subject: [PHP] date Hi, I am doing a test with the

Re: [PHP] Database Duplication

2002-04-30 Thread Richard Emery
I'm going to guess you are using mysql. Before starting a test, dump your database with the mysqldump command. Edit this file to create/use your test database. Load your test database with this file. This is too obvious and too easy...therefore, I assume you already did this and it did not

Re: [PHP] Problem with array

2002-04-30 Thread Richard Emery
show the form. - Original Message - From: Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] To: PHP-GENERAL [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 10:11 AM Subject: [PHP] Problem with array Hello All, I've got a form that creates checkboxes based on the number of rows

Re: [PHP] parse error

2002-04-30 Thread Richard Emery
When constructing $Query, end each line with a period (.) not a comma(,). Same applies to $Query2. $Query = INSERT into $TableName values('0', '$Guestbook[dateadd]'. '$Guestbook[name]', '$Guestbook[town]', '$Guestbook[email]'. '$Guestbook[website]','$Guestbook[favsong]', '$Guestbook[comments]');

Re: [PHP] return multiple value from function

2002-04-29 Thread Richard Emery
?php function funca($a,$b) { $q=$a; $w=$b; return array($w,$q); } $e=123; $r=456; list($z,$x) = funca($e,$r); print $z, $x\n; ? - Original Message - From: sanjay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 9:11 AM Subject: [PHP] return multiple value from

Re: [PHP] build array dinamicaly

2002-04-29 Thread Richard Emery
$query = SELECT name,address FROM tbl; $result = mysql_query($query); while($myarray[] = mysql_fetch_array($result); - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday, April 29, 2002 9:20 AM Subject: [PHP] build array dinamicaly Hi list,

Fw: [PHP] create textfile if not existing?

2002-04-29 Thread Richard Emery
Did you even try to develop this application? It's to easy. Do so. If you have problems, then post the code and we'll help you. - Original Message - From: Hawk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 3:49 PM Subject: [PHP] create textfile if not

Re: [PHP] Database Duplication

2002-04-29 Thread Richard Emery
Every time a user logs in, you want to duplicate the database Must be a very small database...not one with several hundred-thousand records. It's a SQL question. You didn't specify what database you are using, so nobody can provide you with specifics. - Original Message - From:

Re: [PHP] date problem

2002-04-28 Thread Richard Emery
First, the timestamp that is retrieved from mysql is NOT the same as is required for PHP. Second, do you REALLY wan the Day of the Week (Mon, Tue, Wed) or the date of the month (1,2,3,4,5,6,...)? Third, let Mysql do the conversion for you. For instance if you timestamp field is named mydate:

Re: [PHP] failed query results

2002-04-28 Thread Richard Emery
If no customers are found, then: if (mysql_num_rows($result1)==0) { print theres no such customer!; } - Original Message - From: baldey_uk [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Sunday, April 28, 2002 7:48 AM Subject: [PHP] failed query results Hello all, i am

Re: [PHP] Changing field size

2002-04-28 Thread Richard Emery
First, your question belongs on the mysql mailing list, not PHP Second, did you try it yourself before asking? I guess not. Third, the data would not be effected - Original Message - From: Anthony Rodriguez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 28, 2002 8:09 AM

Re: [PHP] Removing empty elements from an array

2002-04-28 Thread Richard Emery
unset() ??? - Original Message - From: Craig Westerman [EMAIL PROTECTED] To: php-general-list [EMAIL PROTECTED] Sent: Sunday, April 28, 2002 9:36 AM Subject: [PHP] Removing empty elements from an array I have an array that contains several empty elements. What is simplest way to

[PHP] Unable to Install PHP 4.2 into RH7.0/Apache 1.3

2002-04-28 Thread Richard Emery
I am unable to install PHP 4.2 functionality into my RH 7.0/Apache 1.3 environment. I downloaded the 4.2 source. The INSTALL file provides 2 options: DSO and static. I was unable to create the DSO version because the file apxs is nowhere to be found on my system. I should mention that I

Re: [PHP] Last time Append line to text file

2002-04-28 Thread Richard Emery
The answer is: $file_pointer = fopen('/public_html/emails.txt', a) or exit; The || is a binary operation. You want or, the logical operation. - Original Message - From: Rodrigo [EMAIL PROTECTED] To: [EMAIL PROTECTED]; 'Miguel Cruz' [EMAIL PROTECTED]; 'John Holmes' [EMAIL

Re: [PHP] Mail responders

2002-04-26 Thread Richard Emery
You must have control over the Message Transfer Agent (MTA), such as SendMail. Or, if your host uses qmail MTA, you set it up using the dot-qmail files in your user directory. - Original Message - From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002

Re: [PHP] Counter ?

2002-04-26 Thread Richard Emery
This list is to answer questions for programming problems. Write the script yourself. If it fails, post the code and we'll be glad to help. sheesh - Original Message - From: CMS [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Friday, April 26, 2002 4:25 PM Subject:

Re: [PHP] Redirecting

2002-04-26 Thread Richard Emery
Since you haven't posted your code, let me see if I can divine it... Nope...can't do it...my MindReader.exe vers 1.01 is on the blink. POST YOUR CODE - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, April 26, 2002 10:46 PM Subject:

Re: [PHP] Attachments

2002-04-24 Thread Richard Emery
GOOGLE found this on first try http://www.zend.com/zend/spotlight/sendmimeemailpart1.php - Original Message - From: The_RadiX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 7:22 AM Subject: [PHP] Attachments I have read briefly through past topics.. Just

Re: [PHP] Upload

2002-04-24 Thread Richard Emery
The PHP Manual has complete instructions for this. Did you look there yet? - Original Message - From: Gabriele Biondo [EMAIL PROTECTED] To: ML PHP [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 8:00 AM Subject: [PHP] Upload Hi, guys! Does anyone know how to write a php script to

Re: [PHP] Upload

2002-04-24 Thread Richard Emery
I would try the chapter titled, Handling file uploads I'm sorry...I gotta ask...did you do any research on your own? Why did you not check the manual when I suggested it? - Original Message - From: Gabriele Biondo [EMAIL PROTECTED] To: Richard Emery [EMAIL PROTECTED] Sent: Wednesday

Fw: [PHP] If else question

2002-04-23 Thread Richard Emery
OK...this has dragged on... Jennifer, show us your ACTUAL code, including database access statements. We can't help you if you expect us to read your mind... - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:17 PM

Re: [PHP] If else question

2002-04-23 Thread Richard Emery
Now, we're getting somewhere!!! First, have you printed out $query to ensure it contains what you expected? Show us. Second, are you certain the mysql_query() is successful? I ask, because you don't have the or die() that SHOULD be on all queries. Third, have you printed out all the values

Re: [PHP] Sorting an array.

2002-04-18 Thread Richard Emery
Perhaps you could store $row in an array of arrays; store only $row within 100 miles. Add another field, Distance, to each row that holds the calculated distance. Then, after creating the array, sort the final array by Distance. - Original Message - From: Mike Mike [EMAIL PROTECTED] To:

Re: [PHP] mysql quickie..

2002-04-17 Thread Richard Emery
I've seen other responses to your request answer with some VERY UGLY methods to get the last id. Instead, use mysql_insert_id() which was created specifically for the info you need. - Original Message - From: Kelly Meeks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 17,

Re: [PHP] mysql quickie..

2002-04-17 Thread Richard Emery
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Richard Emery [EMAIL PROTECTED] Cc: Kelly Meeks [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 17, 2002 1:49 PM Subject: Re: [PHP] mysql quickie.. Richard Emery wrote: I've seen other responses to your

Re: [PHP] Displaying Results

2002-04-16 Thread Richard Emery
You're part way there: SELECT COUNT(matches) FROM table GROUP BY matches; - Original Message - From: Jason Soza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 5:49 PM Subject: [PHP] Displaying Results Suppose I want a script that goes into a table, looks up all

Re: [PHP] What date/time was it 7 hours ago?

2002-04-15 Thread Richard Emery
If you are using mysql, you can perform the calculations in mysql during the SELECT, such as: SELECT date_field - INTERVAL 7 HOUR FROM my_table; - Original Message - On Monday, April 15, 2002, at 09:50 AM, Torkil Johnsen wrote: What date/time was it 7 hours ago? I'm just trying to

[PHP] Fw: [PHP-DB] Arrays

2002-04-15 Thread Richard Emery
You are getting array because that's what $eventdate is. Now, WHAT do you REALLY want to insert? - Original Message - From: Alex Francis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 15, 2002 3:13 PM Subject: [PHP-DB] Arrays I am trying to insert event dats into a