Re: [PHP] elseif statements

2009-05-06 Thread Gary
ed the = for== AND changed from calling the information from the $_COOKIE to the variable, it worked as I had hoped. Again, thank you to all for helping. Gary "Robert Cummings" wrote in message news:1241606832.610.108.ca...@localhost... > On Tue, 2009-05-05 at 22:31 -0700,

[PHP] Can includes be used for head tags?

2009-05-11 Thread Gary
I was thinking of creating a php include for the tags for a site. Is this possible? Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can includes be used for head tags?

2009-05-11 Thread Gary
Thank you to everyone again for your help... Gary ""Gary"" wrote in message news:52.b9.21821.82558...@pb1.pair.com... >I was thinking of creating a php include for the tags for a site. >Is this possible? > > Gary > -- PHP General Mailing List (http://

[PHP] Shopping Cart

2009-05-20 Thread Gary
this something that I should just look to the host for whatever shopping cart they have or is there an easy to administer software package that I should look into. Or since it is a one item cart, is this something that I could code? Thanks for your help. Gary -- PHP General Mailing List

[PHP] Shopping Cart

2009-05-20 Thread Gary
help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shopping Cart

2009-05-20 Thread Gary
your help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shopping Cart

2009-05-20 Thread Gary
your help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Shopping Cart

2009-05-20 Thread Gary
Sorry, I dont know what is going wrong here...this is sopposed to be a new subject... ""Gary"" wrote in message news:6b.85.16801.e5bf3...@pb1.pair.com... > Sorry, the first three post was put in the wrong place... > > Not sure this is a direct PHP question, h

[PHP] Accepting Credit Card Payments

2009-05-20 Thread Gary
your help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Perplexing problem.

2009-06-05 Thread Gary
card and Caard to see where they are coming from). So if(isset) for the info is not working, but the if(isset) for the yes is. I have switched positions but no change. The link to try this is http://www.paulgdesigns.com/elk/referform.inc.php Can anyone see what I am missing here? Thanks.

Re: [PHP] Perplexing problem.

2009-06-05 Thread Gary
Unbeleieable I am now getting it correct on Chrome, but not FF...I have been wracking my brain and it was firefox I dont get it... "Daniel Brown" wrote in message news:ab5568160906050838k682271eeg1e0a5f90b916c...@mail.gmail.com... On Fri, Jun 5, 2009 at 11:28, Gary wrote:

Re: [PHP] Perplexing problem.

2009-06-05 Thread Gary
As usual, thank you for your help. How do I get it to display in the emails only if the boxes are checked? Thanks again. Gary "Daniel Brown" wrote in message news:ab5568160906050838k682271eeg1e0a5f90b916c...@mail.gmail.com... On Fri, Jun 5, 2009 at 11:28, Gary wrote: > I have

[PHP] Form Process Question

2009-06-16 Thread Gary
way to do this or is there a way to create this calculator that changes upon the input instead of clicking a calculate button? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Process Question

2009-06-16 Thread Gary
Thanks for your reply, I dont know js Gary "Matthew Giddings" wrote in message news:1497284708.356841245165474329.javamail.r...@vmailbox1.svsu.edu... > Have you thought about using JavaScript? > > Matt Giddings > Web Programmer > Information Technology Servic

[PHP] Re: Form Process Question

2009-06-16 Thread Gary
2. Yea, I was trying to avoid that. I am thinking about putting this one input form into a separate section, have the action file open in a separate window to keep the original (long with lots of required fields) intact, maybe even some behavior pop up. Thanks for your help. Gary "

Re: [PHP] Form Process Question

2009-06-16 Thread Gary
there was some mechanism that would calculate the amount without hitting the submit button, something like a OnExit command. Something that I would not have to work around the validation feilds being lost and without having to make up a couple of new files... Gary "Daniel Brown"

[PHP] Re: Form Process Question

2009-06-16 Thread Gary
Thanks to everyone for your help (again). I used the js script the Shawn had provided... (I was ascared of the one Daniel provided.:) Thanks again for all your help. Gary ""Gary"" wrote in message news:f3.0c.31180.f54b7...@pb1.pair.com... >I have a client that

[PHP] Can someone tell me why this is not working?

2009-06-18 Thread Gary
#x27;]); $howlong=STRIPSLASHES($_POST['howlong']); if ($purchprice) { echo "Purchase Price:$ $purchprice"; } if ($newmort) { echo "Mortgage Amount:$ $newmort"; } if ($howlong) { echo "How Long has seller owned property: $howlong"; } Thanks Gary -- PHP

Re: [PHP] Can someone tell me why this is not working?

2009-06-18 Thread Gary
Thanks for your reply, but that is not it. I had already removed it$, slashed it, and no, plus it is working in the others. Gary "Robert Cummings" wrote in message news:4a3a5e7c.8000...@interjinn.com... > > > Gary wrote: >> The center echo does not show. It will s

[PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Gary
Nope, I added slashes to all of the $, still no go. Thank you for your help. Gary "Shawn McKenzie" wrote in message news:53.c2.08167.5206a...@pb1.pair.com... > Gary wrote: >> The center echo does not show. It will show if I replace $newmort with >> anything else.

[PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Gary
Everything is exaclty the same, but this one will not work. I have retyped them, copied from those working, changed the name, changed the input name...If I change the var to $zip, it works. Any other suggestions? Thanks again. ""Gary"" wrote in message news:89.71.08167.d

Re: [PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Gary
age Amount:$ $newmort"; > } > > check $newmort value > > var_dump( $newmort ); > if ($newmort) { > echo "Mortgage Amount:$ $newmort"; > } > > you "if" fails is $newmort is there but empty > > > On Thu, Jun 18, 2009 at 1:11 PM, Gary wrote:

Re: [PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Gary
"Mortgage Amount:$ $newmort"; >> } >> >> check $newmort value >> >> var_dump( $newmort ); >> if ($newmort) { >> echo "Mortgage Amount:$ $newmort"; >> } >> >> you "if" fails is $newmort is there but empty >> &

Re: [PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Gary
Ok, I dont really know how it got working, but it is. I did try the test, and after that it worked, however I had tried one before But thank you all for your time and help. Gary wrote in message news:of24965909.4acbeaf3-on872575d9.00598a62-872575d9.0059e...@zootweb.com... >> [P

Re: [PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Gary
I was about to do something really stupid. I had gotten it to work (even a blind squirell gets a nut every now and again), and had copied the code to send to you to look at.and then realized it was working so you would be chasing ghosts. Thank you for your help. Gary "Daniel

[PHP] isset question

2009-06-18 Thread Gary
mortgage amount is What am I missing here? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: isset question

2009-06-18 Thread Gary
m with it, I will leave it as is. Thank you to everyone for helping. Gary $msg.= !empty($_POST['purchprice']) ? "If this information is completed, it is a new purchase.\n The Purchase Price is $purchprice\n" : " "; $msg.= !empty($_POST['mort']) ? &qu

Re: [PHP] isset question

2009-06-20 Thread Gary
Yes... I echo the code onto the page as well as sending out the message. The echo is sort of a "thank you" page, this is what you submitted. A message, which is not going into a DB, is also emailed to the submitter and cleint. Gary "Waynn Lue&quo

Re: [PHP] isset question

2009-06-21 Thread Gary
How does echoing back to the page make it vulnerable? This does not go to a DB if that makes any difference. Gary "Paul M Foster" wrote in message news:20090621032151.gb14...@quillandmouse.com... > On Sat, Jun 20, 2009 at 12:20:56PM +0100, Ashley Sheridan wrote: > >> On

[PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Gary
tivated in the php.ini) Anyone have an idea to where I should start to look? Thanks Gary __ Information from ESET NOD32 Antivirus, version of virus signature database 4234 (20090711) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- PHP General Ma

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Gary
it relates to PHP,MySQL keeps crashing, I have. Alright, so not really all that endless... Thanks for the links, I have signed up for the mysql group, waiting to get the super secret handshake so I can post Thanks Gary "Daniel Brown" wrote

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Gary
d a dream about Iran, and all the houses had banners on them" And the president replied "what did the banners say?" And rush replied " I dont know, I dont speak hebrew". "Daniel Brown" wrote in message news:ab5568160907111046y6a432cfaq55b118ebd46da...@mail.gmai

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Gary
posting that I needed to DL some special language drivers to send my message in Arabichope its not all related.. Gary "Daniel Brown" wrote in message news:ab5568160907111018t3f080423q82303952e7c5b...@mail.gmail.com... > On Sat, Jul 11, 2009 at 13:07, Gary wrote: >> Ahh the l

[PHP] Form Spam

2009-08-20 Thread Gary
offer SEO services. It is not overwhleming, but about 5 a month. What is the best way to stop this. Thanks Gary __ Information from ESET Smart Security, version of virus signature database 4351 (20090820) __ The message was checked by ESET Smart Security. http

Re: [PHP] Form Spam

2009-08-20 Thread Gary
had whois information, it points to india. There is also a "report abuse" to the ISP, but I wonder if that is just another trap. Any thoughts would be appriciated. Gary "Ashley Sheridan" wrote in message news:1250774581.10895.54.ca...@localhost... > On Thu, 2009-08-20 at 09:

Re: [PHP] Form Spam

2009-08-20 Thread Gary
l sending routine to bail out (though they don't know that since it looks like it was sent :) That's assuming that they were able to figure out the math question before hand. Maybe not fort knox, but it does help out for me at least. Adam. On Thu, Aug 20, 2009 at 6:11 AM, Gary wrote: > I

[PHP] Re: wierd behavior on parsing css with no php included

2009-08-23 Thread Gary
css/css.css Or, if you are using Dreamweaver, right click and use the url locator Gary ""Ralph Deffke"" wrote in message news:67.4f.03363.a1e21...@pb1.pair.com... > Hi folks, i did post this also on the Wamp page but maybe someone out > there > had to solve that

[PHP] Random Flash Movies

2009-09-20 Thread Gary
A question was posted on another board that the poster wanted random flash movies to display as the page is reloaded. I posted the script below and said I thought it could be adapted but that the echo would probably need to change. Can someone offer some guidance on this? Thanks Gary

[PHP] Re: Random Flash Movies

2009-09-21 Thread Gary
As always, thanks for your help. Gary ""Gary"" wrote in message news:68.43.09009.cba46...@pb1.pair.com... >A question was posted on another board that the poster wanted random flash >movies to display as the page is reloaded. I posted the script below and &

[PHP] Spam opinions please

2009-10-20 Thread Gary
to redirect to a page that has lots of pop-ups, scantily clad men and offers of joy beyond imagination), but someone suggested I redirect to the Federal Trade Commission or perhpas the FBI. Any thoughts on the script and its effectivness? http://www.google.com/";); exit(); } ?

Re: [PHP] Spam opinions please

2009-10-20 Thread Gary
Thanks, and I understand, however I am trying to avoid the captcha if possible. They are all or mostly coming from the same IP which is why I thought this would help. Gary "Jonathan Tapicer" wrote in message news:4603e2db0910201136q5e835193he4abbac75ef11...@mail.gmail.com... That

Re: [PHP] Spam opinions please

2009-10-20 Thread Gary
NO I have not, I think my issue is I hate when I run across one, it usually takes me more than one try to actually figure out what the charactor is, so hence my disdain. GAry "Paul M Foster" wrote in message news:20091020184001.gi3...@quillandmouse.com... > On Tue, Oct 20,

Re: [PHP] Spam opinions please

2009-10-20 Thread Gary
I believe they are human spammers as all the input fields are correctly filled out (phone in phone, address in address etc). As I said they are mostly the same IP. Would it be better to include this script in the processing script rather than at the top of the page? Gary "Ashley She

[PHP] Re: Spam opinions please

2009-10-20 Thread Gary
...but I digress). Gary ""Gary"" wrote in message news:da.85.39240.d220e...@pb1.pair.com... >I have several sites that are getting hit with form spam. I have the >script set up to capture the IP address so I know from where they come. I >found a short script that

Re: [PHP] Spam opinions please

2009-10-20 Thread Gary
I have a honeypot in there already, another reason I think it is human spam and not da bot. Gary "Bastien Koert" wrote in message news:d7b6cab70910201337v5c18284aya022f48e13943...@mail.gmail.com... > On Tue, Oct 20, 2009 at 4:12 PM, Ashley Sheridan > wrote: >> On Tu

Re: [PHP] Spam opinions please

2009-10-20 Thread Gary
I like that idea,so in other words they have to get to the form from another page on the site, and you set a time limit for a minimum amount of time they spend on the page(5-10 seconds)? Gary "Kim Madsen" wrote in message news:4ade206f.6030...@emax.dk... > Hey Gary > > Ga

Re: [PHP] Spam opinions please

2009-10-22 Thread Gary
I have always thought that by putting some simple, readable ttext into a graphic (eg.apple) and asking people to type it in a space, that would work, but that does not stop the humans.. Gary "Philip Thompson" wrote in message news:9bf33458-4a91-4a23-bcb8-ebe13269f...@gmail.com..

[PHP] Division by 0

2010-03-10 Thread Gary
,$totalPayments) - 1); Frankly I am not even sure the information is being passed to the script. Anyone see what I am missing? Gary Calculate your Loan Loan Amount USD Type of Loan Installment Balloon Term of Loan Months

Re: [PHP] Division by 0

2010-03-10 Thread Gary
Joseph My apologise for not writing sooner to thank you, you were of course correct. Thanks again. Gary "Joseph Thayne" wrote in message news:4b97e3a2.2030...@thaynefam.org... > Looks to me like you are closing your form before you put anything in it. > Therefore, the lo

Re: [PHP] Division by 0

2010-03-11 Thread Gary
I love this place, thank you to everyone that posted, I will make changes to make it safer. Thanks again to everyone. gary "Jochem Maas" wrote in message news:4b98de7e.8020...@iamjochem.com... > Op 3/10/10 11:39 PM, Daniel Egeberg schreef: >> On Wed, Mar 10, 2010 at

[PHP] Re: how to get the local time

2010-03-15 Thread Gary
You should be able to get the local time for Sweden by adding However, I dont know about getting the local time of someone visiting from a different time zone. gary "saeed ahmed" wrote in message news:b10025e1003151310j483caed1mef9ec76874a53...@mail.gmail.com... > hi fri

[PHP] Session Variable Problem

2010-03-20 Thread Gary
confused as to why they keep getting dropped and how to stop it. Hopefully I have given enough information. Thank you Gary __ Information from ESET Smart Security, version of virus signature database 4961 (20100320) __ The message was checked by ESET Smart Security. http

Re: [PHP] Session Variable Problem

2010-03-20 Thread Gary
your code if (isset($_POST['lend_fname'])){ $_SESSION['lend_fname']=stripslashes($_POST['lend_fname']); } And it seems to work fine, the data seems to stay. Is there an easier method (perhaps putting the post or session variables into an array? Again thank y

Re: [PHP] Session Variable Problem

2010-03-21 Thread Gary
Thanks again for all the help, however the plot thickens. I have put: On the first page, Now what happens is it only sticks to the first two (lend_fname and lend_lname), the others still get lost. Any idea how or why the exact code works differently? Thanks Again. gary "tedd"

Re: [PHP] Session Variable Problem

2010-03-22 Thread Gary
tedd Please accept my apologies for not thanking you sooner, I am going over you code and learning great stuff. Again, thank you. And thank you to Adam as well. gary "tedd" wrote in message news:p06240804c7cbe9aa1...@[192.168.1.102]... > At 10:14 AM -0400 3/21/10, Gary wr

[PHP] Adding Time

2010-03-27 Thread Gary
date_add($pay_date + new DateInterval($_SESSION['loan_length'])); echo ''.$date->format("d-m-Y"); Gary __ Information from ESET NOD32 Antivirus, version of virus signature database 4978 (20100326) __ The message was checked by ESET NOD32 A

Re: [PHP] Adding Time

2010-03-27 Thread Gary
Thanks for your reply. This comes from the manual, I have tried to change to my variables. I am not getting any error messages, but I am not able to add the $loan_length to the $pay_date. Thanks again for any help. gary "; echo $end_date .""; echo $pay_date ."

Re: [PHP] Adding Time

2010-03-27 Thread Gary
It is a multi page form with all information being writting to the database via the $_SESSION's. Gary "Yousif Masoud" wrote in message news:k2qbffe24ad1003271414za1377a2dsb0e4a2d23d411...@mail.gmail.com... > On Sat, Mar 27, 2010 at 8:

Re: [PHP] Adding Time

2010-03-27 Thread Gary
I have copied the echo and the code, for clarity I have echo'd 1,2,3, etc to see which is working. Thank you for your help. Hope this is clear. Gary $loan_length=($_SESSION['loan_length']); //is set to 36 months $pay_date=($_SESSION['pay_date']); //is set to 01-05

Re: [PHP] Adding Time

2010-03-27 Thread Gary
Perfect, thank you very much for your help! Gary "Yousif Masoud" wrote in message news:x2tbffe24ad1003271548l65cb6e65qd8f35ae0636e...@mail.gmail.com... > On Sat, Mar 27, 2010 at 10:26 PM, Gary wrote: > >> [...] >> > > $end_date=date('m-d-Y',str

[PHP] Inserting into multiple tables

2010-04-10 Thread Gary
inserted). I also tried writing the $query as an array, which got me an error message (saying it was expecting a string and I offered an array). Someone point me in the right direction? Gary http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> U

Re: [PHP] Inserting into multiple tables

2010-04-10 Thread Gary
. Searching the web I have read several answers saying you simply cant insert into multiple tables at once. So if multiple tables is such an important issue, why is there no insert solution. What am I missing? Gary "Adam Richardson" wrote

Re: [PHP] Inserting into multiple tables

2010-04-10 Thread Gary
deals with the retreval of data from, not inserting into, meaning they are more used for known data inserted by the database owner/administrator to be retrieved by queries into the DB. Am I on the right track? Again, thank you for your replies. Gary "Adam Richardson" wrote

Re: [PHP] Inserting into multiple tables

2010-04-11 Thread Gary
. Interestingly, it lead me to the mysqli_store_result(), however it said it returned a false result on the insert command. Thank you for your reply... Gary ""Tommy Pham"" wrote in message news:013601cad93e$e0bca6a0$a235f3...@com... Hi Gary, -Original Message- Fr

Re: [PHP] Inserting into multiple tables

2010-04-12 Thread Gary
how, writing to separate tables in the same DB. Again, thank you for all the information and your time. Gary "Nathan Rixham" wrote in message news:4bc21b88.3090...@gmail.com... > Gary wrote: >> Adam >> >> Thank you for your well thought out response. >

Re: [PHP] Inserting into multiple tables

2010-04-12 Thread Gary
Tedd Thanks for your response, perhaps I was completely missing this or my powers of expanation have gone out the window. I have found a solution and I am going to put it in its own post. Thanks again. gary "tedd" wrote in message news:p0624080ac7e9123f4...@[192.168.1.102]...

[PHP] Solution

2010-04-12 Thread Gary
7;$lname')"; $result=mysqli_query($dbc, $query) or die('Error querying database.'); mysqli_close($dbc); ?> It seems a little redundant for PHP, however it seems to work. Thank you to everyone that responded. If by the way someone sees an issue with this soluti

Re: [PHP] Solution

2010-04-13 Thread Gary
foreign keys, and be able to insert and retrieve from it. But the experiment continues. For whatever reason, scripts to query a DB that I have used for years are not working. I am thinking it has something to do with that I switched engines to innodb. So the lesson continues. Gary "tedd&qu

Re: [PHP] Solution

2010-04-13 Thread Gary
Karl Thanks for the reply, I copied your code and it did not work, tried a few variations and same result. Gary "Karl DeSaulniers" wrote in message news:e56be001-63f6-4df1-8c72-ad468c23e...@designdrumm.com... > Hey Gary, instead try something like this maybe? > > &g

[PHP] Class constants

2010-04-19 Thread Gary .
Should I be able to do this: class X { const FOO = 'foo'; const FOOBAR = X::FOO . 'bar'; ... } ? Because I can't. I get "syntax error, unexpected '.', expecting ',' or ';'". I assume this is because the constants are like statics which can't be initialised by functions etc. but is there rea

Re: [PHP] Class constants

2010-04-19 Thread Gary .
On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote: > On 19 April 2010 10:30, Gary wrote: >> Should I be able to do this: >> >> class X >> { >>  const FOO = 'foo'; >>  const FOOBAR = X::FOO . 'bar'; >> >> ... >> } >

Re: [PHP] Class constants

2010-04-19 Thread Gary .
On Mon, Apr 19, 2010 at 2:37 PM, Peter Lind wrote: > On 19 April 2010 14:24, Gary wrote: >> On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote: >>> So no, you shouldn't be able to do that. >> >> Okay. Why not? > > Hate to ask, but did you at any point con

Re: [PHP] Class constants

2010-04-19 Thread Gary .
On Mon, Apr 19, 2010 at 3:12 PM, Ashley Sheridan wrote: > On 19 April 2010 14:24, Gary wrote: > > Okay. Why not? ... > Class constants must be defined with static values, not variables. They are > constants after all! If they relied on the value of a variable, surely that &g

[PHP] Getting Array to Display

2010-04-21 Thread Gary
7;' . $row['caption']. ''; echo '' . $row['where_taken'] . ''; echo '' . $row['keyword']. ''; echo '' . $row['description'] . ''; if (is_file($row['image_file&

Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary
mage_file into database"; } else { echo "Some Error Occured While Inserting Records"; } mysqli_close($dbc); ?> I hope that helps, and again thank you for your reply. gary "Ashley Sheridan" wrote in message news:1271858245.20937.10.ca...@localhost... On We

Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary
Ashley Again thank you for your help. I will try your suggestion of child tables if all else fails. Gary "Ashley Sheridan" wrote in message news:1271862971.20937.19.ca...@localhost... On Wed, 2010-04-21 at 11:01 -0400, Gary wrote: Ashley Thank you for your reply. I was try

Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary
array($data)) { // Display the data echo '' . $row['image_id']. ''; echo '' . $row['submitted']. ''; echo '' . $row['caption']. ''; echo '' . $row['w

[PHP] Re: Getting Array to Display

2010-04-21 Thread Gary
As an addition to the issue, when I do a SELECT FROM and call for a specific keyword, it does not return any records.. Gary ""Gary"" wrote in message news:70.50.63467.0020f...@pb1.pair.com... I have a form that I have a (ever growing) list of checkboxes, Here is a sam

Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary
Ashley If I were to create a child table, would the Type be a Bool? Gary "Ashley Sheridan" wrote in message news:1271862971.20937.19.ca...@localhost... On Wed, 2010-04-21 at 11:01 -0400, Gary wrote: Ashley Thank you for your reply. I was trying to get the structure of the

Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary
Yea...not my day for technological domination. Gary "David McGlone" wrote in message news:1271880892.24626.11.ca...@buddy... On Wed, 2010-04-21 at 13:56 -0400, Gary wrote: Richard I'm sorry, it looks like I sent a reply direct to you instead of the board, a mis

Re: [PHP] Re: Getting Array to Display

2010-04-23 Thread Gary
I'm sorry for the delay in response, I was able to create the child table, which works great. So thank you to everyone that responded & Helped. Gary ps: Yes Ashley, I was monitoring the DB itself and not just the display table I created... "Ashley Sheridan" wro

[PHP] PHP not being read?

2010-04-24 Thread Gary
er to my other computer...I got what I thought I was going to get, numbers and calculations. What would cause a browser to display the closing tags of php? I dont know where to begin to look, could this be a setting in my editor (Dreamweaver CS3), the testing server config file, the browsers

Re: [PHP] PHP not being read?

2010-04-24 Thread Gary
calculations, most important, it showed something at all. This is an issue with configuration or settings somewhere, or perhaps my XAMPP is corrupt. Thank you for your reply. Gary "Michiel Sikma" wrote in message news:y2s6cda1ded1004241703w90e8790ay46bb77c4e1162...@mail.gmail.com.

Re: [PHP] PHP not being read?

2010-04-24 Thread Gary
life "; ?> Same code, different machines, different results. Notice the closing ?> php tag is printed. Like I said, I dont know where to start to look. Thanks for your reply. Gary "Karl DeSaulniers" wrote in message news:5aedfbf6-577b-44d8-9771-3ca1f7971..

Re: [PHP] PHP not being read?

2010-04-24 Thread Gary
c982a-1734-4249-9bf7-7bf33bfc4...@designdrumm.com... What is the browser and browser version your using on the bad computer? What OS? Are you previewing the file on the computer or from a server? Karl On Apr 24, 2010, at 8:30 PM, Gary wrote: Karl Thanks for your replythat wasnt it.

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
again for the help. GAry "Karl DeSaulniers" wrote in message news:daf6fc7f-4f9a-4acb-825a-03481b934...@designdrumm.com... If you put the php file on a live server, does the bad computer still not display? Just narrowing down. :) Karl Sent from losPhone On Apr 24, 2010, at 10:00 PM

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
ombination hunt and peek and a guessing game, I'm just not sure which file to look in or where to find that file. I have done a few searches for "addhandler" and have not found it. Could you point me in the right direction? Thank you for your

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
numbers and calculations showed properly. So it would seem the plot is thickening. Trouble is that I am unsure if I can trust this computer the way it is. Thanks again for your help. Gary "Kevin Kinsey" wrote in message news:4bd4a110.7040...@daleco.biz... Gary wrote: Peter &q

[PHP] Error handling strategies (db related)

2010-04-27 Thread Gary .
How do you guys handle errors during, say, db insertions. Let's say you have an ongoing transaction which fails on the n-th insert. Ok, you roll back the transaction, no problem. How do you then inform the user? Just using the text from pg_result_error or something? -- PHP General Mailing List

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Gary .
On Tue, Apr 27, 2010 at 10:46 AM, Peter Lind wrote: > On 27 April 2010 10:42, Gary . wrote: >> How do you guys handle errors during, say, db insertions. >> >> Let's say you have an ongoing transaction which fails on the n-th >> insert. Ok, you roll back the transact

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Gary .
On 4/27/10, tedd wrote: > At 4:23 PM +0100 4/27/10, Nathan Rixham wrote: >> >>I'm still shocked you guys are still writing code that has errors in it, >>what's worse is you know about the errors, and instead of fixing them >>you're just telling the user about it! >> >>:p > > Here's my code that doe

[PHP] What is wrong with this code?

2010-04-27 Thread Gary .
class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); ... public static function getMessage($ec) { $text = ''; if (array_key_exists($ec, Pg_Error::$errors)) { $text = Pg_Error::$errors[$ec

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
Per Jessen wrote: > Gary . wrote: >> Calling it, the array_key_exists call always returns false ... >> and I can't see what I've done wrong :( > > Might this be better: > > public static function getMessage($ec) > { > $text = 

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Jochem Maas wrote: > Op 4/28/10 7:39 AM, Gary . schreef: >> class Pg_Error >> { const INTEGRITY_CONST_UNIQUE = '23505'; >> private static $errors = >> array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); &

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Jochem Maas wrote: >> >> class Pg_Error >> >> { >>const INTEGRITY_CONST_UNIQUE = '23505'; > > this is a class constant > >> >> private static $errors = >> >> array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint >> violated'); [...] > unfortunate

[PHP] Explanation of asynchronous postgres interface

2010-04-28 Thread Gary .
I asked something similar to this on the ph-db ml yesterday, but that list seems to be almost dead. The situation I have is that I am trying to get the postgres error code (as opposed to some error message - see my other posts to this list over the last day or so for the background to that). I fou

Re: [PHP] auto indentation

2010-04-28 Thread Gary .
On Tue, Apr 27, 2010 at 10:33 PM, David McGlone wrote: > I'm using Kate Since you've already had a suggestion to switch to Eclipse, I'll say (+ emacs php-mode (+ '"(define-key php-mode-map (kbd "RET") 'newline-and-indent)")) Or something like that. -- PHP General Mailing List (http://www.php.

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Thijs Lensselink wrote: > Gary . wrote: >> class Pg_Error >> { >> private static $errors = >> array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); >> > Shouldn't this be: > > array(self::INTEGRITY

Re: [PHP] Two color rows in table inside while iteration

2010-04-28 Thread Gary .
On 4/28/10, Juan Rodriguez Monti wrote: > I would like to implement a two color row table for some queries that I'm > doing. ... > what do you suggest to do a two color row format. Well, I wouldn't mix the presentation and querying of the db in one place, but assuming that's just a simplified exam

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On Wed, Apr 28, 2010 at 2:17 PM, Thijs Lensselink wrote: > Gary . wrote: >> On 4/28/10, Thijs Lensselink wrote: >>> Gary . wrote: >>>> class Pg_Error >>>> { >>>>    private static $errors = >>>>        ar

<    1   2   3   4   5   6   >