[snip /]
Hi Matt,
try this:
function formatDate($val) {
$timestamp = strtotime($val);
return date('M d, Y g:i A', $timestamp);
}
strtotime possibly will not work if your date is < 01/01/1970.
[snip /]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
t any data that comes from
a form. Even if the ids come from the database, you still want to
ensure that they really are a valid numerical value or whatever your ids
happen to be based upon.
Jordan S. Jones
Matthew Oatham wrote:
Yes I agree I need some validation, dunno whether to do server
or even a number?
What happens with $_POST['fleet_id'] == '1 = 1'?? Well, long story
short, imp_fleet has no more records.
Just a simple example of a huge problem.
Jordan S. Jones
Matthew Oatham wrote:
Hi,
I am a newbie PHP programmer, I have some code that works but I want s
r would be greatly appreciated..
Thanks,
Jordan S. Jones
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This might help as well: http://www.php.net/manual/en/installation.php
Jordan S. Jones
Mrs. Geeta Thanu wrote:
Hi all,
I want to install apache and php in a redhat box version 8 and want apache
to load php. So how i shld proceed. Just downloading the rpms of both
and installing will help or I
subject. If you wish,
email me off-list @ sparkyk-AT-blackmesa-isp.net.
Cheers!
Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
--
I am nothing but a poor boy. Please Donate..
https://www.paypal.com/xclick/business=list%40racistnames.com&item_name
; Category Y
|
> Category AC
|
> Category BC
|
> Category Z
|
> Category c
Category 3
in a multi-dimentional array
Jordan S. Jones
Navid Yar wrote:
Hello Guys,
I n
. I was wondering if anyone knew of a way I could
pass the server time into the JavaScript Date() function to make it start
counting from that time, instead of the users machine time.
Thanks,
Jake
Yes,
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/date.html#1193137
Jord
include ('connectie.php');
//open connectie
$connectie = openDB();
//code
//close connectie
closeDB($connectie);
Jordan S. Jones
alain dhaene wrote:
I have try
but I get the following error:
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource
in /home/sc
Alain,
You can pass it in the function as a variable.
E.g...
Function closeDB($ref_link)
{
mysql_close($ref_link);
}
closeDB($connectie);
Hope this Helps,
Jordan S. Jones
--
I am nothing but a poor boy. Please Donate..
https://www.paypal.com/xclick/business=list%40racistnames.com
I remember reading something very very similar from one of the main php
developers.. However, for the life of me, I can't remember where it was
exactly...
Jordan S. Jones
Shawn McKenzie wrote:
I came across this post and was hoping to get a gurus opinion on the
validity. TIA
-Sha
Robb,
You pretty much have it.. Here is what you will most likely want:
if (!empty($row_rsVandyDivAddresses['Address']) && strlen (trim ($row_rsVandyDivAddresses['Address'])) > 0)
{
echo $row_rsVandyDivAddresses['Address']) . '';
}
?>
Fee
If the field isn't required to be searchable, you could just serialize
the array and shove that into a VARCHAR column.. Then unserialize the
return value for that column.
Jordan S. Jones
Reidar wrote:
I want to store an ARRAY in a SQL-table but don't know how to define it in
the
Not for me it doesn't. Returns false. Prolly because it's a string. Even
the following returns false for me:
is_integer("12")
Cheers,
Rob.
--
I am nothing but a poor boy. Please Donate..
https://www.paypal.com/xclick/business=list%40racistnames.com&item_name=Jordan+S.+Jon
It really depends on what you want compiled in. If you are not sure
what options are available, you could try
./configure --help
Jordan S. Jones
Luiz Gustavo Sarubi Macchi wrote:
Hi all,
Please, I´d like to compile my php with interbase. I know that i should
put --with-interbase[=DIR], but
the the position where the 2 (or whatever number it is) is.
4. x
5. i
6. 99 (or what ever value you want)
7.:wq (Escape, colon, w, q, Enter)
From there you will want to reload apache or whatever webserver you are
using.
HTH
Jordan S. Jones
Feel free to donate
https://www.paypal.com
TML is it better to
echo/print the whole lines?
Thanks,
-Ryan
--
I am nothing but a poor boy. Please Donate..
https://www.paypal.com/xclick/business=list%40racistnames.com&item_name=Jordan+S.+Jones&no_note=1&tax=0¤cy_code=USD
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Modified to be object oriented and support xml/xslt.
Jordan S. Jones wrote:
Where I work, we use a heavily modified version of Fusebox. We like it.
Jordan S. Jones
Lai, Kenny wrote:
just wanted a general idea on what kind of PHP framework everyone is
using..
i've heard of pear
Where I work, we use a heavily modified version of Fusebox. We like it.
Jordan S. Jones
Lai, Kenny wrote:
just wanted a general idea on what kind of PHP framework everyone is using..
i've heard of pear, and interjinn.. is there a preference or distinct
advantage that a particular framewor
If I were you, I would use the following:
if (!is_a ($miInstancia, 'db'))
$miInstancia=new db();
That way you can ensure that the variable has been instantiated and is an instance
of the db class..
But it may not really matter..
Jordan S. Jones
Alvaro Martinez wrote:
I've fou
type
$arr_test[1] = "My Name"; /// String type
$arr_test[2] = true; /// Boolean type
Hope this helps,
Jordan S. Jones
Dale wrote:
I am new to php and I just have some general questions.
1. when you create a new variable such as an inte
Have you copied the sound file to your server as well?
Jordan
Bobby wrote:
Does anybody know of a way under php to add a background sound to a
webpage...i have sound on my page when it's local but as soon as I copy
it to the server, nothing :(
thanks
-bobby
Bobby Brooks
[EMAIL PROTECTED] ht
Anthony,
I believe that what you are looking for is the following:
http://www.php.net/strtotime
Jordan
Anthony wrote:
I have a form where the user enters a date into a text input field. I need
to convert this text to a date and put it in a field in a mySQL database.
Is there an easy way to do t
Didier,
My guess is in your HTML, you have the input(s) named as 'file'..
Because of the way that PHP handles it's POST/GET variables, you will
want to redeclare your input names in your HTML to 'file[]'... This
basically defines that it is an array..
Hope that helps,
Jordan
Didier McGillis wro
k lib for OSX since it
> is BSD.
>
> Best reagrds,
> Andrey Hristov
>
> ----- Original Message -
> From: "Jordan S. Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 12, 2002 2:23 PM
> Subject: [PHP] PHP IDE
>
>
Hey all,
I am, and have been for some time, in search of a PHP IDE that allows me to
view things more on a project basis. Meaning, that I would like to have
some sort of Class browsing capabilities along with file browsing
capabilities. I am also looking for a decent freeware Texteditor/Web
Dev
Direct quote from MySQL by Paul DuBois
"MySQL 3.23 introduced the new AUTO_INCREMENT behaviors of not reusing
sequence numbers and allowing you to specify an initial sequence number in
the CREATE TABLE statement. These behaviors are undone if you delete all
records in the table using a DELETE sta
The icon essentially means that it was a broken image, or that they code did
not work. I know that wasn't much help.
On another point, in my opinion, it doesn't make a whole lot of logical
sense to have a die("Error text") statement in code that creates an image..
If an error does occur, it will
function foo ($arg1_required, $arg2_options = "") {
if (empty($arg2_optional) {
print "not passed";
} else {
print "explicit";
}
}
Or you can go the other route.
Jordan
"Rodent Of Unusual Size" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTE
In the HTML for embedding the Flash Movie, do something like this:
http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0" id=projector WIDTH=100% HEIGHT=200%>
http://www.blabla.com/mailTarget.php?target=6";); ?>"> http://www.blabla.com/mailTarget.php?target=6";); ?>" quality=hig
That means that it isn't getting passed off to the PHP executable or dll.
Instead, it is getting sent to the client as plain text..
Go to the "Home Directory" tab in the IIS admin. From there, click on
"Configuration". Add an Application Mapping for .php. Restart IIS, and you
should be good.
Jo
You can use a regular expression for that.. However, I don't have that right
here..
Jordan
"Lee P Reilly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can somebody tell me if there is a function that will remove *all*
> whitespace (\n, \r, \t, \w, etc) from
32 matches
Mail list logo