Re: [PHP-DB] radio form submission

2011-06-23 Thread Tamara Temple
On Jun 23, 2011, at 2:32 PM, Karl DeSaulniers wrote: Try this... function getSpeed($val) { if($val != 'undefined') { switch ($val){ case "1": $post_tptest = "0-250kbps"; break;

Re: [PHP-DB] A question about mysql

2011-07-01 Thread Tamara Temple
On Jun 30, 2011, at 9:57 PM, Guru™ wrote: I have a question about php-mysql. Is it possible that I can have 2 different fields in a mysql table, and when a user fill out the form for the first time the input goes to first field and when the second user fill out the form the input goes to 2nd

Re: [PHP-DB] vend-bot?

2011-07-03 Thread Tamara Temple
On Jul 3, 2011, at 10:58 AM, Kirk Bailey wrote: OK, I want to send someone back from paypal to a thank you page; this reloads to the actual file they will purchase. BUT, I want to include a magic cookie that will prevent someone else from going to that url at a later time and getting the p

Re: [PHP-DB] functions, the best way to implement and arrange them..

2011-07-13 Thread Tamara Temple
On Jul 12, 2011, at 7:28 AM, Taco Mathijs Hillenaar-Meerveld wrote: It might be a simple question for the local die-hards among here, but i'm really wondering about how developers arrange their scripts and keep their map structures. today i was looking for the best way to keep my scripts cle

Re: [PHP-DB] Efficiency of DDD programing

2011-11-20 Thread Tamara Temple
Fanda wrote: > how to solve this problem: > > If I write a repository for each entity, article and autor for > example, article is composed of autor and some other things, then I > want to select some articles: > > $articles = $articleRepo->findLast(10); > foreach ($articles as $article) { >

Re: [PHP-DB] sqlite

2011-11-29 Thread Tamara Temple
David McGlone wrote: > places.sqlite is mozilla's bookmarks db and I was trying to read this > db, but so far I've been unsuccessful. > > sqlite ver: 2.8.17 > PHP version: PHP 5.3.3-1ubuntu9.6 with Suhosin-Patch > php5-sqlite: 5.3.3-1ubuntu9.6 Okay, first off, mozilla uses sqlite3, not sqlite2,

Re: [PHP-DB] Problem with mysql and php

2011-11-29 Thread Tamara Temple
Jason Pruim wrote: > Given the following 2 queries: > > "SELECT DISTINCT areacode FROM main WHERE state = '{$query_exploded[0]}'"; > > "SELECT DISTINCT areacode FROM main"; > > The second displays ALOT faster Like by minutes... the first one is what > I really want though Currently wo

Re: [PHP-DB] sqlite

2011-11-30 Thread Tamara Temple
David McGlone wrote: > On Tue, 2011-11-29 at 16:31 -0600, Tamara Temple wrote: > > David McGlone wrote: > > > places.sqlite is mozilla's bookmarks db and I was trying to read this > > > db, but so far I've been unsuccessful. > > > > > > sql

Re: [PHP-DB] Help with If else if

2012-03-18 Thread Tamara Temple
it of code? As it stands, I can see no reference to MySQL tables in this, nor any idea what values you're expecting and not seeing. If you don't already, please set error_reporting to the most detailed, and turn on display_errors in your output. Before each of the if's echo a v

Re: [PHP-DB] Help with If else if

2012-03-18 Thread Tamara Temple
et: emit facebook image The two seem completely independent of each other. Thus: plugin->ListViewValue(); if (!empty($twitter)) { echo 'width="22" height="23"/>'; } $fb = $search->facebook->ListViewValue(); if (!empty($fb)) { echo 'height=&qu

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-25 Thread Tamara Temple
Brad wrote: > Here is where everything stands.. L > > http://pastie.org/4317155 I feel strange bottom posting, somehow, BUT THAT'S THE RULE You have never actually shown what your SQL statement is, because: line 33: echo '$sql'; This will NOT interpolate the sql string. This is why you keep

Re: [PHP-DB] Mysql PDO statement with params in HAVING problem

2013-06-28 Thread Tamara Temple
Alexander Pletnev wrote: > Hi everyone, im new here, so please correct me if i created or formated > topic incorrectly. > > I found a problem. I have a simple query for my needs: > > $stmt = $dbh->prepare("SELECT concat(first_name,' ',last_name) as > full_name,t.* FROM `specialists` `t`

Re: [PHP-DB] Subject Matter

2013-08-23 Thread Tamara Temple
On Aug 23, 2013, at 7:32 AM, Jim Giner wrote: > On 8/23/2013 4:52 AM, Matt Pelmear wrote: >> On 08/23/2013 04:36 PM, Lester Caine wrote: >>> Matt Pelmear wrote: I am not sure who runs the list, whether they care about off-topic posts, or whether anyone else cares about it. >>> >>

Re: [PHP-DB] Calculating Past Dates In A Different Time Zone

2013-11-10 Thread Tamara Temple
On Nov 10, 2013, at 10:26 AM, Ron Piggott wrote: > I normally use the following code to convert between time zones. But I don’t > know how to calculate what time it is in GMT time zone when it is midnight in > the users time zone X days ago, or midnight on November 1st 2013 in the users > t