whats up all. I am curious to see how some of you may be doing project 3. I have my write working to the file, and I have my read (displaying the guestbook) reading the TXT file into an array and then displaying the array in a loop..I have not worked on manipulating the array yet...which will probably require a read (To create the array), and then a NEW write, with the new manipulated array...
Anyone else working on it yet?
NG- if i am posting too much method here, feel free to DELETE! E
I've only got the DeleteVisitor.php left. Did you pass the array from ViewGuestBook.php/SortVisitorsAscending.php/SortVisitorsDescending.php to the DeleteVisitors.php page? Or is there an easier approach that I missed.
for either sort, remember that the text in the notepad is not in an array--you have to read it into an array. Your sort should/could be performed on the array... and I personally re-wrote the array (once it was sorted) to the notepad file. The reason I saved the sort, is so that if the user clicked "delete" and enter an element #, it would be in the correct order.
I'm sure there are several ways to do this, but that is just my thought process.
1. I see that some of you have problems with links once you upload to the server. This might be because a LAMP server is case-sensitive where the WAMP server may not be. Make sure your links are spelled exactly right (including case). For example, if your form submits to a file called SignGuestBook.php and your actual file is called signguestbook.php, the link will be broken and your project is dead.
2. I see some issues with a text editor placing codes in the source instead of quotation marks. These are misinterpreted and will result in a T_VARIABLE error when your code runs on the server. Don't use a word processor to edit text. If you use a regular text editor, make sure it's set up properly. A couple of you had problems with this error when, instead of quotes, you had hex 93 and hex 94 values inserted.
3. Some didn't follow the model of the example and I wound up having to hit the "back" arrow in my browser. That should never happen on a web page. You should never force the user to hit the back arrow. Always place links to allow the user to navigate.
4. Many didn't get the delete to operate correctly. You might want to revisit your project to see why that didn't work.
Several had everything working. If you did, good job!