For some reason my SQL won't connect any idea's? I used functions to connect to the SQl but having some trouble because it tells me the the $row_results gives back no data.
function db_connect() {
$db_connect = mysql_connect($db_host, $db_user, $db_pass);
if (!$db_connect)
{
die('Can not connect: ' . mysql_error());
}
mysql_select_db($db_name, $db_connect);
}
function db_close() {
mysql_close($db_connect);
}
function db_select($table_name, $table_where) {
$row_result = mysql_query("SELECT * FROM '$table_name' WHERE email='$table_where'");
$row_get = mysql_fetch_array($row_result);
$row_count = mysql_num_rows($row_result);
}
db_connect();
db_select("attachments", "email@email.com");
die($row_get['email']);
db_close();