Hi,
RE: mysql_query() vs query_database()
What is the differences between mysql_query and query_database?
Are both compatible with PHP 5 and MySQL 5?
Is one faster than the other?
Thank you for your help.
Keith
Hi,
RE: Restore Leading Zeros in Zip Codes
Does anyone happen to have a script that will restore the leading zeros in a
mixed data set of 5 digit zip codes and 10 digit zip+4 codes? Any suggestions?
Thanks,
Keith
Hi Guys,
RE: [Updated] Previous and Next Month and Year
Here is part of my code:
$month = 6;
// Current month value, but changes changes with next/prev links.
// Value used by a mini calendar script "phpcalendar"...
// Originally derived via: $month = date('n', time());
// And updated wi
#x27;), date('Y'));
would generate last day from last month this year.
Word of wisdom: don't rely solely on timestamp calculations e.g. now +
24 hours and so on, because you may need to take into account daylight
savings times and such otherwise your calculations may be off
Hi,
RE: Previous and Next Month and Year
This is my code:
$next_month = date('F Y', time()+$month);
$prev_month = date('F Y', time()-$month);
echo "$prev_month \n"; #Result "June 2007"
echo "$next_month \n"; #Result "June 2007"
What I am trying to do is get the month and year
ba
tenation operator, usually applies only to strings
try:
$days[] = array($this_day=>array("#","today-day"));
or actually:
$days[$this_day] = array("#","today-day");
since it looks like you're indexing based on the day
Keith Spiller wrote:
H
Hi Folks,
RE: Appending to an Array
Here is my code:
# PREVIOUS
MONTH -
$days = array(
10=>array("/weblog/archive/2004/Jan/02","linked-day"),
12=>array("/weblog/archive/2004/Jan/03","linked-day"),
25=>array(
Hi,
RE: Manually Inserted Row
I'm using PHP to retrieve the values for the manual insert... I originally
tried using
an array created from the mysql query and adding one row manaually and then
sorting the multidimensional array.
As Richard pointed out, sorting using the database would be mu
Hi,
RE: Sorting Multidimensional Array
I'm trying to sort a multidimensional array. The data was taken from
a mysql query:
$myrow = mysql_fetch_row($result) {
query[] = $myrow;
}
The purpose is to retrieve the table data and manually add a record,
then sort ASC by the startdate which is the
ew record, but I have to use PHP because the Start and
End
dates for that record must match the current month...
If I could add the record to the Select statement as you suggest that would
be wonderful.
Keith
----- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]
tober 03, 2005 11:27 PM
Subject: Re: [PHP] chown function
Keith Spiller wrote:
I'm using:
chown("$endpath", "admin");
to try to change the owner of directories after using mkdir()
to create them. It continues to fail on my remote Fedora server.
With what error me
Hello,
I'm using:
chown("$endpath", "admin");
to try to change the owner of directories after using mkdir()
to create them. It continues to fail on my remote Fedora server.
I know the path is correct because mkdir() works perfectly.
Apache sets the owner as 48 when the directory is created.
I
Hello,
I am trying to find out how to pass a multidimensional array within a hidden input of
a form.
Would it be something like this?
Any advice would be forever appreciated...
Keith
Hello Everyone,
I'm trying to create a Logout Function and Link. My site uses a standard
htaccess file for its authentication method. After the brower requests the
username and password they have access to the protected site.
Then users can jump to a special Messaging section where I wrote a ph
Hello,
I've managed to get a series of javascripts to work exactly as I wanted.
They check all and uncheck all checkboxes with a single click of a control checkbox.
Unfortunately, the information has to be sent to php. As soon as I add the []
brackets to
an input name, the javascript no longer
=
'1' ORDER BY
qorder",$db);
Works perfectly?
Keith Spiller
a.k.a. Larentium
Can anyone recommend a good FAQ, Q&A or Knowledge Base script written in PHP?
Preferably one with an administration section and a queue for questions to be answered.
Larentium
17 matches
Mail list logo