Monday, June 9, 2008
Categories
More CEF
Spent from noon-3pm re-doing List/View, Pager and Categories assignments with no design and separate from template to see if they would work on their own. List/Veiw and Pager worked (as it did before), but Categories did not, it came up with this error:
Error in file: '/home/.kidnapping/mcfoster/mfosterdesign.com/itc280/do-over/includes/pagerINC.php' on line: 79 Error message: 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 'asc' at line 1
I inserted only the yellow highlighted sections into List/View from Categories assignment (word doc), so I thought maybe the problem was thtat I missed something in the conversion. So I did a whole new List/View according to Categories code, but the error remained.
Then I tried to change the 'from' pager fix back to original and that didn't make difference, so I changed it back.
Then I shut down my computer, restarted and reconnected to WinSCP and transferred files once again and that didn't change anything. Then I looked in Dreamhost Panel for any option settings that might be affecting the 'asc' syntax, but I wasn't sure what I was really looking for -- so I didn't find anything.
Now I'll just wait to talk with you, Bill. I've got my old albeit working List/View/Pager/Categories assignments (that are inserted into my design template) uploaded as well as my List/View/Pager/Categories assignment that is separate from my design template uploaded for your viewing pleasure.
Sunday, June 8, 2008
C.E.F. Complete Exhaustion & Frusturation
Today from 12pm-12:30am I've been working on assign 6. I spent the first half dissecting your 'paging' word doc (both regular and 'fixed' version). I read and studied the code, trying to understand it, then updated the code to fit my pages. This also involved comparing the new versions of your 'list' and 'view' pages to my 'list' and 'view' pages -- so I could copy and paste the new info into my pages.
As I was comparing pages, some of our stuff didn't match in places that it shoud have. I realized that my includes are nested differently than yours. I've got both 'luggageview.php' and 'luggageviewINC.php' and although there originally was a reason for doing this, I can't remember what it was.
The problem arised when some of our code didn't match when it should have. I worked about two hours trying to re-do the whole assignment by taking it out of includes and put it on one php page, but continued to get this error message:
Error in file: '/home/.kidnapping/mcfoster/mfosterdesign.com/includes/pagerINC.php' on line: 79 Error message: 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 '.CategoryID' at line 1
I got this error after I placed it in a 'new' folder (it's the same except for last line)
Error in file: '/home/.kidnapping/mcfoster/mfosterdesign.com/itc280/new/includes/pagerINC.php' on line: 79 Error message: 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 'b.CategoryID=c.CategoryID' at line 1
I think this may mean there is something in my utilINC php page, since it's connected to pagerINC php page but nothing stood out.
I'm so tired at this point I don't think I can concentrate further to troubleshoot.
Saturday, June 7, 2008
A4-5
I had problems getting the "View" part of assignment 4 into my template and then you helped me in lab -- it took you about 2 minutes to determine a better way to set up my file structure and includes.
Today I've spent six hours working on the Paging assignment and finally got it to work. It should of been done in about one to two hours, but there was something wrong with my WinSCP. When I tried to upload, the usual pop-up screen saying 'Do you want to overwrite?' didn't appear, but the time and date of document created changed. I assumed it was uploading because the time/date were updating.
So I thought it might help if I looked at your paging document again, matching it against mine but I didn't see any mistakes. Then I thought I needed to add some more images to my SQL table because I only had six images, but that didn't make a difference.
So I shut down my and re-connected my WinSCP but that didn't work. Then I re-started my computer and I couldn't get a connection to the Wi-fi internet. Next I did a complete shut down again and turned on computer again. Then lo' and behold my paging assignment was fixed -- I didn't even have to upload it. I'm not sure what even happened, maybe it was the internet connection. Now I'm ready to move on to Assignment 6, finally!
Monday, June 2, 2008
Assignment #3 is done
Since this assignment took so long, I don't think it's realistic to integrate the design requirements of User Interface with the PHP final project requirements.
Hopefully I can get caught up here soon.
Saturday, May 31, 2008
Assignment 3 - the neverending saga
Today, I spent about 8 hours re-doing naming conventions, reworking file structure, updating Site Plan and Page Description, and barely starting the dynamically generated links.
I'm trying to integrate this site with the User Interface class and it's been challenging to meet both the database and the design requirements. I'd like to use this site as a portfolio piece because a quality-made PHP site would diversify my portfolio (that sounds too financial investmenty) and increase my chances of a better job.
With this in mind, I'm wondering if it makes sense to try and get an Incomplete in the class. I'd like to have more time to finish the project (preferably until end of summer quarter so I can sit in on ITC 280 again), but I don't know how realistic that is for my summer quarter schedule.
Sunday, May 18, 2008
A3 - A4
I'm back to Assignment 3. I spent about 3 hours yesterday and a bit today playing around with Bill's code but I'm still having problems with replacing the tables with divs and figuring out how to use the php width attribute with list items in divs.
Sunday, May 11, 2008
Assignment 4
I think it has something to do with my domain name because I can't even upload an index page to my Dreamhost account. I looked at the source of my Dreamhost's home page and the frame source is http://dotster.revenuedirect.com/... (plus my domain name and a bunch of other numbers/symbols). On my home page, there is a bunch of links to "sponsored listings" and a list of "related searches" in a different language, which is confusing since I had not yet created an index page.
I looked at both my Dotster and Dreamhost account to see if anything stood out, but found nothing. I also tried to contact Dotster but they were closed. By this time I was done.
Today I tried again, but same results. I'll try calling Dotster tomorrow morning.
Assignment 3 update: I'm still working on the CSS layout and haven't even had time to put in any PHP, I'm getting worried that this is taking so long. I'm trying to make this class website work with the User Interface class.
Tuesday, April 29, 2008
Assignment Three, con't
Monday, April 28, 2008
Assignment Three
Saturday, April 19, 2008
Assignment Two
I'm not sure if we need to provide documentation of our work, nevertheless here it is:
Parse error: syntax error, unexpected T_VARIABLE in /home/classes/mfoste05/public_html/adder.php on line 9
PROBLEM: missing concatenator before $myTotal variable. Note to self: I tried re-creating this one line of code with and without the period and it had same error message w/o period concatenator
Parse error: syntax error, unexpected '}' in /home/classes/mfoste05/public_html/adder.php on line 13
PROBLEM: missing semicolon at end of line 12 which causes unexpected ‘}’character on next line. Note to self: Page 6 of book says that all PHP statements (lines of executed code) must end with a semicolon.
Parse error: syntax error, unexpected $end in /home/classes/mfoste05/public_html/adder.php on line 28
PROBLEM: the curly bracket on line 13 needs an ending curly bracket but the bracket on line 26 is facing the wrong way. Note to self: I searched for “Parse error: syntax error, unexpected $end” and http://www.phpbuilder.com/board/showthread.php?t=10316154 said “That error is usually as a result of a missing curly bracket , post a bit of code that causes the error” so I assumed it had something to do with a curly bracket
error: \form action="/~mfoste05/adder.php"> Enter the first number:
error: typed in numbers, but form didn’t calculate, just returned form with no values in boxes
PROBLEM: missing method="post". Note to self: I looked at postback1.php example and deleted the method="post" from it to see what it would do, it also came back with no values in boxes
error: same one
PROBLEM: thought it might have something to do with print statement and saw above the print statement that $num2 variable had ‘n’ as capital ‘N’ – so changed to lower case to match original naming convention on line above it
error: same one
PROBLEM: this line: $myTotal -= $num1 + $num2; it should be = instead of -=
error: same one
PROBLEM: this line: Enter the first number:
-- name=”num1” not “Num1”
error: You added 76 and 543 and the answer is 619!
Notice: Undefined index: php_self in /home/classes/mfoste05/public_html/adder.php on line 15Reset page
PROBLEM: php-self wasn't capitalized