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
In reply to Re^2: output results from sql join
by bigup401
in thread output results from sql join
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |