| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2007 Location: Constanta, Romania
Posts: 504
![]() ![]() ![]() ![]() | PHP help needed Ok, so I am creating a like system like the one on youtube or facebook and so on. I have a problem, the code is not working, I do not know what I am doing wrong since I don't get any errors and I am stuck like this for 2 days now. The values aren't inserted in the database. PHP Code: |
| | |
| | #2 (permalink) |
| Account Suspended Join Date: Dec 2008 Location: Boston, Ma
Posts: 650
![]() ![]() ![]() ![]() ![]() ![]() | First, this is sloppy code. Really ugly. Here is the right way to do it. You need to have a column for up and a column for down. Your code makes no sense. This is just a quick throw together but should get you closer. PHP Code: ---------- Post added at 11:39 AM ---------- Previous post was at 11:37 AM ---------- Always validate every variable. You never know what the data they submit REALLY is. Best of luck bud |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Residence Coder Needed | xrvel | Web Development Wanted | 1 | 02-04-2009 07:48 AM |
| Dan's snippets | Daniel | Programming | 4 | 12-20-2008 03:12 AM |
| PHP programmer/partner needed | nailek | Web Development Wanted | 0 | 06-21-2006 02:18 AM |
| PHP and MYSQL help needed | unknowngiver | Programming | 13 | 06-15-2006 09:41 PM |