in reply to Re: output results from sql join
in thread output results from sql join
thanks alot roboticus. and i made some changes according to wat i want
the problem i have where to put placeholder in mysql statment to be safe from sql injection. second my statement is like this
$myid = 1; select msg_from FROM msg WHERE msg_to = $myid so am selecting only where msg came from who sent it where all people +sent msg to me - my userid 1 msg_from is the id which shows this msg is from this userid from tble +users. so msg_to is my userid the acct owner. so msg comes to me. but i need +to see who sent them.
so this is msg_from = userid msg_to = to me. my userid (1) so am selecting all people who sent msg to my userid -my userid 1 bt the problem is in the sql statement bt the rest is ok
thanks alot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: output results from sql join
by roboticus (Chancellor) on Sep 29, 2018 at 00:18 UTC | |
by bigup401 (Pilgrim) on Sep 29, 2018 at 10:45 UTC | |
by poj (Abbot) on Sep 29, 2018 at 12:03 UTC | |
by bigup401 (Pilgrim) on Sep 29, 2018 at 13:09 UTC |