Having trouble with some select statements.
I have 2 tables. sms_log and sms_messages.
sms_log :
id
message_id
user_id
sms_messages:
message_id
admin_id
message
date_sent
date_delivered
I want to get the sms_message data where sms_log.user_id = $id
How do i do it, im a bit stuck. Also, how will i access it through php, exactly the same as a standard query, or with the table name in front of the cell :
`
echo $myrow['sms_messages.message'];
OR
echo $myrow['message'];
thankyou !