Re: [PHP] datetime formatting problem

2004-05-28 Thread Jordan S. Jones
[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

Re: [PHP] Code Review PLEASE !!!

2004-04-05 Thread Jordan S. Jones
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

Re: [PHP] Code Review PLEASE !!!

2004-04-05 Thread Jordan S. Jones
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

[PHP] PHP 4.3.4 EAPI

2004-03-23 Thread Jordan S. Jones
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

Re: [PHP] newbie pls help

2004-02-03 Thread Jordan S. Jones
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

Re: [PHP] HTML via echo or not

2003-12-29 Thread Jordan S. Jones
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

Re: [PHP] Help With Recursion && Multi-Dimensional Arrays

2003-11-08 Thread Jordan S. Jones
; 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

Re: [PHP] OT - Quick JavaScript Question

2003-10-28 Thread Jordan S. Jones
. 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

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
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

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
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

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-23 Thread Jordan S. Jones
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

Re: [PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Jordan S. Jones
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

Re: [PHP] Array in SQL-table

2003-10-23 Thread Jordan S. Jones
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

Re: [PHP] problem with intval and !=

2003-10-23 Thread Jordan S. Jones
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

Re: [PHP] php with Interbase ?

2003-10-22 Thread Jordan S. Jones
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

Re: [PHP] help me

2003-10-21 Thread Jordan S. Jones
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

Re: [PHP] Whats more efficient? ( echo " "; or )

2003-10-21 Thread Jordan S. Jones
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

Re: [PHP] php framework

2003-10-21 Thread Jordan S. Jones
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

Re: [PHP] php framework

2003-10-21 Thread Jordan S. Jones
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

Re: [PHP] var static

2003-08-28 Thread Jordan S. Jones
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

Re: [PHP] general questions

2003-06-03 Thread Jordan S. Jones
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

Re: [PHP] sound

2003-05-30 Thread Jordan S. Jones
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

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Jordan S. Jones
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

Re: [PHP] $_FILES help. Counting help

2003-05-27 Thread Jordan S. Jones
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

Re: [PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
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 > >

[PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
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

[PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Jordan S. Jones
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

[PHP] Re: Can't display PNG images

2002-03-12 Thread Jordan S. Jones
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

Re: [PHP] 'undef' as an argument value

2002-03-12 Thread Jordan S. Jones
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

[PHP] Re: dynamic startpage in flash...

2002-03-11 Thread Jordan S. Jones
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

Re: [PHP] index.php question

2002-03-11 Thread Jordan S. Jones
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

[PHP] Re: removing ALL whitespace from a string

2002-03-11 Thread Jordan S. Jones
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