Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB.NET Chat Room Tutorial With PHP & SQL [Intermediate]

This is actually an amazing tutorial. Very details etc.. Going to try it now ;D
Why would you keep and read messages in/from a database for this instead of sending/reading them in real time between the server and client? If you want to keep a log, just log them in a file on the server.
nice tutorial!

i wanna learn how to make a video chat (like skype) using VB.NET but just video & text nothing really extra
(Jan 3, 2015 01:46 PM)+Haze Wrote:  I have no idea what you're talking about.

What do you mean you have no idea what I'm talking about? YOU wrote this code didn't you? YOU understand what this code does don't you?
(Jan 3, 2015 01:58 PM)Marwix Wrote:  I don't think you know what you're talking about. He's using another way to store logs and such. Nothing to worry about if you ask me. The only thing that matters right now is that the chat system works which it obviously does.

Code
function addMessageLog($userId, $messageId)
    {
      global $con;

      $stmt = $con->prepare("Insert Into tblMessageLog(MessageID, UserID) Values(:msgID, :userID)");

      //We could of used a mass Insert statement, but for tutorial purposes, let's keep it nice and simple

      $stmt->bindValue(':userID', $userId, PDO::PARAM_INT);
      $stmt->bindValue(':msgID', $messageId, PDO::PARAM_STR);

      //It adds the userid and messageid and executes. simple.

      $stmt->execute();
    }

Oh yea...you're right...totally not adding messages to a database...what do I know? How silly of me.
(Jan 3, 2015 02:09 PM)+Haze Wrote:  I'm aware. I stated this in the first few lines of this thread.
Spoiler (Click to View)

Anyway no more off topic posts please..

If you wanted to "do something different," why not do a TCP/IP chat client/server tutorial that shows how to do it globally? eg: run a server service from your server by opening a desired port on your server and let the client connect to it and then participants can chat that way?

You could have still included the SQL stuff for user storage and registration, but logging messages in a database is totally unnecessary.

Also none of this appears to be encrypted, so there's also that.
(Jan 3, 2015 01:44 PM)Shoot Wrote:  nice tutorial!

i wanna learn how to make a video chat (like skype) using VB.NET but just video & text nothing really extra

😁 i made skype like program (desktop and webcam view) maybe one day i will share it
Once again man great work! You always bring top notch shit!!
Thanks for this a ton, +Haze! I'm looking forward to more tutorials, hopefully an expansion on this one with more advanced features like friends, PMs, usergroups, advanced banning/moderation etc...
Thank you so much +Haze ! i've been looking for a tutorial like this
(Jan 14, 2015 06:28 PM)0011101000101001 Wrote:  Good tut* you are becoming professional programme 😎

becoming? he is my inspiration, i saw his tutorials before i joined HF ( as a guest ), i joined to learn more and get better at it, i love his creations!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by dummycartSep 9, 2021 03:38 AM 1 145 Sep 9, 2021 03:38 AM
Last Post: Lindros
[Python] by CiataLearnerDec 22, 2018 02:27 PM 1 208 Dec 22, 2018 02:27 PM
Last Post: notjapanese
[C] by Adam2017Dec 3, 2018 03:06 PM 2 165 Dec 3, 2018 03:06 PM
Last Post: Adam2017