Cfquery dates help needed

2012-03-04 Thread Barry Mcconaghey
Hello. I'm trying to get this cfquery to match a database field EXPIRATIONDATE(date) 2012-3-04 and do a recordcount but it is not working. SELECT EXPIRATIONDATE FROM COUPONS WHERE EXPIRATIONDATE = #data.RecordCount# Thanks, barry ~~~

Log In Form

2009-07-22 Thread Barry Mcconaghey
Hello. I'm using this log in form for my website but went a user types in the wrong username or password, I would like to display an error message "Sorry...wrong username" or "Sorry...wrong password". As of now this form, if wrong, returns back to loginform.cfm. I just think it would be nice

Re: Log In Form

2009-07-22 Thread Barry Mcconaghey
Good point... Maybe I'll just say "Wrong Paco" OK now for the dumb question. Where do I add the code??? I just think it would be nice to tell the visitors what went wrong. >(Wrong username, password, or both). >I wouldn't recommend doing that. If someone is trying to gain illicit access >t

Re: Log In Form

2009-07-22 Thread Barry Mcconaghey
Thanks Alan. I'll test it. >It's not real or tested, but it should give you an idea how to do it. > >=] > > > >SELECT UserUUID, UserName >FROM SomeTable >WHERE >UserName = value="#Form.userLogin#"> >AND >User_IsActive = 1 > > > > > >SELECT UserUUID, UserName >FROM SomeTable >WHERE >UserUUID = va

Coldfusion Autosuggest

2009-09-20 Thread Barry Mcconaghey
Hello. When I use this cf form below to autosuggest zip codes, it works great. But when I try to autosuggest names, it does not work. This code works below: SELECT zip FROM fddirectory ORDER BY zip This code does not work: SELECT name FROM fddirectory

Re: Coldfusion Autosuggest

2009-09-21 Thread Barry Mcconaghey
Thanks...there is no Javascript. Barry >Maybe there are Javascript-breaking signs in the names? > >Just my 2 cents ;-) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion m

Re: Coldfusion Autosuggest

2009-09-21 Thread Barry Mcconaghey
Yes..I have FireFox. How do I use FF to debug? >Barry, >The CFFORM is using a javascript to make it work, if your results set >contains illegal characters in javascript, it would break your results. > >Do you have FireFox and Firebug? Firebug has a great set of tools for >debugging javascript, i

Re: Coldfusion Autosuggest

2009-09-22 Thread Barry Mcconaghey
How do you use Firebug to find a bad entry with a database table with over 25,000 records? Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: Coldfusion Autosuggest

2009-09-22 Thread Barry Mcconaghey
I think I found the problem. In my Database, I found some entries like "Acme # 1". Because I have a large DB, how can I display only the names with the symbol "#" in them. For Example: #ratings.fdd_name# But this query does not work. Barry ~

Re: Coldfusion Autosuggest

2009-09-22 Thread Barry Mcconaghey
Thanks ! Barry >I believe you have to do CONTAINS "##" to escape the pound sign. > >I think I found the problem. > >In my Database, I found some entries like "Acme # 1". > >Because I have a large DB, how can I display only the names with the >symbol "#" in them. > >For Example: > > > >#ratings.fd

Working With Images

2009-12-11 Thread Barry Mcconaghey
Hello. I was ask to help build a dynamic website for a volunteer fire department were they could add news and photos. I’m having trouble with the photos. Does anybody know of a free or paid website were I can find some coldfusion code to add, edit, update, and delete images. I would like to

Re: Working With Images

2009-12-11 Thread Barry Mcconaghey
Hi Rick. I already tried googling cfimage but I have been unsuccessful in finding any good CRUD with CF8 Images. Barry > Yes, google cfimage and check out the google docs, etc. > After checking that out, let me know if you need any more > assistance understanding how to put it all together. >

Re: Working With Images...Still looking

2009-12-12 Thread Barry Mcconaghey
Any Help ? I am still looking for an interface that allows me to add a new image record, update a current image record, or delete a current image record with CF8. Thanks, Barry ~| Want to reach the ColdFusion community with

Re: Working With Images...Still looking

2009-12-12 Thread Barry Mcconaghey
I was ask to help build a dynamic website for a volunteer fire department were they could add news and photos. I’m having trouble with the photos. I would like to be able to add, update, and delete or CRUD images to a database (MySQL) and have CF8 crop the images too. Next, display the images

Re: Working With Images...Still looking

2009-12-12 Thread Barry Mcconaghey
Hi Rick...Thanks for your time! Tony's link did not work and I sent him an email via his contact form. No reply so far. Here is an example of what I'm looking for but only that I want to add images to the ArtistID. I understand all this code in this example. The problem is with the images. h

Re: Working With Images...Still looking

2009-12-13 Thread Barry Mcconaghey
Hi Rick. I started with this code below: http://tutorial40.learncf.com/ I used two pages insert_form.cfm and insert_action.cfm I added a field in the DB called image to the artists table I also added a folder called user_photos On the insert_form.cfm page I added: On the insert_action.cf

Re: Working With Images...Still looking

2009-12-14 Thread Barry Mcconaghey
Hello. I was able to upload an image and add it to my DB using CF8 and MySQl this weekend. Can somebody tell me if this is correct. There are no error messages and the DB is also correct. Thanks Barry INSERT INTO artists(

Re: Working With Images...Still looking

2009-12-14 Thread Barry Mcconaghey
Yes and Yes. The DB and the directory is perfect. I was just wondering if I was leaving a temp image on the server every time I upload an image. >Hi, Barry...sorry I took so long to get back to you...busy weekend. > >The code looks good as far as I can tell...the proof is always in the >results.

Re: Working With Images...Still looking

2009-12-14 Thread Barry Mcconaghey
OK...last newbie question. How do i add more than one photo to this code below. I added 4 new fields in the DB called (image2, image3, image4, image5) and 4 more cfinputs with the same names as the DB. Thanks Barry This code below works when adding 1 photo. > > > > > > >or myImage.hei

cfinsert multiple records into DB

2010-02-11 Thread Barry Mcconaghey
Hello Everybody. I'm trying to build a form that only has one cfselect or drop-down menu option on my website. Right now I have two cfselect but I would like to only display the first cfselect (player). The second cfselect (contactID) I would like to hide. The player selected in the first cfse

Re: cfinsert multiple records into DB

2010-02-11 Thread Barry Mcconaghey
Thanks Chad! It worked. Question...how do I add more input fields. I would like to add this to my final code: Final code that works: #contacts.FirstName# #contacts.LastName# Action page: SELECT FirstName, LastName FROM contacts WHERE contactid = #FORM.player# INSERT player (con

Re: cfinsert multiple records into DB

2010-02-11 Thread Barry Mcconaghey
I'm getting an error message. I added this inside my CFFORM Action page: SELECT FirstName, LastName FROM contacts WHERE contactid = #FORM.player# INSERT player (contactID, player, carpool_location) VALUES (#FORM.player#,'#getFirstAndLast.FirstName# #getFirstAndLast.LastName#', #FORM.carp

Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
Hello Everybody. I have been thinking and working on this for three days now. I'm looking for some help totaling two fields from two tables. Here is what I have: Sample Tables: Table - fdd_directory fdd_name (Example: ACME Fire Dept) fdd_state (Example: PA) fdd_zip (Example: 12345) Table -

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
Thanks Barney B. ERROR Message: Syntax error or access violation: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select count(*) from articles where zipcode = fddirectory.fdd_z Here is the cfquery: SELEC

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
I'm using MySQL 4.0.20. Is there any other way to total these two fields? Barry >What version of MySQL are you using? If it's a really old one that >doesn't support subqueries, check out the MySQL docs. They have a >section about rewriting subqueries into JOINs. > >cheers, >barneyb

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
Thanks Barney! The JOIN and GROUP clause might be over my head. Do I use a RecordCount? Barry >You just need a JOIN and GROUP BY clause. Check out the >subquery-to-join docs on MySQL's site. They have examples of how to do >exactly what you want. > >cheers, >barneyb

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
I think I'm getting closer. This code below works but I don't know how to total each fdd_name. For Example: ACME FD1 (38) ACME FD2 (30) ACME FD3 (20) SELECT a.zipcode, f.fdd_zip, f.fdd_name, a.IsPublished, a.IsActive, f.fdd_state FROM articles a, fddirectory f WHERE a.zipcode = f.fdd_zip

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
Hi Dave. Thanks for the code! Those two did not work. I got two queries to work perfect but I don't know how to display them. SELECT F.fdd_id, F.fdd_name, F.fdd_zip, S.statename, S.abrev FROMfddirectory F, states S WHERE F.fdd_state = AND F.fdd_state = S.abrev ORDER BY fdd_na

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
Here is the error message: The string qZipTotals is not a valid ColdFusion variable name. Valid variable names must start with a letter and can only contain letter, numbers, and underscores. Barry ~| Want to reach the ColdF

Re: Total Two Field From Two Tables

2010-02-15 Thread Barry Mcconaghey
Hi Dave. I fixed the last error message. There was a space here: name=" qZipTotals " Now the data is displaying but it is not correct. This code below (ZIP)is correct: > > >SELECT a.zipcode, f.fdd_zip, f.fdd_name, f.fdd_state, count(f.fdd_id) AS >FDCount >FROM articles a, fddirectory f >WHERE

Re: Total Two Field From Two Tables

2010-02-16 Thread Barry Mcconaghey
Good Morning. This code works below but I'm not sure if there is a better way. Please let me know. SELECT a.zipcode, f.fdd_zip, f.fdd_name, f.fdd_state, f.fdd_id, count(f.fdd_id) AS FDCount FROM articles a, fddirectory f WHERE a.zipcode = LEFT(f.fdd_zip, 5) AND f.fdd_state = GROUP BY

Re: Total Two Field From Two Tables

2010-02-16 Thread Barry Mcconaghey
Thanks Dave! Here is your final code: #story.fdd_name# SELECT fdcount FROM zip WHERE zip.fdd_id = (#NumberFormat(qZipCheck.fdcount)#) Awesome. Barry ~| Want to reach the ColdFusion community

Coldfusion Sport Software

2009-06-30 Thread Barry Mcconaghey
Hello. I was asked to help build a coldfusion website for a non-profit sport organization to help speed up the process of online applications, schedules, etc. Does anybody know of a good website free or paid that has CF software for a sport organizer. Thanks, Barry ~~

Re: Coldfusion Sport Software

2009-07-01 Thread Barry Mcconaghey
I NEVER asked about hosting a website! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/me