Welcome Guest, Not a member yet? Register   Sign In
MYSQL problem
#7

[eluser]Speedy`[/eluser]
[quote author="JunlieF" date="1353582092"]
pls. corrent me about this code...

$sql = "SELECT * FROM deparments, prints WHERE 'id{$dept}' AND 'date_printed BETWEEN '{$from}' AND '{$to}'";[/quote]

Where clause
WHERE column_name operator value

I'm seing just the value not the column.

Operators can be =.!=, <, >....


Messages In This Thread
MYSQL problem - by El Forum - 11-21-2012, 05:43 PM
MYSQL problem - by El Forum - 11-21-2012, 06:25 PM
MYSQL problem - by El Forum - 11-21-2012, 07:15 PM
MYSQL problem - by El Forum - 11-22-2012, 12:57 AM
MYSQL problem - by El Forum - 11-22-2012, 01:06 AM
MYSQL problem - by El Forum - 11-22-2012, 04:01 AM
MYSQL problem - by El Forum - 11-22-2012, 04:14 AM
MYSQL problem - by El Forum - 11-24-2012, 07:07 AM
MYSQL problem - by El Forum - 11-24-2012, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB