Search found 18 matches

by AndrewD92
Tue Jun 19, 2012 10:04 am
Forum: Tutorials
Topic: Private Message Errors
Replies: 3
Views: 959

Re: Private Message Errors

Doing that outputs "Invalid Conversation ID" at the top of the page. I literally cant see where I have gone wrong! It must be one of these functions validate_conversation_id function validate_conversation_id($conversation_id){ $conversation_id = (int)$conversation_id; $sql = "SELECT C...
by AndrewD92
Mon Jun 18, 2012 8:52 pm
Forum: Tutorials
Topic: Private Message Errors
Replies: 3
Views: 959

Private Message Errors

Hey, its been a while. I have returned to the Private Message tutorial and this error caused me to give up last time. When viewing a conversation I get the following errors; Notice: Undefined variable: messages in C:\xampp\htdocs\PHP\Better PHP\PrivateMessage\core\pages\view_conversation.page.inc.ph...
by AndrewD92
Sun Feb 26, 2012 5:06 pm
Forum: Suggestions
Topic: A Simple Content Mangement System
Replies: 1
Views: 745

A Simple Content Mangement System

Maybe some kind of simple content management system. Where a Admin can login in, create, edit and delete pages. OR some kind of simple Admin page. Somewhere the admin has some kind of control over users who have joined their website (ie, using the Register and Login tutorial). Delete them, add new u...
by AndrewD92
Sun Feb 19, 2012 2:03 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

Im rewatching the project videos from the beginning as I have a whole bundle of errors, although I think I could skip a few if this problem was solved so as I could view the messages Notice: Undefined variable: messages in C:\xampp\htdocs\PrivateMessage\core\pages\view_conversation.page.inc.php on l...
by AndrewD92
Fri Feb 17, 2012 10:28 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

To save time, does anyone know off the top of their head where the messages variable was declared. Was it in private_messages.inc.php?
by AndrewD92
Fri Feb 17, 2012 10:04 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

Thanks! This one is so buggy. I have worked out most of the errors now with help from you guys ! :D Im gona have to rewatch the videos. I think I have missed something in view_conversation.page.inc.php and the delete conversation function.
by AndrewD92
Fri Feb 17, 2012 8:56 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

After adding echo ($sql); on line 101 I get this message: INSERT INTO `conversations_members` (`conversation_id`, `user_id`, `conversation_last_view`, `conversation_deleted`) VALUES (30, 14, UNIX_TIMESTAMP(), 0), (30, 15, 0, 0) and now its working? Im so confused. I didst do anything apart from add ...
by AndrewD92
Wed Feb 15, 2012 8:11 pm
Forum: General Chat
Topic: CSS
Replies: 2
Views: 990

CSS

Do you think its bad to repeat the same CSS over and over again? I'm making a couple of mock-up dummy websites to add to my portfolio to show off my skills in web design. My uni lecturer said that my design eye is that of a professional and said that I need to make a portfolio so as potential interv...
by AndrewD92
Wed Feb 15, 2012 5:01 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

Here is my code for private_message.inc.php. Adding the die error shows nothing now. <?php // Fetches a summary of the conversations. function fetch_conversation_summary(){ $sql = "SELECT `conversations`.`conversation_id`, `conversations`.`conversation_subject`, MAX(`conversations_messages`.`me...
by AndrewD92
Mon Feb 13, 2012 9:27 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

Well, as the tree said to the lumberjack, I'm stumped.
I done what you said but the same happens. Nothing adds to the conversations_members database. I have no idea what the problem is.
by AndrewD92
Mon Feb 13, 2012 11:24 am
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

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 ')}, 0), (19, 14, 0, 0)' at line 2 then I refreshed and it slightly changed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser...
by AndrewD92
Sun Feb 12, 2012 3:35 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

No no, sorry. Thats a copy of the code when I was having my first problem. I just reused it on here. In my main version the die error is not there. The problem I'm having is when I send a new message to a user it don;t add to the conversations_members database and therefore nothing appears in the in...
by AndrewD92
Sat Feb 11, 2012 8:38 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Re: Private Message System Errors

I fix this error now. It was simple as a missing S on conversation. I have another problem now tho, my inbox wont display any messages. <?php $errors = array(); if (isset($_GET['delete_conversation'])){ if (validate_conversation_id($_GET['delete_conversation']) == false){ $errors[] = 'Invalid Conver...
by AndrewD92
Sat Feb 11, 2012 7:46 pm
Forum: Tutorials
Topic: Private Message System Errors
Replies: 19
Views: 2684

Private Message System Errors

Hey, I have a error with the private message system that I cant solve. All the conversation conversations is confusing. I posted this thread before, but deleted it as I thought I fixed it but I made matters worse. I get the following error message: Warning: mysql_fetch_assoc() expects parameter 1 to...
by AndrewD92
Wed Feb 01, 2012 3:18 pm
Forum: Tutorials
Topic: Register and Login (Email) Won't add to database.
Replies: 3
Views: 1886

Re: Register and Login (Email) Won't add to database.

Okay, wicked. Thank you. Thats strange. All the other queries used the proper dash - I wonder why it didn't do it there. I dont even remember inserting that it must of auto corrected it each time. NEW PROBLEM Now the new member is added to both users table and user_activation table. But no email is ...
by AndrewD92
Sun Jan 29, 2012 6:31 pm
Forum: Tutorials
Topic: Register and Login (Email) Won't add to database.
Replies: 3
Views: 1886

Register and Login (Email) Won't add to database.

Can someone tell me the set up for the database for User Login and Register Email Activation. In the tutorial the details slightly change between Cookies and Email activation and now my user information wont add to the database. I cant seem to get it to work correctly. This is the only reason I thin...
by AndrewD92
Sat Jan 28, 2012 11:11 pm
Forum: Tutorials
Topic: Register and Login errors
Replies: 3
Views: 958

Re: Register and Login errors

Wow. Your so totally going to be my best friend for the next 3 years :D

Your tutorials are extremely good by the way. Clean, clear and easy to follow. Much better than a lecturer. Thanks for a personal reply!
by AndrewD92
Sat Jan 28, 2012 7:34 pm
Forum: Tutorials
Topic: Register and Login errors
Replies: 3
Views: 958

Register and Login errors

Hey! I'm doing programming as part of my computing uni course. I'm still a beginner but I want to learn. I'm taking things slowly and following the videos step by step. I'm up to Register and Login (User Account System), which I think is the third or forth playlist. Everything else I done works perf...