if this is your actual code, it is bound to produce an error.
SELECT users.username, users.user_id, ci1.date FROM
87th_users LEFT JOIN 87th_ci1 ON username='user_id'
WHERE ci1.user_id = 'username'
The table users (as in select users.username) is not referenced in your FROM clause. This will produce an error.
Second, the LEFT JOIN element will produce a bizarre result, since your statement references constants, ('user_id', 'username') instead of values on the joined table.
Typically your statement would look something like:
SELECT table1.name
FROM table1
LEFT JOIN table2 ON table1.id=table2.id
WHERE table2.status ='OK'
AND table1.date=CURRENT_DATE()
or something similar.
What I don't understand is how your query can be so confused and reconcile your statement " dont get any errors just no db out put". Your query should die(mysql_error()).