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
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]')"
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 r
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 provi
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: Liam
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 exis
$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
- Original Message -
From: sanjay <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 9:11 AM
Subject: [PHP] return multiple value from function
Hi List,
I am new to php programming and wanted to know if it is possible to return
multiple value from a function lik
It's already been done many times.
Go to Google and search for it. Also, try sourceforge and hotscripts
save yourself the aggravation...
- Original Message -
From: Philip Yeo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 7:14 AM
Subject: [PHP] Php and XML
H
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' <[EMA
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 inst
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 re
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
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
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":
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
Subje
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: [
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
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 <
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 t
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 w
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 f
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
Sub
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:
- 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 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
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 a
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 d
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
29 matches
Mail list logo