I have this structure on my code
$query=mysql_query("SELECT * FROM kontratat WHERE
uid=".$userRow['user_id'] WHERE data BETWEEN '".$fillo."' AND '".$mbaro."');
I got this error
"Parse error: syntax error, unexpected 'WHERE' (T_STRING) in /*.php on line 50"
I know that this is wrong because I was working on this and this works if I remove the "WHERE uid=".$userRow['user_id']"
But I need to get between two dates from ONE USERID ex
ex i have this table on db:
ID - UID - DATE - NAME - COUNTRY
1 - 2 - 2016-03-11 - ALesio - Belgium
2 - 2 - 2016-03-17 - Alex - Germany
3 - 3 - 2016-03-12 - George - England
Im Logged in as UID 2 but i need to view only lines by me not from userid 3 and between dates
something like this: SELECT * FROM table where uid=3 and date between 'mm/dd/yyyy' and 'mm/dd/yyyy'
I tested this and it didn't work.
Searched a lot on Google but nothing till now.
Can anyone help me?