Re: [PHP] Can GD make a JPG thumbnail of a PDF?

2008-11-20 Thread Stephen Johnson
No but you can use imagemagicks convert to convert the pdf to an image and then make a thumbnail of it. On 11/20/08 4:39 PM, "Brian Dunning" <[EMAIL PROTECTED]> wrote: > Well can it? -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adopti

Re: [PHP] Can GD make a JPG thumbnail of a PDF?

2008-12-10 Thread Stephen Johnson
test my installation like this: > echo ""; > system("convert -version"); > echo ""; > ?> > But it just returns blank. Can anyone help me get ImageMagick working > on my server? > > > On Nov 20, 2008, at 4:41 PM, Stephen Johnson wrote: &

Re: [PHP] PHP or Bridge (card game)

2007-02-10 Thread Stephen Johnson
What an odd question Personally PHP makes much more sense to me then the many variations of bridge... http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad code */ ?> > From: pub <[EMAIL PROTECTED]

Re: [PHP] Why won't this query go through?

2007-03-12 Thread Stephen Johnson
> From: Richard Lynch <[EMAIL PROTECTED]> > On Sun, March 11, 2007 11:24 am, Mike Shanley wrote: >> I am just not understanding what I could have possibly done wrong with >> this query. All of the variables are good, without special characters >> in >> any sense of the word... So why isn't it impor

Re: [PHP] [HAB] PHP or ASP.Net

2005-02-17 Thread Stephen Johnson
I find it humorous that these types of debates keep coming back up -- no matter what the topic, the IT world can not seem to agree on anything. OS wars - Browser wars - coding languages. It all gets very tiring. Bottom line - go with what you like and with what can get the job done. Myself pers

Re: [PHP] mysql query

2005-02-17 Thread Stephen Johnson
Now I am assuming that 4 and 6 would not always be the next article ID - otherwise you could just increment your id accordingly. If you wanted to do that without running multiple queries, this is who I might do it, rather sloppy, but I think it would work. $idGet= $_GET['id']; $sql = "select id,

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Stephen Johnson
Sounds to me like you need to go out and hire a PHP programmer to go through your code and get your site back up and running. Then that same person can give someone in your organization some tutorials on how to maintain your code so that this sort of thing does not continue to happen. http://www

Re: [PHP] help with adding

2005-02-25 Thread Stephen Johnson
for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; $total = $total + $qty; echo $qty . ''; } echo "Total $total"; http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code

Re: [PHP] sentence case

2005-02-28 Thread Stephen Johnson
OK -- dumb question -- what is an OP? http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: John Nichel <[EMAIL PROTECTED]> > Date: Wed, 23 Feb 2005 14:13:20 -0500 > To: php Mailing Lists > Subject: Re:

Re: [PHP] Connecting to a AS/400?

2005-03-02 Thread Stephen Johnson
According to Larry Hotchkiss on Jan 31,2001 Its my understanding that you use the odbc functions to access db/2 400. I also recall reading that the db2/400 functionality is true db2 functionality and does not use the generic odbc layer even though it is grouped in. Apparently its smart enough t

Re: [PHP] Re: A general question

2005-03-07 Thread Stephen Johnson
You have to trick the browser into thinking that the jpg file is something other then a jpg. This is sketchy and does not always work. Something like this maybe $len = filesize($file_path); header("Content-Type: application/force-download"); header("Content-

Re: [PHP] using lists in php and sending

2005-03-08 Thread Stephen Johnson
First off - do you have global variables turned on? If not then you need to collect the data from the $_POST variable. Also - when you use a multiple select form field the values come across in an array. So you would need to access the data using something like this: $i=0; while($rooms[$i]) {

Re: [PHP] Re: A general question

2005-03-08 Thread Stephen Johnson
code */ ?> > From: "Richard Lynch" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Tue, 8 Mar 2005 08:56:57 -0800 (PST) > To: "Stephen Johnson" <[EMAIL PROTECTED]> > Cc: "zzapper" <[EMAIL PROTECTED]>, "php" &

Re: [PHP] PHP help Quotations, Quotations, Quotations

2005-03-10 Thread Stephen Johnson
gt;Click here to view newsletter - Which obviously doesn't work. I would be most grateful if anyone could help. Cheers, Simon * Stephen Johnson [EMAIL PROTECTED] http://www.thelonecoder.com --continuing the struggle against bad code-- * -- PHP General Mailing List (ht

Re: [PHP] Question about "shortening" a string

2005-03-11 Thread Stephen Johnson
- Steve Slater [EMAIL PROTECTED] PHP / MySQL / Web App Security (LAMP) Training: http://www.handsonsecurity.com/training.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * Stephen Johnson [EMAIL PROTECTED] http://www.t

Re: [PHP] odd error

2005-03-14 Thread Stephen Johnson
rch.wildlime.com Professional Website Hosting Services -www.hostonlime.com.au Winner 2004 Telstra North QLD Media Awards - Best Website - Online Content & Information -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * Steph

Re: [PHP] New Website for PHP Coders.. www,lifenit.com

2005-03-17 Thread Stephen Johnson
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ***** Stephen Johnson [EMAIL PROTECTED] http://www.thelonecoder.com --continuing the struggle against bad code-- * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php-not-executing-in-html-file-help

2005-03-20 Thread Stephen Johnson
You need to setup your apache server to accept and parse .html files as PHP. Add this line or modify it to look like this in your httpd.conf file. AddType application/x-httpd-php .php .html .shtml HTH http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) conti

Re: [PHP] session woes

2005-03-23 Thread Stephen Johnson
You need to make sure that output_buffering is turned on in your php.ini file on the dev server. http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: "Mignon Hunter" <[EMAIL PROTECTED]> > Date: Wed, 23

Re: [PHP] html image

2005-03-24 Thread Stephen Johnson
I have done this sort of thing with PDF's but I have never done it with images. It has also always been a web page that is on my site -- I get the impression that you want to read in someone else's url and do this. I would start off by looking at the ob_start and other related functions. Once yo

[PHP] Adding Fonts to JpGraph

2005-04-04 Thread Stephen Johnson
I am using JPGraph for a project that I am working on right now and I have hit a small snag - My client wants to have the user be able to select from a list of about 20 ­30 standard fonts. JPGraph only has about six built into it and the support in the docs is not very helpful since it wants you

Re: [PHP] test

2005-04-04 Thread Stephen Johnson
你好- 測試被接受。歡迎到小組。 http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: [EMAIL PROTECTED] > Date: Tue, 5 Apr 2005 09:40:55 +0800 > To: php-general@lists.php.net > Subject: [PHP] test > >

Re: [PHP] HELP!

2005-04-12 Thread Stephen Johnson
Yes -- In your example - $result_id would be accessed on page2 as $result_id = $_GET['result_id']; Then through out your script on page 2 you could access $result_id. Hope that helps. æ-- åæçäå- $result_id æèçååé2 $result_id = $_get['result_id ' ]; çåééåæçåæäååé2 æèèå $result_idã åæååã

Re: [PHP] set cookie function problem

2005-04-19 Thread Stephen Johnson
Nothing -- However - try adding a path to your cookie statement. It may not be the problem - but it has corrected this issue for me in the past. I.e : setcookie('myCookie',"blah",time()+3600, "/"); http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) contin

Re: [PHP] script

2005-04-19 Thread Stephen Johnson
ery appreciated. Thanks. Tommy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ***** Stephen Johnson [EMAIL PROTECTED] http://www.thelonecoder.com --continuing the struggle against bad code-- * -- PHP General Mailing List (http://w

Re: [PHP] marking words bold

2005-05-11 Thread Stephen Johnson
Include a space in your str_replace statement. For instance $t = str_replace(" $word ", " $word ", $text); That should prevent the problem your having and ensure only individual words are bolded. http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) contin

Re: [PHP] getting from one table listing from another

2007-08-18 Thread Stephen Johnson
#x27;s > and I have another table that has the name's and points > I want to know how to list the name's of the first table by the points > of the second table -- Stephen Johnson The Lone Coder http://www.myonlinepros.com *How can we help you today?* [EMAIL PROTECTED] http://

Re: [PHP] two small issues with php mail

2007-11-20 Thread Stephen Johnson
I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresum

Re: [PHP] two small issues with php mail OT

2007-11-20 Thread Stephen Johnson
Who says you can't please them all... ;) -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- > From: Jay Blanchard <[EMAIL PROTECTED]> > Date: Tue, 20 Nov 2007 14:25:21 -0600 >

Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Stephen Johnson
lists like this tend to get very noisy, and anything that can cut down on unnecessary noise is friend not foe.. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- -- PHP General Mailing List (h

Re: [PHP] Banned from #php

2007-12-03 Thread Stephen Johnson
are friends. Everyone else hates you. It is not personal, it's just a fact. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- > From: Brenden Wilson <[EMAIL PROTECTED]> > Date: Mon, 3

Re: [PHP] Banned from #php

2007-12-03 Thread Stephen Johnson
man how to fish" philosophy, and answering lazy questions breeds lazy programmers, which in the end hurts us all. Part of this job is learning how to learn, and so many times people just want you to write the code for them. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com con

Re: [PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Stephen Johnson
for your reading enjoyment : http://php.net/array http://us.php.net/manual/en/reserved.variables.php // specifically the section on $_POST -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- > From

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Stephen Johnson
True randomization is only really possible in nature, so I am not sure you ever be completely happy with programming random numbers... But it may help you get better results if you include srand() in your randomization code. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Stephen Johnson
LOL.. Guess I need to keep up with the change log a little better... -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- > From: Nathan Nobbe <[EMAIL PROTECTED]> > Date: Mon, 10 Dec 2

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Stephen Johnson
Wow... You clearly put a lot of thought into randomization... I am impressed..LOL Personally, most of my web applications do not have to factor 13.7 billion years of space drift in to the calculations, so php's rand function has been great for me... ;) -- Stephen Johnson c | eh The Lone

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Stephen Johnson
(taken from > http://www.php.net/manual/en/funcref.php) to look for a particular fn > that you don't know the name of let alone which area it belongs in. OK then how about a STFW answer... Google : php exexcute windows commands You can even hit the "I'm feeling lucky but

Re: [PHP] Assign variable to a block of html code

2007-12-19 Thread Stephen Johnson
> >   >   > > > > > "; > > Although example above is not working, what I want to achieve is something > like that. Is it possible how can I do that ? > > Regards, > > Feris -- Stephen Johnson T

Re: [PHP] Why I sart getting "Fatal error: Allowed memory size..." after php upgrade?

2007-12-20 Thread Stephen Johnson
y opinion that you, as a PHP developer, have a responsibility to understand what the php.ini file is, what it does, and how to change it if necessary and you should have this knowledge before you begin writing code that would be used by anyone but yourself. -- Stephen Johnson c | eh The Lone Coder http:

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Stephen Johnson
ailed."; } Because mysql_insert_id() acts on the last performed query, be sure to call mysql_insert_id() immediately after the query that generates the value. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com --

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Stephen Johnson
> Or you can cheat... > > $url = $_SERVER['SERVER_NAME']; > header( 'Location:https://'.$url.''); > > I think that would cause an infinite loop of redirection... This would be better https://www.domain.com$pageTo";); exit; }

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Stephen Johnson
standard ports, so I have never had any issues on that front. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- > From: Wolf <[EMAIL PROTECTED]> > Date: Mon, 25 Feb 2

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Stephen Johnson
> I thought ASP was the language and .NET was the framework. I was under this impression as well.. I always equated .NET to ASP the same way I would ZEND to PHP... -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code h

Re: [PHP] Guidance

2008-02-27 Thread Stephen Johnson
This is AWESOME!... I am so saving this post for my next Review... Couldn't have said it better Dan... -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- > From

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Stephen Johnson
Talk about a thread hijack... LOL In my day we had to write basic going up hill in the snow... Both ways... -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- > F

Re: [PHP] the Y2K38 BUG

2008-05-06 Thread Stephen Johnson
s is implemented as a 64-bit unsigned (i think) > value. so if you use it you should be good to go. > > php > echo date_create('2040-10-24')->format('M-d-Y'); > Oct-24-2040 > > -nathan -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL PROTECTED] http://www.thelonecoder.com *Continuing the struggle against bad code* -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About Login Authentication

2007-07-20 Thread Stephen Johnson
entication enabled web site? > I would appreciate any good references. -- Stephen Johnson The Lone Coder http://www.thumbnailresume.com *Network with your Resume, not just your card.* [EMAIL PROTECTED] http://www.thelonecoder.com *Continuing the struggle against bad code* -- --

Re: [PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Stephen Johnson
http://us2.php.net/ob_start Hope this helps http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad code */ ?> > From: Todd Cary <[EMAIL PROTECTED]> > Date: Thu, 30 Mar 2006 08:02:16 -0800 > To: > Subject

Re: [PHP] PHP Post & forms

2006-04-13 Thread Stephen Johnson
ss the checkboxes as an array value with the JobID as the identifier. Then on the other side, you can run through the list of JobID's and see which ones need to be updated. Hope this helps -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey

Re: [PHP] Semi-ADVERT, OT

2008-08-20 Thread Stephen Johnson
On 8/20/08 6:57 AM, "tedd" <[EMAIL PROTECTED]> wrote: > Seriously, I saw a new invention recently. The inventor made > underwear with three leg holes. The idea was to rotate the underwear > as needed. > > What people won't invent. > > Cheers, > &g

[PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Stephen Johnson
1057 -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! --

Re: [PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Stephen Johnson
Thanks everyone ... It was a brain fart ... Long bad day today, and I am not paying proper attention ... :) -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- -- PHP

Re: [PHP] CSV output.

2008-09-08 Thread Stephen Johnson
It sounds like you simply need to number format the data to ensure that PHP does not truncate http://php.net/number_format If excel, or whatever your using to view the csv file, is truncating then you will need to properly format that cell. -- Stephen Johnson c | eh The Lone Coder http

[PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
then gives me in PHP 0.00104167 = 1.25 / (12 * 100); -2.170138889 = 25000 * ( 0.00104167 / (1 - (1 + 0.00104167) ^ -12)) :: ^ is the problem ... The solution SHOULD be 2,097.47 ... Not ­2.17 Would be willing to help correct this and make it valid in PHP? -- St

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
Right ... But that is producing even funkier results... doing pow( (1-(1+$nMonthlyInterest)) , ($iMonths*-1) ) ; Gives me : 4.2502451372964E-35 = 25000 * (0.00104167 / 6.1270975733019E+35); -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
Eric ... I LOVE YOU... Thanks -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- > From: Eric Gorr <[EMAIL PROTECTED]> > Date: Fri, 19 Sep 2008 16:13:49 -0400 &

[PHP] Required files not being parsed properly...

2008-10-06 Thread Stephen Johnson
Produces what you see here : http://www.thumbnailresume.com/index.html?allow=1 Any one have any thoughts on what is going on? -- Stephen Johnson c | eh The Lone Coder office: 562.366.4433 fax: 562.278.0133 http://www.thelonecoder.com continuing the struggle against bad

Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Stephen Johnson
t; <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson >> <[EMAIL PROTECTED]> wrote: >>> OK .. I am upgrading to PHP5 on a clients box, and after doing so I have >>> run into the problem that files that get br

[PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Stephen Johnson
TECTED]> wrote: > Yes, because I will create a field within the for loop, and the > options of the select should be letters. > > -- > MIGUEL GUIRAO AGUILERA > Logistica R8 - Telcel > Tel: (999) 960.7994 > Cel: 9931-6 > > - Mensaje o

Re: [PHP] Concept ional question

2005-06-29 Thread Stephen Johnson
Personally I am an organization freak so I tend to do the first option - store the images in individual folders, generally using the unique username to create the folder itself. That way when I need to look at a group of images/files/whatever for that user, I can just pull up their directory. I s

Re: [PHP] Conceptional question

2005-06-29 Thread Stephen Johnson
> > Any rough estimates what number of images would be too much? > and does anyone think i should make folders for each user? > Each user is limited to max 3mb of pics though... > > Thanks, > Ryan Personally I believe it is doubtful that you would ever reach the limit unless you where going to

Re: [PHP] cannot connect to MySQL server and not sure why

2005-07-14 Thread Stephen Johnson
Where do you populate $success ? It looks too me that $success would always be empty no matter whether you connected or not. On 7/14/05 8:27 AM, "Bruce Gilbert" <[EMAIL PROTECTED]> wrote: > mysql_pconnect ($mysql_host, $mysql_user, $mysql_password); > if (!$success) &

Re: [PHP] mail()

2005-08-17 Thread Stephen Johnson
o I can receive mail? I am using my ISP's POP > server but I dosent send back because my e-mail is [EMAIL PROTECTED] How > do I setup my own domain and does it cost money for an e-mail? -- Stephen Johnson The Lone Coder [EMAIL PROTECTED] http://www.thelonecoder.com *Continuing the struggle against bad code* -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Stephen Johnson
On 8/18/05 9:06 PM, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > > Maybe if everybody did this, MS would realize how broken their > cache-handling is and fix it... Nah. They'd just break it even worse. Is someone feeling a bit cynical tonight? Nah. Not

Re: [PHP] Error #1136

2005-08-24 Thread Stephen Johnson
Can you include the SQL statement that is creating the error? The error basically means you are trying to put more data into the dB then you have data cells for. For instance : Good sql statement: $sql = "insert into table (name, address, city, state, zip) VALUES ('$name', '$address', '$city',

Re: [PHP] Automatically generated emails

2005-08-29 Thread Stephen Johnson
Ravi - http://www.php.net/mail That page should get you on your way. http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad code */ ?> > From: Ravi Gogna <[EMAIL PROTECTED]> > Reply-To: <[EMAIL PROTEC

Re: [PHP] need information on sending email using php

2005-09-02 Thread Stephen Johnson
form. My question is How do I do that? > > the webserver that I will be placing this page on has php ver 4.4.0 on it. > > Any help would be appreciated > > Paul -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL PROTEC

Re: [PHP] mixing $_POST and $_GET vars

2005-09-09 Thread Stephen Johnson
ter approach?? > > or do i really need/wind up doing something like > > if ($_GET['foo'])... > > if ($_POST['apple'])... > > and just have a mix of both methods within the code... > > thanks > > -bruce > [EMAIL PROTECTED] -- Stephen

Re: [PHP] searching through a mysql db/tbl

2005-09-10 Thread Stephen Johnson
help you with these questions better then the folks here on the PHP list. > > thanks > > -bruce > [EMAIL PROTECTED] -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL PROTECTED] http://www.thelonecoder.com *Continuing the struggle against bad code* -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Stephen Johnson
On 9/12/05 12:39 PM, "Peppy" <[EMAIL PROTECTED]> wrote: > for ($i = 1; $i <= 6; $i++) { >Is it possible to increment $i by 5? for ($i = 1; $i <= 6; $i+5) { -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption jour

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Stephen Johnson
code */ ?> > From: "M. Sokolewicz" <[EMAIL PROTECTED]> > Date: Mon, 12 Sep 2005 23:48:05 +0200 > To: Stephen Johnson <[EMAIL PROTECTED]> > Cc: Peppy <[EMAIL PROTECTED]>, > Subject: Re: [PHP] incrementing in a for loop > > >> >&g

Re: [PHP] Can I call .html file as a form action instead of .php?

2005-10-03 Thread Stephen Johnson
ent, only the file name > is different. But if I do the former way(call editStaff.html as a form > action), it doesn't work. It calls some files but looks horrible. > So the advice of the guy was wrong, or did I do something wrong? > > Thanks, -- Stephen Johnson The Lone Coder ht

Re: [PHP] 电子传单 ,最廉价的宣传方式

2005-10-13 Thread Stephen Johnson
请停止发送电子邮件到这个列表, 或我将被迫使解开一千头骆驼蚤入您的腋窝。 http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad code */ ?> > From: KOKO电子传单 <[EMAIL PROTECTED]> > Date: Fri, 14 Oct 2005 06:33:57 +0800 > To: > Subject: [PHP] 电子

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Stephen Johnson
You would access them by declaring them as regular variables and then using the regular variables in your code. As a side note - please do NOT turn global variables on in your php.ini file. There is a good reason for why it is shut off and "good" php does not need to have it turned on. Hope

Re: [PHP] Howto search in SQL for a specific character?

2005-11-29 Thread Stephen Johnson
Try this : $sql = "SELECT nameOfPedigree FROM tbpedigrees WHERE nameOfPedigree like "'%"; The % is a wildcard and will give you the results you want. http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad

Re: [PHP] Could you help me to solve this problem?

2005-12-04 Thread Stephen Johnson
er with php upload script in > http://us3.php.net/features.file-upload, I can't access the file with web > browser. I get error message as "403 Forbidden" or "You are not authorized > to view this page". > However, there is no such problem when i using FTP to

Re: [PHP] Variable $_POST vars?

2005-12-10 Thread Stephen Johnson
ideas? > > I can't seem to get anything to work > > Chris What type of field are you using? In these cases I have always passed the data in an array and passed the post into an array variable which I could then increment. -- Stephen Johnson The Lone Coder http://www.

Re: [PHP] Variable $_POST vars?

2005-12-10 Thread Stephen Johnson
e.Rock" <[EMAIL PROTECTED]> wrote: > Here is an example of one of the fields: > > > I'm looping thru this form several times, so each time the name gets > incremented. Do you have an example of what your talking about? -- Stephen Johnson The Lone Coder http://ww