Jump to content

[SOLVED] column search for value


ricmetal

Recommended Posts

you need to use the where clause of a mysql statement.  the following statement will search through a db for a specific value held by the variable $table

 

$query = "SELECT * FROM emails WHERE page = '$table'";

 

the column name is page and the variable holds the value to search for although this does not have to be a variable.

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.