Jump to content

[SOLVED] Use WHERE to use 2 different columns to extract a result


28rain

Recommended Posts

For example I have a table (page_count) with fields;Page_name, date, value. And I want to extract the value from a specific Page_name and Date

Ok no sense... This is what i think it might look like:

$sql = "SELECT value FROM page_count WHERE date='$date' && page_name='$pagename'";

The && bit, is that possible?

THanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.