$query = "SELECT * FROM customers WHERE firstname = '$firstname', lastname = '$lastname'";
    $result = mysql_query($query);

i keep getting Error: Query was empty

It works! So i guess it is always better to use the "worded" versions of operations?

Yes, AND is defined by the standard ANSI/SQL.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.