[PHP] masters thesis

2002-06-05 Thread John Taylor-Johnston
Hi, Not your usual question. Sort of off-topic, but not really. I'm doing a masters thesis on the interdisciplinary study of the use of computer technology (especially MySQL, PHP PHPMyAdmin) in the study of and research on Comparative Canadian Literature. http://compcanlit.ca/ ... Humanities

[PHP] Re: redirection

2002-06-05 Thread John Taylor-Johnston
: is there any way other than header(Location: http://www.php.net/;); to redirect to another page. -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes

Re: [PHP] mail() problem

2002-06-05 Thread John Taylor-Johnston
Yes. I had something similar. Try putting 'Reply-To: [EMAIL PROTECTED]' in the fourth argument for mail. For some reason some systems balk without a reply address, I'm not certain why? I questioned my ISP on that. They had something in their sendmail.exe which prevented outgoing mail (scripts

[PHP] Re: Alocating file in memory...

2002-06-05 Thread John Taylor-Johnston
doesn't need to alocate it in memory each time. Thanks Paulo Cesar -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke

[PHP] Re: PHP Apache Module AND command Line

2002-06-05 Thread John Taylor-Johnston
as a module in/for Apache? Basically, I want to have both on the same server. Or can this even be done? Thank You Steve -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca

[PHP] Re: Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread John Taylor-Johnston
Should find enough code for displaying graphics (and sending by smtp) in this code. You'll find some session stuff too. HTH J http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/index.html.phps http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/display_image.phps

[PHP] Re: Finding out how a variable was registered

2002-06-05 Thread John Taylor-Johnston
a page that handles a form and I need to know whether or not a variable was created using the GET or POST method (I don't want the user to be able to to 'foo.php?var=value' and mess with the results) - - Joe [EMAIL PROTECTED] -- John Taylor-Johnston

[PHP] text file

2002-06-05 Thread John Taylor-Johnston
I want to open a text file which has 12 lines and (1) insert a new line at line[0] (2) re-save the text file only with 12 lines (Therefore line[12] gets chopped out. I had some code to do this with Perl. open (NEW, $filepath\\$file); print NEW $something; for ($i = 2; $i 12; $i++)

[PHP] PHPMyAdmin Alternative?

2002-06-08 Thread John Taylor-Johnston
Are there alternatives to PHPMyAdmin available? www.mysql.com/ is supposed to have one, no? -- John Taylor-Johnston - - Université de Sherbrooke: -- PHP General Mailing List (http://www.php.net

[PHP] Re: Date?

2002-06-08 Thread John Taylor-Johnston
? echo date (l., .F. .d., .Y); ? Sunday, June 09, 2002 But I would use: ?php echo date (l., .F. .d., .Y); ? Don't know why, but someone told me once it had something to do with versions. John Jeremy Bowen wrote: I am having nothing but trouble with the date function. I want it to print

[PHP] Re: Javascript PHP cookies

2002-06-08 Thread John Taylor-Johnston
Absolutely. I've done it. Cookies are cookies. What I don't like is that the cookie is not saved unitl after a submit. In Javascript, I have JS code that will assign a value and save it to a cookie and then recall the cookie value and document.write(myvalue), over and over if I want, without

[PHP] Re: Date?

2002-06-08 Thread John Taylor-Johnston
I added a comment to the FAQ: http://www.php.net/manual/en/function.date.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPMyAdmin Alternative?

2002-06-08 Thread John Taylor-Johnston
This a binary? I was hoping for a web-based (PHP, Perl, ASP, etc.) alternative - like PHPMyAdmin - to analyse. César l . aracena wrote: Look in http://www.mysql.com/downloads/gui-mycc.html and download the The problem is that you can't issue multiple SQL queries, but that will be solved.

Re: [PHP] alternatives? (Was: Shot in the dark)

2002-06-20 Thread John Taylor-Johnston
Sorry Chris, It's set at June 20th here? Maybe my NNTP server? John Chris Garaffa wrote: Hello, any chance you could set your clock to the correct date? It says July 6, and is really screwing up my sorting order for mail... thanks On Saturday, July 6, 2002, at 04:49 PM, jtjohnston

[PHP] Looking for a forum

2002-09-25 Thread John Taylor-Johnston
Hi, I'm looking for some forum script, a bit like this: http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi Can anyone post a link to something useful? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Owner

2002-09-25 Thread John Taylor-Johnston
Hi, Who is the forum's owner? I want to post questions using [EMAIL PROTECTED] and [EMAIL PROTECTED] in my from: and reply-to: I post infrequently to this list using news://news.php.net/php.general NOT [EMAIL PROTECTED] This is about the only list I post to. I've been receiving a lot of spam

Re: [PHP] Owner

2002-09-26 Thread John Taylor-Johnston
Justin, Best advice is to post strictly to the newsgroup with a dud email address, Unfortunately, that doesn't work. I had a hotmail address, but not acceptable. Someone did not put it on the accepted' list. Someone back there needs to accept that address to allow that poster to post when

[PHP] GURU HELP: session_unset

2001-11-12 Thread John Taylor-Johnston
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps I'm trying to session_unset() - it worked I thought. session_unset(postcard); unset($postcard); unset($MyImage); Go to: http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.php and click me. It

[PHP] Re: GURU HELP: session_unset

2001-11-12 Thread John Taylor-Johnston
Source is here: http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] Session help

2001-11-14 Thread John Taylor-Johnston
Start at index.html. It goes to postcard.php. When I click on submit in postcard.php, if I change any of the values in the form, the session values received in send_mail.php do not change. Anyone have an idea what I have done wrong now?

Re: [PHP] IP Address Variable

2001-11-14 Thread John Taylor-Johnston
It may not work, if you are running Windows PHP on your localhost at home. I'll bet you are trying to log getenv('REMOTE_HOST'). Been there done that. I use http://www.indigostar.com/microweb.htm to create a localhost to develop and debug and then upload to the server. (I pay for modem time.) I

[PHP] calculate a varchar

2007-12-03 Thread John Taylor-Johnston
Is there a calculation function? I'm using an e-commerce shopping cart. I want to tweak the code. The author is using a varchar(100) field to store prices. Taking advantage of there being a varchar, instead of entering a price, I would like to enter a calculation. (24*2.2)+(24*2.2*.1) 24

[PHP] array problem with a zencart shipping module

2008-02-06 Thread John Taylor-Johnston
I'm desperately going outside the forum, seeking help. Does anyone have any experience with Zencart shipping modules, or understand arrays? http://www.zen-cart.com/forum/showthread.php?t=87831 Its borrowed code and I,m not good at arrays to begin with. Thanks, John -- PHP General Mailing List

Re: [PHP] shopping carts

2008-02-06 Thread John Taylor-Johnston
zencart is giving me every possible custom field I can dream of. John Jason Pruim wrote: On Feb 6, 2008, at 5:56 PM, Eric Butera wrote: On Feb 6, 2008 4:18 PM, nihilism machine [EMAIL PROTECTED] wrote: Does anyone know of a shopping cart which allows you to add multiple custom fields to

Re: [PHP] PHP Source code protection

2008-02-06 Thread John Taylor-Johnston
I'm not sure where PHP stands on this politically. But I believe in Open Source, which allows you to encode your code. But why? At heart I'm a purist GNU. Stallman was right when he first tried to fix a faulty printer. * The freedom to run the program, for any purpose (freedom 0). *

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread John Taylor-Johnston
Thanks for the reply and checking it out. I was hoping my problem lies only in the class. I do have a Paypal account and at this point in time, it is a question of time - I've got to get my site in production and shut off the old cart. Nathan Nobbe wrote: On Feb 6, 2008 11:11 PM, John Taylor

[PHP] /?feed=rss2

2008-03-10 Thread John Taylor-Johnston
It used to have a feed, by accident. Now someone munches up too much bandwidth. http://www.foo.com//?feed=rss2 How can I divert this to 127.0.0.1 or something to convince this one to leave my bandwidth alone? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: /?feed=rss2

2008-03-10 Thread John Taylor-Johnston
I do. CPanel too. How would I write that into an htaccess ? Shawn McKenzie wrote: John Taylor-Johnston wrote: If you have apache, I would use a rewrite rule to return not found. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: /?feed=rss2

2008-03-11 Thread John Taylor-Johnston
Any other inspiration? Thanks, John John Taylor-Johnston wrote: It used to have a feed, by accident. Now someone munches up too much bandwidth. http://www.foo.com/?feed=rss2 How can I divert this to 127.0.0.1 or something to convince this one to leave my bandwidth alone? John -- PHP General

[PHP] Opensource CPanel

2007-09-01 Thread John Taylor-Johnston
Does anyone recommend a decent server panel, one like cpanel? Something made from PHP preferably? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parsing Poor XML into to PHP

2007-09-16 Thread John Taylor-Johnston
Pour examples of xml, but this is what I want to do. I have a quiz. BASICALLY How do EXTRACT THE Contents and Values of these tags into strings and arrays I can work with. Depending upon the students answer, compared to the criterion below, I need to calculate a value = x/1. The score could

[PHP] Compose MP3 from a php enabled flash page.

2007-10-11 Thread John Taylor-Johnston
I have an educational web site. I want to create an interface where my students can record their voices client side and then save messages server side. I thought Odeo would solve my problems. (The have their own problems now.) Then I tried: MyChingo and Mobasoft. COme on $6,000 for a site

[PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
Is there something already created to open an rss file, parse it, and include() the useful stuff into an html file? Not all my students have an rss reader. http://jtjohnston.ca/jtjohnston.rss jt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] proxy server

2006-08-12 Thread John Taylor-Johnston
, where can I find another smtp server that will send my mail (using php) and certify that it comes from me? Is a proxy server the way to go? Costly? John || -- John Taylor-Johnston - If it's not Open Source, it's Murphy's Law

Re: [PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
I've gotten some excellent responses. Thanks! Anything I can implement in PHP 4 - until i get IT to update to PHP 5? John Dave Goodchild wrote: Yep. The PEAR XML_RSS class.

[PHP] Rasmus: [PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
give their time, and responses to my queries! John Rasmus Lerdorf wrote: John Taylor-Johnston wrote: Is there something already created to open an rss file, parse it, and include() the useful stuff into an html file? Not all my students have an rss reader. http://jtjohnston.ca/jtjohnston.rss

Re: [PHP] Parsing RSS

2006-08-12 Thread John Taylor-Johnston
Richard, Found this: http://www.phpclasses.org/browse/package/2263.html Real small and works in PHP4. Time for a little CSS tweaking ;) and it will look great! Thanks, John http://jtjohnston.ca/news/news.php Richard Lynch wrote: I'm willing to bet that if you check Google or even just

Re: [PHP] proxy server

2006-08-14 Thread John Taylor-Johnston
do diddly-squat... I'm sure. CGI proxy I think is the key word I'm looking for. I would even pay $10 per year for an SMTP access account if it fixed my problems. John -- John Taylor-Johnston - If it's not Open Source

[PHP] RSS Creator

2006-08-31 Thread John Taylor-Johnston
Has anyone created an RSS feed creator in PHP? I could make one fast enough, but ... John -- John Taylor-Johnston - If it's not Open Source, it's Murphy's Law. '''Cégep de Sherbrooke: ô¿ôhttp

[PHP] Alternative to FCKeditor

2006-09-24 Thread John Taylor-Johnston
Anyone know of a good alternative to FCKeditor? Or a decent file uploader? Even after paying for a little help, I get zip for FCK. I need another solution, another editor with an active forum or support, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Removing quotes

2006-10-10 Thread John Taylor-Johnston
Someone kindly gave me this once. I now need to reverse engineer it to remove the quotes and plus signs from $searchenquiry. Is it as simple as this? // FINAL RESULT: [+john +johnston] $sEnquiry = preg_replace(/\s+/, +, $sEnquiry); // RESULT: [john johnston] $sEnquiry =

[PHP] If array()

2006-10-10 Thread John Taylor-Johnston
How can I use if to see an array contains something? if ($array()) does not work, of course. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-17 Thread John Taylor-Johnston
This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3 _SERVER[HTTP_ACCEPT_LANGUAGE] fr-ca,en-us;q=0.5 Is this a reasonable approach?

Re: [PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-17 Thread John Taylor-Johnston
Stut, Richard, Thanks for the feedback! Quebec has a language law, so I'm obligated to serve French first. I can wiggle around that if the preferred language is other. John Is this a reasonable approach? if(stristr($_SERVER[HTTP_HOST],fr)) { include(french.htm);}else{ include(english.htm);}

[PHP] input type=checkbox

2008-03-14 Thread John Taylor-Johnston
Am coding something. Cannot quite clear my head. I know what my SQL looks like. I just cannot see clearly to input it. What is $_POST[checkregion] going to look like? Is it going to have all the convenient commas I will need in my SQL? Or do I have to parse God knows how many checkboxes? John

[PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
http://www.glquebec.org/English/test.php When I check Knowlton and Thetford Mines or others, only Thetford Mines shows up in phpinfo(). $_POST[checkregion] only sees Thetford Mines. What am I doing wrong? How do I parse value checkregion? Or set this up differently? input type=text

[PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
$_POST[checkregion] is supposed to be an array, no? John Taylor-Johnston wrote: http://www.glquebec.org/English/test.php When I check Knowlton and Thetford Mines or others, only Thetford Mines shows up in phpinfo(). $_POST[checkregion] only sees Thetford Mines. What am I doing wrong? How do I

Re: [PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
hit 550-Spammy URLs in your message 550 See http://master.php.net/mail/why.php?why=SURBL Robert Cummings wrote: On Fri, 2008-03-14 at 23:14 -0400, John Taylor-Johnston wrote: $_POST[checkregion] is supposed to be an array, no? You want the following (otherwise each checked entry

Re: [PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
Will this do it? $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) values ('John', '.implode(',', serialise($_POST['checkregion']).') '; http://ca.php.net/manual/en/function.serialize.php Array ( [0] = Hemmingford [1] = Huntingdon ) input type=checkbox

Re: [PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
Sorry, will this work? $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) values ('John', '.serialise($_POST['checkregion']).') '; John Taylor-Johnston wrote: Will this do it? $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) values ('John', '.implode(',', serialise

Re: [PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
Robert, Array ( [0] = Hemmingford [1] = Huntingdon ) You want the following (otherwise each checked entry overwrites the previous): input type=checkbox name=checkregion[] value=Knowlton / input type=checkbox name=checkregion[] value=Thetford Mines / How would you proceed? $sql

Re: [PHP] Re: input type=checkbox

2008-03-14 Thread John Taylor-Johnston
Robert Cummings wrote: On Sat, 2008-03-15 at 00:33 -0400, John Taylor-Johnston wrote: Robert, Array ( [0] = Hemmingford [1] = Huntingdon ) You want the following (otherwise each checked entry overwrites the previous): input type=checkbox name=checkregion[] value=Knowlton / input type

[PHP] MySQL Group?

2008-03-19 Thread John Taylor-Johnston
Does anyone know of a good MySQL group? I want to make a relational link from `data` to `shopping` so when I insert a new record in `shopping`, I will see the contents of `data`.`name` and `data`.`email` as a drop-down menu in `shopping`. Where does one go to get this kind of help? Thanks,

[PHP] Re: MySQL Group?

2008-03-19 Thread John Taylor-Johnston
John Taylor-Johnston wrote: Does anyone know of a good MySQL group? Found it: http://lists.mysql.com/mysql/ Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: MySQL Group?

2008-03-19 Thread John Taylor-Johnston
Thanks for getting me started. (Sorry, I'm a top quoter.) Below is some working code for the archives. What I've learned so far is that : 1) what I'm referring to in `person` has to be a key. 2) if I want to refer to more than one field from person in shopping, I have to use unique keys. I'm

[PHP] string

2008-04-07 Thread John Taylor-Johnston
$name = John Taylor; I want to verify if $name contains john, if yes echo found; Cannot remember which to use: http://ca.php.net/manual/en/ref.strings.php Sorry, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string

2008-04-07 Thread John Taylor-Johnston
Excellent. Thanks all! John Daniel Brown wrote: On Mon, Apr 7, 2008 at 9:25 AM, John Taylor-Johnston [EMAIL PROTECTED] wrote: $name = John Taylor; I want to verify if $name contains john, if yes echo found; Cannot remember which to use: http://ca.php.net/manual/en/ref.strings.php Sorry

[PHP] PHP Code I Must find

2008-05-29 Thread John Taylor-Johnston
John Taylor-Johnston wrote: My source is this page: http://www.grandlodge.mb.ca/contact.html John /div align=centerTo report a technical problem with this site please a href=mailto:#119;#101;#098;#109;#097;#115;#116;#101;#114;#064;#103;#114;#097;#110;#100;#108;#111;#100;#103;#101;#046;#109;#098

Re: [PHP] PHP Code I Must find

2008-05-29 Thread John Taylor-Johnston
trying to decode every string like that that they encounter (at least not yet). - Rick Original Message Date: Thursday, May 29, 2008 07:08:34 PM -0400 From: John Taylor-Johnston [EMAIL PROTECTED] To: PHP-General php-general@lists.php.net Subject: [PHP] PHP Code I

Re: [PHP] PHP Code I Must find

2008-05-29 Thread John Taylor-Johnston
stab at the problem of spiders at the same. Any feedback, info or code would be appreciated, John John Taylor-Johnston wrote: My source is this page: http://www.grandlodge.mb.ca/contact.html John /div align=centerTo report a technical problem with this site

[PHP] FImage $aSubDir

2008-10-28 Thread John Taylor-Johnston
I have http://www.flash-here.com/downloads/fhimage.html installed. I like it just the way it is. But instead of displaying (see function below). Instead of displaying the file name under the photo, weak excuse for a caption, I would like to open and nl2br the contents of a like named text

[PHP] Re: FImage $aSubDir

2008-10-28 Thread John Taylor-Johnston
Could it be this easy? $chopped= strlen($aFn) - 4; $filename = $chopped..txt; printbrfont face='Arial, Helvetica, sans-serif' size=2 color='#99'; include($filename); print/font; John Taylor-Johnston wrote: I have http://www.flash-here.com/downloads/fhimage.html installed. I like

[PHP] if(($mydata-address

2005-06-01 Thread John Taylor-Johnston
This should be easy, but refuses to work: if( ($mydata-address != ) and ($mydata-addresspublic == yes) ) { } But in other combinations, they work? if($mydata-address != ){} or if($mydata-addresspublic == yes){} So what new lesson am I to learn now? :) John -- John Taylor-Johnston

Re: [PHP] if(($mydata-address

2005-06-01 Thread John Taylor-Johnston
statement at this point. -- John Taylor-Johnston - If it's not Open Source, it's Murphy's Law. ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - 819-569-2064 -- PHP General Mailing List

[PHP] mozilla urlencode

2005-06-03 Thread John Taylor-Johnston
I seem to have a problem with Mozilla or with IE? echo a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a http://foo.org/_private/directory.php#Montr%E9al+District+%234 works in IE6, but Mozilla will not accept it. Mozilla does not work. Am I approaching this wrong?

Re: [PHP] mozilla urlencode

2005-06-04 Thread John Taylor-Johnston
I sent this to Mozilla groups. I'm beginning to wonder if Mozilla supports a name=? I think re-asked my question clearer below. John i dont think having a + in an achor tag is standard.. but i could be wrong. I'm truly hoping this is a reported bug already. This URL does not work in most

Re: [PHP] mozilla urlencode

2005-06-04 Thread John Taylor-Johnston
This works: District of St. Francis http://www.glquebec.org/tezt.php#District+of+St.+Francis a name=District+of+St.+Francis/a This does not: Montréal District #2 http://www.glquebec.org/tezt.php#Montr%E9al+District+%232 a name=Montr%E9al+District+%232/a I'm beginning to see the problem lies

[PHP] $date(l-m);

2005-06-04 Thread John Taylor-Johnston
$mydata-lastinsalled = 2004-05; How can I determne if $mydata-lastinsalled is one year or more older than the current $date(l-m); Anyting simple and over looked? I have been browsing the manual:: http://ca.php.net/manual/en/function.strtotime.php http://ca.php.net/manual/en/function.date.php

Re: [PHP] mozilla urlencode

2005-06-05 Thread John Taylor-Johnston
Egads!! But thank you for the research. Back to the drawing board. John Jochem Maas wrote: John Taylor-Johnston wrote: a name=District+of+St.+Francis/a a name=Montr%E9al+District+%232/a I'm beginning to see the problem lies with the French character é. I don't see it being #. In any case, I

[PHP] replace striing éèêà

2005-06-05 Thread John Taylor-Johnston
Can someone show me how to get rid of international characters in $string? Is there a function already made? You cannot use accented characters in a name reference : a name=montréal. I guess this below is a start. Is there a better way? John http://ca.php.net/manual/en/function.str-replace.php

[PHP] $mydata-StampDate

2005-06-26 Thread John Taylor-Johnston
I created my own counter. I have a varchar (10) field that resembles a date: 2005-06-26. Now I would like to parse out $mydata-StampDate to find how many hits per day I have had since 2003-08-23. Where do I start? while ($mydata = mysql_fetch_object($news)) { } John -- John Taylor

[PHP] Re: $mydata-StampDate

2005-06-26 Thread John Taylor-Johnston
John Jasper Bryant-Greene wrote: John Taylor-Johnston wrote: I created my own counter. I have a varchar (10) field that resembles a date: 2005-06-26. Now I would like to parse out $mydata-StampDate to find how many hits per day I have had since 2003-08-23. Where do I start? while ($mydata

[PHP] date field

2005-08-10 Thread John Taylor-Johnston
I have a field 'updated' How can I tell if the date is older than 1 year ago (or should I think of 365 days)? `updated` date NOT NULL default '1999-12-12' I've looked at: http://ca3.php.net/manual/en/function.getdate.php Thanks, John -- PHP General Mailing List (http://www.php.net/) To

[PHP] IP Geographical

2005-08-11 Thread John Taylor-Johnston
I have a field in my counter that collects IP addresses. Now the powers that be want be to collect that data and sort it geographically etc. Is there anyone who has done this? Where would I find some OS code? I've heard of it done. John -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: date field

2005-08-11 Thread John Taylor-Johnston
Thanks Ben! John Ben Ramsey wrote: In PHP, you could do something like: $updated = strtotime($db_result['updated']); $one_year_ago = strtotime('-1 year'); if ($updated $one_year_ago) { // updated date is older than a year ago } John Taylor-Johnston wrote: I have a field 'updated

[PHP] wrapping text

2005-08-13 Thread John Taylor-Johnston
Folks are complaining mail arrives and text will not wrap. $message comes directly from a textarea. Old mail readers, I guess? How can I make their life better and make the text wrap? mail([EMAIL PROTECTED], stripslashes($subject), stripslashes($message), Return-Path: [EMAIL

[PHP] Re: wrapping text

2005-08-14 Thread John Taylor-Johnston
wordwrap(stripslashes($message), 72). Thanks! Another reason why I gave up on Perl :) A fucntion made already since 4.0.2.! :) Matthew Weier O'Phinney wrote: Folks are complaining mail arrives and text will not wrap. $message comes directly from a textarea. Old mail readers, I guess? Yep.

[PHP] php explained in sql

2005-08-19 Thread John Taylor-Johnston
In php, if I wanted to know if $mydata-email contained something, I would do this, right? if ($mydata-email) {} How would I express this in SQL (MySQL)? Thanks. Sorry to be off-topic, if I am, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php explained in sql

2005-08-21 Thread John Taylor-Johnston
varchar: colname'' Thanks, John Jasper Bryant-Greene wrote: John Taylor-Johnston wrote: In php, if I wanted to know if $mydata-email contained something, I would do this, right? if ($mydata-email) {} How would I express this in SQL (MySQL)? That doesn't tell you if $mydata-email

[PHP] AND OR NOT

2005-09-03 Thread John Taylor-Johnston
input TYPE=text NAME=searchenquiry VALUE= size=30 Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in $searchenquiry? A simple parse for AND and then str_replace? Is str_replace appropriate for case? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: PHP/MySQL offline

2005-09-04 Thread John Taylor-Johnston
This is maybe what you want: http://www.indigostar.com/ http://www.indigostar.com/microweb.htm Runs an apache server, php all, from a CD. (windows app.) John Mario netMines wrote: Hi all I have a project where I'm using PHP/Mysql. The client wants to run that project to a cd. Does anyone

[PHP] Re: Scary nonsense form submissions

2005-09-04 Thread John Taylor-Johnston
For badness, you could have an automated gif with a couple of numbers the user has to authenticate the form. If not complete or correct, add a header and send them to http://localhost/404.htm. Real nasty and will tie up their machine long enough. John Brian Dunning wrote: Hi all - I have

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
Any ideas? Post kind of lost in there since Saturday. Is str_replace the best choice for case sensitive and for swapping AND ? input TYPE=text NAME=searchenquiry VALUE= size=30 Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in $searchenquiry? A simple parse for AND and

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
' IN BOOLEAN MODE) ORDER BY relevancy DESC;-- John David Robley wrote: John Taylor-Johnston wrote: Any ideas? Post kind of lost in there since Saturday. Is str_replace the best choice for case sensitive and for swapping AND ? input TYPE=text NAME=searchenquiry VALUE= size=30 Any suggestion

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
' IN BOOLEAN MODE) ORDER BY relevancy DESC;-- John David Robley wrote: John Taylor-Johnston wrote: Any ideas? Post kind of lost in there since Saturday. Is str_replace the best choice for case sensitive and for swapping AND ? input TYPE=text NAME=searchenquiry VALUE= size=30 Any suggestion

Re: [PHP] Re: AND OR NOT

2005-09-06 Thread John Taylor-Johnston
Jasper Bryant-Greene wrote: John Taylor-Johnston wrote: I'm under pressure to permit AND, OR NOT. My research group insists that MySQL 4 syntax is not good enough. An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get

[PHP] [php]: monthly statistics

2005-09-17 Thread John Taylor-Johnston
Hi, Where could I find a monthly statistic plugin that can take my `StampDate` field and generate monthy graphs of my primary key `id`? I'm sure I,m not the first to ask? ;-) CREATE TABLE `counter` ( `id` int(10) NOT NULL auto_increment, `StampDate` date NOT NULL default '1999-12-31',

[PHP] Re: E-Mail

2005-09-18 Thread John Taylor-Johnston
Show me your example.. I think you have to assign your smtp server in your php.ini too. All PTC wrote: Hi, Ive recently installed the php script on my website. It all works perfectly well except e-mails don't get through. E-mails don't ever get sent to new members, and when I try sending

[PHP] Re: Javscript embedding problem

2005-09-18 Thread John Taylor-Johnston
Try \countdown.js\ instead of single quotes ? //INCLUSION OF COUNTDOWN TIMER .trtd colspan=2SCRIPT language='JavaScript' SRC='countdown.js'/SCRIPTcenterscript type='text/javascript'countdown_clock(05, 11, 19, 08, 00, 1);/script/center/td/tr\n ./table\n -- PHP General Mailing List

[PHP] Re: mysql table row updation based on user input.

2005-09-18 Thread John Taylor-Johnston
Me thinks you have to name the checkboxes differently, otherwise the post variable will only take the last value it found, overwriting previous values. Otherwise they act like radioboxes. print TD style='border: 1pt solid black cell-padding: 3px'input type='checkbox' name=\id[]\

[PHP] Re: [php]: monthly statistics

2005-09-18 Thread John Taylor-Johnston
Tim Van Wassenhove wrote: On 2005-09-18, John Taylor-Johnston [EMAIL PROTECTED] wrote: Hi, Where could I find a monthly statistic plugin that can take my `StampDate` field and generate monthy graphs of my primary key `id`? I'm sure I,m not the first to ask? ;-) CREATE TABLE `counter

[PHP] testing 234

2006-03-16 Thread John Taylor-Johnston
Are any of my posts getting through? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] making a tutorial

2006-03-16 Thread John Taylor-Johnston
I'm making a tutorial and don't really understand how to do this myself :) pWhich of the following pets do have at home: br /input type=checkbox name=favourite[] value=dogdog br /input type=checkbox name=favourite[] value=catcat br /input type=checkbox name=favourite[] value=snakesnake br /input

Re: [PHP] testing 234

2006-03-16 Thread John Taylor-Johnston
Are any of my posts getting through? They don't appear to be. This one only made it halfway :P Yeah, it doesn't seem to accept my email from another address. Thanks Rob. I was trying to post something last night and it never got through. This email seems acceptable to the group Gods. -- PHP

[PHP] PHP post data

2006-04-05 Thread John Taylor-Johnston
Scrolling back and forward through my PHP generated search engine, my browser (FF) alerts to remind me that I have post data. What kind of header can I add to avoid it doing that? Else what is the problem? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Faking Boolean

2006-04-06 Thread John Taylor-Johnston
How can I take enquiry: input name=searchenquiry type=text value=john or input name=searchenquiry type=text value=john johnston and parse its value to come up with this to do a boolean search +john or +john +johnston Does there exist a function yet :) ? I suppose I could explode

Re: [PHP] Faking Boolean

2006-04-07 Thread John Taylor-Johnston
Thanks! Your first appraoch seems to make clearer sense for me. Great pinch hit, John Paul Novitski wrote: If you're splitting your search string into discrete words, most search engine logic doesn't require quotes. Typically, quotation marks combine multiple words into single expressions,

[PHP] hosting reselling

2006-05-05 Thread John Taylor-Johnston
Kind of off-topic. My current ISP has problems with quality control: especially offering php 5 mysql. Also rates keep going up per account. Reselling is beginning to look very interesting. Anyone have any recommendations for a reseller where I can host 5 sites myself with very low bandwidth

[PHP] 404 errors

2006-05-16 Thread John Taylor-Johnston
I get a lot of 404 errors. Is there a way in PHP to redirect them in such a way as it does not burn my bandwidth? Or (an Apache trick I learned once) to discourage them by referring them to localhost? Or something? Something I can embed in PHP. John -- PHP General Mailing List

[PHP] PHP Notice: Undefined index

2006-05-19 Thread John Taylor-Johnston
Any idea why this bit of code if(yes == $_POST['submitter']) { mysql_select_db($db,$myconnection); $sql = INSERT INTO `$db`.`$table` (name,email,comments,entrydate) values ('$name','$email','$comments','$entrydate'); mysql_query($sql) or die(print mysql_error()); } is provoking

  1   2   3   4   5   6   >