Forum: PHP Oct 4th, 2008 |
| Replies: 5 Views: 463 Basically the problem was $i starting off as 0. This threw it off completely. I used $n to start as 1 and count (because I use the $i for more than just an increment).
I'll be posting this project... |
Forum: PHP Sep 12th, 2008 |
| Replies: 8 Views: 879 I've taken code from Shanthi's post and edited to to set a cookie when a user visits the page. When the user refreshes the page, it checks for the cookie. If the cookie exists, it does not add to the... |
Forum: PHP Aug 19th, 2008 |
| Replies: 4 Views: 561 We all still miss a semicolon now and then. ;) |
Forum: PHP Aug 18th, 2008 |
| Replies: 4 Views: 1,314 Certainly the fancy way would be to use something like the Mootools Sortables (http://demos.mootools.net/Sortables) class to sort a list. You could combine that with some type of server-side language... |
Forum: PHP Aug 13th, 2008 |
| Replies: 10 Views: 2,843 If you'd like to do it in a session variable, do this.
<?php
$host = "---";
$username = "---";
$password = "---";
$db = "---";
$tbl_name = "---"; |