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

i keep getting Error: Query was empty

Recommended Answers

All 3 Replies

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.