Welcome Guest, Please Login or Register!
Register Search Today's Posts Mark Forums Read Support RL
Home Forum Aquarium Log Gallery Sponsors RHO Bookstore

Adding Livestock [FIXED]

Go Back   Reeflands Forum > General > Personal Aquarium Log Forum
Sponsored Links
Reply
 
LinkBack Thread Tools Display Modes
Old 04-12-2004, 02:13 PM   #1
Contributing Member
 
Join Date: Mar 2004
Location: MI USA
Posts: 106
Adding Livestock [FIXED]

Trying to add Corals to the system, and can only add one.

Once I have one in, I can pick the option to add the second one, but after entering all the details and submitting, I still only see one in the list.

Steve
SteveP is offline   Reply With Quote
Sponsored Links

Old 04-12-2004, 04:58 PM   #2
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 13,031
Steve,

Aftering adding the second one and being redirected, were you redirected to the coral you just tried to add? If so, were there any errors displayed on that page? If not, where did it redirect you to?

Try to add another now and see what you get.

Thanks,
Scott Z.
Reefland is offline   Reply With Quote
Old 04-13-2004, 09:59 AM   #3
Contributing Member
 
Join Date: Mar 2004
Location: MI USA
Posts: 106
Cool

Quote:
Originally Posted by Reefland
Steve,

Aftering adding the second one and being redirected, were you redirected to the coral you just tried to add? If so, were there any errors displayed on that page? If not, where did it redirect you to?

Try to add another now and see what you get.

Thanks,
Scott Z.
No errors shown, but I tracked down the problem. I bought the second coral from Kee's Pets. Putting the ' in the name confused the system (i'm guessing you use ' as a delimiter in your insert line for the DB). Removing the apostrophe (and using Kees Pets instead) resulted in the acceptance of the livestock entry with no problem.

Perhaps a quick bit of Javascript to remove ' from the input, or some method to escape them so they get entered properly in the database ?

Steve
SteveP is offline   Reply With Quote
Old 04-13-2004, 03:09 PM   #4
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 13,031
Yeah I think I am going to have to run each data entry field through a more complex strip function as this is the same problem Mike had with the cost of an item. I have already started working up the function to strip all of these characters, just need to get it in place.
__________________
Scott Z.
75 Gallon Reef Log
Powered by Reefland's Personal Online Aquarium Log
Reefland is offline   Reply With Quote
Old 04-14-2004, 01:47 PM   #5
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 13,031
Alright, this is now resolved. Please test it and let me know if there are any additional problems.

Scott Z.
Reefland is offline   Reply With Quote
Old 04-14-2004, 03:44 PM   #6
Contributing Member
 
Join Date: Mar 2004
Location: MI USA
Posts: 106
Quote:
Originally Posted by Reefland
Alright, this is now resolved. Please test it and let me know if there are any additional problems.

Scott Z.
Ok, I tested with the following inputs :

Common Name : Prayer Coral
Scientific Name : Deitus Beseechum
Bought From : Kee's Pets
Price : $39.99

Went in just fine, and shows correctly in the summary (minus the ' and the $ as expected).

Steve
SteveP is offline   Reply With Quote
Old 04-14-2004, 03:58 PM   #7
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 13,031
Good deal. At first your post worried me though because I do not want the ' to be stripped, and when I read your post I thought it was being removed. I looked at your entry though and see that it does contain the ' and entered the db just fine.
__________________
Scott Z.
75 Gallon Reef Log
Powered by Reefland's Personal Online Aquarium Log
Reefland is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinking of adding lights. Pomme Reef Aquariums 8 04-22-2004 04:12 PM
near philadelphia- livestock, then drygoods for sale BEERBARON For Sale or Trade Zone 2 11-03-2003 09:18 AM
adding a few "squids " to my set-up organicreefer Tanks, Filtration & Basic Equipment 5 02-19-2003 03:01 PM
Questions; about trusting books and adding trace elements. eses Reef Aquariums 15 09-18-2001 11:08 AM
peppermint shrimp vs. other livestock gramma royale Reef Aquariums 3 07-23-2001 10:38 PM


All times are GMT -4. The time now is 02:51 PM.



Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78