0 Users appreciate this thread.
echo username(thats logged in) along with message?
angelrulez7 (2013-08-18 15:42:16)You have to know what the username variable for your login script is. So don't ask us, we have no idea.
a
PLMasterSSB (2013-08-18 17:49:20)I know I can set the variable. but HOW do I... just read the forum again. im too lazy to type the question again
2013-08-19 00:50:01
^ Click
(This Image was created from cooltext.com)
PLMasterSSB (2013-08-18 23:14:37)no
^ Click
(This Image was created from cooltext.com)
PLMasterSSB (2013-08-19 21:24:04)im asking so much and I can learn from you guys. I understand the code, I just don't know how to write the code
^ Click
(This Image was created from cooltext.com)
PLMasterSSB (2013-08-19 21:25:10)I seriously don't have to stop though
^ Click
(This Image was created from cooltext.com)
angelrulez7 (2013-08-19 21:52:08)You're posting threads CONSTANTLY. Stop. Put ALL of your questions in 1 THREAD.
a
(Capt.)Orb (2013-08-20 23:26:32)Google provides a lot of answers.....
I wasn't bothered to write a code for you so go to http://stackoverflow.com/questions/6059364/select-from-multiple-table-with-mysql
I found that link in less than a minute on google.
Aviation fact: The a380 is the largest commerical aircraft in service!
Go to Splashiverse! Splashiverse
Go to Splashiverse! Splashiverse
angelrulez7 (2013-08-28 12:07:54)Don't even use 2 different tables.
Make the SQL row 'user' that inserts the username in the chat table, and echo that instead.
a
PLMasterSSB (2013-09-02 03:27:13)Yeah, I though of that
^ Click
(This Image was created from cooltext.com)
PLMasterSSB (2013-09-08 11:32:53)I think I got it, now I just need AJAX and it will be fine, but unfortunately, idk how to do an AJAX call
^ Click
(This Image was created from cooltext.com)
This topic is closed, so you can not post a comment.
Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)
New registered users today: 7
Newest registered user: ElegantVulpes
im sorry guys for all these remake of my threads but,
Sup guys,
i trying to echo the username(that's logged in) and the chat post that goes along with it. i now know i need to LEFT JOIN (or RIGHT JOIN. idk) and when i do that, idk exactly how the next set of codes are gonna look. i tried code after code but it didn't echo the logged in user along with their chat post.
btw, thx you guys for responding to my every thread. i really appreciate the help.
^ Click
(This Image was created from cooltext.com)