[PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
and shring it 10% and then save it again as another MySQL Image (a thumbnail)... Mike -- Mike Gifford, OpenConcept Consulting, http://www.openconcept.ca Offering everything your organization needs for an effective web site. New PHP/MySQL Photogallery Great Pictures http://genevilleneuve.com In all

Re: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
don't specify the length, it'll write the entire string. see how that goes... -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 3:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Saving A Database Image to a File (Thumbnail Problems

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
the contents of an image from a database and insert them into a file.. Does that make sense, or have I completely missed the point? You got the point.. Thanks for your help.. Still not there yet though.. Mike Mike Gifford wrote: Hello, I've got a number of images in a database

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Sorry if I wasn't very clear abou tthis.. I don't need to echo the contents to be viewed on the web.. I'm already doing that here: http://www.wtoaction.org/caravan2001/ It's a matter of saving it to a file on the disk (from the database) so I can manipulate it with djpeg, pnmscale, cjpeg

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Hello, Jtjohnston wrote: See these. Reduire.phps probably has what you want. http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/reduire.phps This is what I was looking for I think.. But it still gives me an error.. This one actually got inserted right into the database: br

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Sorry, couple post-Post changes.. The initial query should have been: $sql = SELECT Image,Width,Height FROM Images WHERE ID='$ID'; The an echo of the UPDATE sql now looks like this: UPDATE Images SET Thumbnail=' Warning: Supplied argument is not a valid Image resource in

[PHP] test

2001-11-15 Thread Mike Gifford
Sorry, I've been having troulbe sending messages to newsgroups.. -- 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 PROTECTED]

[PHP] JPG Images from database to filename.jpg

2001-11-15 Thread Mike Gifford
Hello, I've got a number of images in a database.. Ultimately what I would like to do is be able to resize the image that is already in the database and then insert that image into another field. Uploading the files generally inserts these both at the same time, however I need to create a

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
actually viewing the script. Mike - Original Message - From: Mike Gifford [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 2:45 PM Subject: Uploading Photos to MySQL Hello, Has anyone developed another class for uploading images to a MySQL

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
Hi Sean, Sorry for the delay with this.. Been a rather busy month.. However your help on this project has been very useful.. Sean C. McCarthy wrote: Mike Gifford wrote: Sean C. McCarthy wrote: If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what inserts in the DB

[PHP] Uploading Photos to MySQL

2001-09-11 Thread Mike Gifford
good pointers to scripts to store jpg/png files in MySQL using PHP? Thanks. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ In all things it is better

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-09 Thread Mike Gifford
Thanks robin, this is very useful! Robin Vickery wrote: [EMAIL PROTECTED] (Mike Gifford) writes: Hello, I'm trying to replace a couple of lines of code: $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.')); $extension = substr($userfile_name, $dotpos

[PHP] Re: Regular Expressions - A relatively simple search...

2001-09-09 Thread Mike Gifford
Thanks.. _lallous wrote: ? $str = /home/mike/test.txt; if (preg_match(/[^\.]+$/, $str, $matches)) $ext = $matches[0]; else $ext = no extension; echo extension=$ext; ? Mike Gifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'

[PHP] Regular Expressions - A relatively simple search...

2001-09-06 Thread Mike Gifford
it isn't working.. What I'd like to do is to find the extension of a file name and place that in a variable. So in '/home/mike/test.txt', I want to have the statement return 'txt' Any help would be appreciated.. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering

[PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
posting? I looked at Webcalendar: http://webcalendar.sourceforge.net/ Which looks great for a number of things, but it doesn't seem to allow moderated anonymous posting. Suggestions would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering

Re: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-30 Thread Mike Gifford
99% - Original Message - From: Mike Gifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 6:58 PM Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested! Hello, I've created a little opensource script: http://openconcept.ca

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
to grab the source files for all of the related files.. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
here? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein -- PHP General Mailing List

[PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-29 Thread Mike Gifford
by your system as Patrick \the skier\ kuharic Has anyone else experienced this? Any suggestions for work arounds? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca

Re: [PHP] Using a query to selecting between two dates

2001-07-30 Thread Mike Gifford
: On 29-Jul-2001 Mike Gifford wrote: Hello, I've got a number of press releases that I'd like to be able to order by year. I'd like everything from this now to a year ago (ie. July 29th, 2000) to be ordered together and then allow folks to scroll back to the previous year July 30, 2000 to July

[PHP] Author.class - Does it exist?

2001-07-23 Thread Mike Gifford
Hello, Does anyone know if there's a GPL author class out there? There are online book stores bibliographies all need to manage author names in a similar way (I would think), and I'd just like to not recreate the wheel if I don't have to. Mike -- Mike Gifford, OpenConcept Consulting, http

[PHP] Re: One2Many Logic Problem - phpMySQL bibliography

2001-07-23 Thread Mike Gifford
), status varchar(5), PRIMARY KEY (bibID) ); CREATE TABLE WLPbib2profile ( bibID mediumint(9), profileID mediumint(9) ); Thanks. Mike Mike Gifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'm not sure if any

[PHP] $this-db-Record[WLPcountry.name]

2001-07-22 Thread Mike Gifford
AND WLPbib2profile.bibID = WLPbib.bibID I'm making progress on this app. Thanks to the assistance of a lot of good folks. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca

Re: [PHP] $this-db-Record[WLPcountry.name]

2001-07-22 Thread Mike Gifford
That did the trick Philip! Thanks for your help. Mike Philip Murray wrote: - Original Message - From: Mike Gifford [EMAIL PROTECTED] Hello, I'm using phplib to add functionality to my bibliography app. However I'm not sure how to deal with selected data from different tables

[PHP] One2Many Logic Problem - phpMySQL bibliography

2001-07-22 Thread Mike Gifford
organization. I could list the organization field simply as the lastName, but that seems like it would be confusing the data types... Must be a way around this.. I suspect it is limited by my logic not PHP's. Any ideas would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting

[PHP] Adding to an array within while loop

2001-07-13 Thread Mike Gifford
the profileID. If someone has an idea of a better way to do this I'd be happy to hear it. I can send code tables for those who might be interested. Thanks! Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish

[PHP] Joining a number of tables in a MySQL query

2001-07-11 Thread Mike Gifford
; SELECT * from clients join on orders using (cid); -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education

[PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Mike Gifford
JOIN, but I'm not sure how to return a query without duplication. This is far better than what I had this morning (which was no response from the server). Thanks. I'm new to joining tables... Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your

Re: [PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables

2001-07-11 Thread Mike Gifford
which one? :) Thanks for looking into it. Mike -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 1:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Duplication Results When LEFT JOIN is Used Between Multiple Tables Hello, I'm making

Re: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Mike Gifford
I added DISTINCT to the code (as per below): Kamil Choma wrote: Mike Gifford wrote: However, when I run this query: mysql_query(SELECT DISTINCT WLPbib.bibID, WLPbib.title, WLPbib.publisher, WLPbib.publicationDate, WLPaddress.city

Re: [PHP] Bibliography Profiles Directory - Looking for Existing GPL Apps

2001-07-06 Thread Mike Gifford
are. Mike Chris Anderson wrote: profiles? - Original Message - From: Mike Gifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 2:06 AM Subject: [PHP] Bibliography Profiles Directory - Looking for Existing GPL Apps Hello, I'm looking to see if someone

[PHP] Creating Internationally Accessible Web Apps - i18n

2001-07-05 Thread Mike Gifford
on and if there are any standards which would be useful to mold existing apps into. I'm also keen on knowing how folks have constructed MySQL tables to allow for multilingual content. Thanks! Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization

[PHP] Bibliography Profiles Directory - Looking for Existing GPL Apps

2001-07-05 Thread Mike Gifford
Hello, I'm looking to see if someone out there has already developed a php/mysql bibilography. I haven't been able to find one online. I'm also looking for a profiles directory. Rather vague definition here, sorry. Ultimately it will be i18n compliant.. Mike -- Mike Gifford, OpenConcept

[PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
','$Title','$URL','$Date',',$db); Any help would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Featured Client: http://halifaxinitiative.org A good life is one inspired by love and guided

Re: [PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
',',$db); Any help would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Featured Client: http://halifaxinitiative.org A good life is one inspired by love and guided by knowledge - B. Russell

Re: [PHP] PHP XML Parsing

2001-05-22 Thread Mike Gifford
Message - From: Mike Gifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 18, 2001 12:24 PM Subject: [PHP] PHP XML Parsing Hello, In looking for a good script to parse XML files I stumbled across the following tutorial (which looks very good): http

Re: [PHP] PHP XML Parsing

2001-05-22 Thread Mike Gifford
be appreciated. Mike Mike Gifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, In looking for a good script to parse XML files I stumbled across the following tutorial (which looks very good): http://www.wirelessdevnet.com/channels/wap/

[PHP] PHP XML Parsing

2001-05-18 Thread Mike Gifford
My parsing definitions are as follows $itemTitleKey = ^rdf^item^title; $itemLinkKey = ^rdf^item^link; $itemDescKey = ^rdf^item^description; Any help would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs

Re: [PHP] Managing Multiple Conditions in a MySQL Query

2001-05-02 Thread Mike Gifford
) or die(never expect your query to work: $query); while ( $row = mysql_fetch_array( $result ) ) { echo LI . stripslashes($row[FirstName]) . . stripslashes($row[LastName]) . from . stripslashes($row[CityState]); } -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca

[PHP] Managing Multiple Conditions in a MySQL Query

2001-05-01 Thread Mike Gifford
($individuals_array[LastName]) . from . stripslashes($individuals_array[CityState]); } However, it gave me the following error: Warning: Supplied argument is not a valid MySQL result resource in /usr/local/rabble/petition/index.php3 on line 89 How do I get around this? Mike -- Mike Gifford

[PHP] Win Apache/PHP config triping up virtual directory

2001-04-27 Thread Mike Gifford
have any suggestions? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Featured Client: http://rabble.ca - News For the Rest of Us! If a book doesn't make us better, then what on earth is it for? - Alice

Re: [PHP] Building an array from a URL

2001-04-05 Thread Mike Gifford
2001 at 09:42:20PM -0400, Mike Gifford wrote: Hi Joe, I don't doubt that at all.. However, my strings aren now looking like this. http://openconcept.ca/rabble/superRSS.phtml?Title%5B1000%5D=RBC+Dominion+Securities+investigates+URL%5B1000%5D=http%3A%2F%2Fcbc.ca%2Fcgi-bin%2Ftemplates%2Fv

[PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
'm missing a step or two here, but would really appreciate someone filling in some of the gaps. Thanks! Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Featured Client: http://www.aboriginalrightsco

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
: ? $test = array( joe = 'stump', harry = 'bar', jane = 'scott'); ? --Joe On Wed, Apr 04, 2001 at 12:00:48PM -0400, Mike Gifford wrote: Hello, I'm trying to build an array out of data submitted from a URL

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
in production. On Wed, Apr 04, 2001 at 08:56:53PM -0400, Mike Gifford wrote: I tried this, but it converted [ and ] to url friendly codes. Does this still work? Mike Joe Stump wrote: FYI you can send data like this on the url: http://www.foo.com/script.php?test[joe]=stumptest[harry

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
described) It was a GET not POST indeed. Else : Split the different key/values with the delimiter '' and thereafter split the elements in the array by '=' How do I pull in this data if not as an array? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your or

[PHP] Parsing XML CDF format in PHP3 - Stumbling over ?

2001-03-29 Thread Mike Gifford
ds of directors of both the Toronto Stock Exchange and the Canadian Venture Exchange (CDNX) have both voted in principle to approve the takeover of the CDNX by the TSE. /ABSTRACT /ITEM /CHANNEL -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization need

[PHP] Email validation

2001-03-20 Thread Mike Gifford
a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $mail ) ) { return false; } else { return true; } } ? Not sure which is the best. Mike -- Mike Gifford, OpenConcept Consulting, http://openconce

Re: [PHP] PHP/MySQL Control Structures - if (mysql_query())

2001-03-20 Thread Mike Gifford
shes($FirstName) . " " . stripslashes($LastName) . " from " . stripslashes($CityState); // echo "LI" . stripslashes($sameIP_array["FirstName"]) . " " . stripslashes($sameIP_array["LastName"]) . " from " . stripslashes($sameIP_a