Re: [PHP] PHP Developer Needed in San Jose, CA w/ Occasional Travel to Palo Alto

2006-07-24 Thread Paul Scott
On Mon, 2006-07-24 at 14:17 -0500, Franco Pawlisz wrote: > My Client is specifically looking for a developer with strong front end PHP > experience knowledge of Java and or Ruby is a major plus. > What the heck is "front end PHP", or am I misinterpreting the bad punctuation (or lack thereof)?

Re: [PHP] SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
Ok, I've been tinkering a little. This isn't "simple" but it's not a lot of code either. Basically the user supplies an array of "cell renderers" associated with column names. Each renderer is a function name that will be called to modify an array() representing an HTML TD element. The result is p

Re: [PHP] xml v php question

2006-07-24 Thread Larry Garfield
Disable short tags. If short tags are enabled, the PHP parser sees the '; ?> b) Disable short tags so that the PHP parser ignores Hi gang: > > Why does starting my php script with -- > > > > -- stop it from running? > > I would like to use php in a page, but the page has to begin with a > xml d

Re: [PHP] select option and php

2006-07-24 Thread weetat
Hi Jay , I am not in the javascript group. Btw , i have added document.forms['listfrm'].pageid.value in the page , but the form is not submitted ? var pageid = document.forms['listfrm'].pageid.value; var urlpath = "../listflag.php?start=&pageID="+pageid; document.forms['listfrm'].

[PHP] xml v php question

2006-07-24 Thread tedd
Hi gang: Why does starting my php script with -- -- stop it from running? I would like to use php in a page, but the page has to begin with a xml declaration to generate a quirksmode for IE6 and under while permitting IE7 to be left in standards mode. We've tried it in both Wordpress and

Re: [PHP] Re: SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Larry Garfield
On Monday 24 July 2006 18:50, Adam Zey wrote: > Writing code in a mail window, so forgive any errors or ugly code. This > will print a table with the first row as headers of the field names, and > each row after that is a database row. I hope. > > $firstrow = true; > echo ""; > while ( $row = my

[PHP] Re: SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Adam Zey
Adam Zey wrote: Michael B Allen wrote: Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It sho

[PHP] Re: SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Adam Zey
Michael B Allen wrote: Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It should be about 10 l

[PHP] SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It should be about 10 lines of code I suspect. I

Re: [PHP] Re: Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
It works, thank you! On Monday 24 July 2006 16:21, Paul Nowosielski wrote: > I understand I need to do a string replace. > > Should I do it like so? > > $search = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151)); > $replace = array("'","'",'"','"','-','-'); > > Is this what you mean? >

Re: [PHP] Re: Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
I understand I need to do a string replace. Should I do it like so? $search = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151)); $replace = array("'","'",'"','"','-','-'); Is this what you mean? Thank you, -- Paul Nowosielski Webmaster On Monday 24 July 2006 16:12, Adam Zey

[PHP] Re: Stripping weird characters again...

2006-07-24 Thread Adam Zey
Paul Nowosielski wrote: Dear All, I'm having a problem replacing these bad characters from a feed. Example: The United Kingdom<92>s National Arena Association has elected Geoff Huckstep, the current CEO of the National Ice Centre and Nottingham Arena, as chairman. The <92>is actually a sing

[PHP] Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
Dear All, I'm having a problem replacing these bad characters from a feed. Example: The United Kingdom<92>s National Arena Association has elected Geoff Huckstep, the current CEO of the National Ice Centre and Nottingham Arena, as chairman. The <92>is actually a single quote. I have these from

RE: [PHP] database connections

2006-07-24 Thread Ryan A
--- "Kilbride, James P." <[EMAIL PROTECTED]> wrote: > While that kind of query structure can be a huge > issue the biggest > problem, and performance penalty, occurs if the > programmer is opening > and closing actual real connections. A good > structure would use a > singleton connection that i

RE: [PHP] database connections

2006-07-24 Thread Robert Cummings
On Mon, 2006-07-24 at 15:15, Kilbride, James P. wrote: > While that kind of query structure can be a huge issue the biggest > problem, and performance penalty, occurs if the programmer is opening > and closing actual real connections. A good structure would use a > singleton connection that is open

RE: [PHP] database connections

2006-07-24 Thread Kilbride, James P.
While that kind of query structure can be a huge issue the biggest problem, and performance penalty, occurs if the programmer is opening and closing actual real connections. A good structure would use a singleton connection that is opened only the first time it is called and the rest of the time re

[PHP] PHP Developer Needed in San Jose, CA w/ Occasional Travel to Palo Alto

2006-07-24 Thread Franco Pawlisz
Hello Everyone, Let me introduce myself, My name is Franco Pawlisz with ObjectWave Corporation a Software Engineering Company Headquartered in Chicago, IL. ObjectWave Corporation specializes in the use of object-oriented (OO) technologies to design, develop and deploy software. ObjectWav

Re: [PHP] database connections

2006-07-24 Thread Ryan A
Hey Rob, Thanks for replying. > It's usually a sign of poor programming and/or > purist OOP programming. > > When I say purist OOP programming... > I saw > one really retarded > implementation of this kind of system where an > excess of 2 queries > were issued to the database -- on a homepag

[PHP] Re: Comparing Strings

2006-07-24 Thread Adam Zey
Nils Holland wrote: Hi folks, well, I have a really dumb question: I have the following script at http://www.tisys.org/misc/test.php: Now I call it like this: http://www.tisys.org/misc/test.php?license=07017701608113717316604124522424203810525421000718312720710316211716018016522117016609621

Re: [PHP] database connections

2006-07-24 Thread Robert Cummings
On Mon, 2006-07-24 at 11:46, Ryan A wrote: > Hi, > > This is not really a problem, more like a slightly OT > question. > > Recently I have been testing some "CMS/carts/BB > boards" and other related software, sometimes at the > end of the page the software outputs the time it took > to generate t

[PHP] database connections

2006-07-24 Thread Ryan A
Hi, This is not really a problem, more like a slightly OT question. Recently I have been testing some "CMS/carts/BB boards" and other related software, sometimes at the end of the page the software outputs the time it took to generate the page and the number of database calls. I have seen some s

[PHP] Comparing Strings

2006-07-24 Thread Nils Holland
Hi folks, well, I have a really dumb question: I have the following script at http://www.tisys.org/misc/test.php: Now I call it like this: http://www.tisys.org/misc/test.php? license=0701770160811371731660412452242420381052542100071831272071031621 17160180165221170166096217228128 And in

Re: [PHP] Step by step code running

2006-07-24 Thread Ryan A
Thanks Rob, will check it out! > You're looking for a debugger. There's a whole > thread on the go right > now for "PHP Debugger Recommendations". Personally I > prefer the > echo/print_r method that you're probably already > using... but as you say > you're trying to demonstrate so that's a bit

Re: [PHP] Step by step code running

2006-07-24 Thread Ryan A
Hey, > > I need to explain a script to a pal of mine but > either > > i cant explain it properly or he just cant get the > > concept being new to php's slightly "advanced > stuff" > > (OO and classes, mind you...i ain't no expert > myself > > in this, more like Jochem's(from this list) field > of

Re: [PHP] Re: Step by step code running

2006-07-24 Thread Mariano Guadagnini
Personally, i think the best one is Zend debugger. It's integrated on the Zend IDE, and let you debug remotely, from a server. The problem aside, is that is paid and closed source, neverthless is the best IMHO. You may give it a try: www.zend.com/products/zend_studio HTH, Mariano. weetat wrot

Re: [PHP] Re: Stumped! 4.x to 5.1 problem!!

2006-07-24 Thread Jochem Maas
Mark wrote: > Mark wrote: > >> I have an extension that seems to create PHP variables correctly, and >> var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it >> fails. >> >> Anyone have a suggestion? > > Well, it is fixed. Evidently, PHP 5.1 sees a difference between $var["0"] >

Re: [PHP] Re: Stumped! 4.x to 5.1 problem!!

2006-07-24 Thread markw
[snip] > > seems the perceived problem is being caused by something else? > Sorry, I have to respectfully disagree. I was converting all indexes to string indexes, and simply using "zend_hash_update" to re-constitute the objects and they simply did not work. When I scanned indexes strings to test

Re: [PHP] Step by step code running

2006-07-24 Thread Jochem Maas
Ryan A wrote: > Hi, > > I need to explain a script to a pal of mine but either > i cant explain it properly or he just cant get the > concept being new to php's slightly "advanced stuff" > (OO and classes, mind you...i ain't no expert myself > in this, more like Jochem's(from this list) field of >

Re: [PHP] Help with dynamic radio buttons

2006-07-24 Thread Dimiter Ivanov
On 7/22/06, Chris Grigor <[EMAIL PROTECTED]> wrote: Afternoon all I need some help here with a problem on dynamic radio buttons. I have a script that calls a database for a list of questions. The questions are returned and each question needs to have 5 radio buttons assigned to it. The radio bu

RE: [PHP] select option and php

2006-07-24 Thread Jay Blanchard
[snip] It will produce the html tag as shown below: function gotoPage(){ var urlpath = "../listflag.php?start=&pageID="+3; document.forms['listfrm'].method = 'post'; document.forms['listfrm'].action = urlpath; document.forms['listfrm'].submit; } Go to Page: 1 2 3 4 5 I tri

RE: [PHP] Checking $_POST var and stripping

2006-07-24 Thread Jay Blanchard
[snip] Can anyone help with this ? its checking the $_POST and seeing if any of the items begin with answer_, if the do it should remove it from the beginning and place it into $value_new.. does not seem to work though... foreach($_POST as $qid => $value) { $findme = 'answer_'; if(stripos($v

[PHP] Checking $_POST var and stripping

2006-07-24 Thread Chris Grigor
Hi Can anyone help with this ? its checking the $_POST and seeing if any of the items begin with answer_, if the do it should remove it from the beginning and place it into $value_new.. does not seem to work though... foreach($_POST as $qid => $value) { $findme = 'answer_'; if(stripos($va

[PHP] Re: Step by step code running

2006-07-24 Thread weetat
Hi Ryan, I use Log4jPhp to log any debug value. I think it is better than using echo or print method. Thanks - weetat Ryan A wrote: Hi, I need to explain a script to a pal of mine but either i cant explain it properly or he just cant get the concept being new to php's slightly "advanced

[PHP] select option and php

2006-07-24 Thread weetat
Hi all , I have a code below : function goToPageSelect($selectname,$totalItems){ $_logger = new Log4jLogger(); $_logger->logdebug("starting ..goToPageSelect()"); $_logger->logdebug("starting ..goToPageSelect()", $totalItems); $selecthtml = "Go to Page:class=\"inputfield\" onchange=\"