Eric Fickes
43p74 comments posted · 2 followers · following 2
1 day ago @ Eric Fickes - McDonalds' Chicken Nug... · 0 replies · +1 points
2 days ago @ Eric Fickes - Read flashlog.txt usin... · 0 replies · +1 points
3 weeks ago @ Eric Fickes - McDonalds' Chicken Nug... · 0 replies · +1 points
Chickens have bones - yes
Fast food is processed animal parts - yes
Does McDonalds put these warnings on the fun boxes? - No, they shouldn't have to because they only sell boneless white meat chicken nuggets. Right?
I grew up eating McDonalds but my children have not. We just happened to get lucky one night while visiting school friends at the PlayPlace.
It's my opinion McDonalds has the money to serve the "bone free" food they market to the masses.
This post is emotional, but it's also my site. Thanks for stopping by.
10 weeks ago @ Eric Fickes - Incorrect syntax near ... · 0 replies · +1 points
Do you have any other tables in your database that you can run this code against?
-EF
11 weeks ago @ Eric Fickes - Update Twitter status ... · 0 replies · +1 points
19 weeks ago @ Eric Fickes - Eleven Coldfusion-ish ... · 0 replies · +1 points
20 weeks ago @ Eric Fickes - Eleven Coldfusion-ish ... · 0 replies · +1 points
That is, I would change line 97 to read like this : "ordinalArray = ArrayNew(1);"
As for your error about column count not matching, that's exactly what the problem is. Look at your INSERT statement. You have five columns listed, but the values only contain four columns. It appears that you've added ipOrdinal to the INSERT statement, but not tot he VALUES portion of the statement. Hope that makes sense.
20 weeks ago @ Eric Fickes - Eleven Coldfusion-ish ... · 2 replies · +1 points
Something like this "ArrayAppend( ordinalArray, #xx# ); ".
Hope that helps.
20 weeks ago @ Eric Fickes - Eleven Coldfusion-ish ... · 4 replies · +1 points
20 weeks ago @ Eric Fickes - Eleven Coldfusion-ish ... · 5 replies · +1 points
form.cfm
[coldfusion]
< form action="handler.cfm" method="post" >
StartIP
EndIP
Status
Group
[/coldfusion]
handler.cfm
[coldfusion]
// NOTE : just assuming all data is correct from the form
startIP = form["startIP"];
endIP = form["endIP"];
ipStatus = form["ipStatus"];
groupName = form["groupName"];
// setup vars for loop processing
xx = listToArray( startIp, ".")[4]; // first IP in range
_endBit = listToArray( endIp, ".")[4]; // last IP in range
_ipPrefix = Replace( startIp, ".#xx#", "" ); // trim off the final .999 to get ipPrefix
insertArray = ArrayNew(1); // temp array to hold insert values
// loop through ip range and create VALUES list for SQL INSERT
while( xx <= _endBit )
{
// append each row's value to array
ArrayAppend( insertArray, "( '#groupName#', '#_ipPrefix#.#xx#', #ipStatus# )" );
xx++;
}
// convert array to comma delimited list
insert_values = ArrayToList( insertArray, "," );
// cleanup
ArrayClear( insertArray );
< cfquery name="insert_data" result="insert_result" DATASOURCE="#request.dsn#" USERNAME="#request.dbuser#" PASSWORD="#request.dbpswd#" >
INSERT INTO GROUP_IPS ( group_id, ip_address, status )
VALUES
#PreserveSingleQuotes( insert_values )#
cfquery >
cfoutput >
[/coldfusion]
Invention