Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

Marco on "[Plugin: WPtap Mobile Detector] MYSQL error"

$
0
0

Thank you for the hint. Here is our adjustment:

if(is_numeric($mobile_current_id) && $mobile_current_id >= 1 && $mobile_current_id <= 9){
		$mobilemeta = $wpdb->get_row("SELECT <code>theme_template</code>,<code>redirect</code> FROM <code>".TABLE_MOBILEMETA."</code> WHERE <code>mobile_id</code>=$mobile_current_id");

		if($mobilemeta->redirect) {
			header("Location: $mobilemeta->redirect");
			exit;
		}

		return $mobilemeta->theme_template;
	}
	return null;

Viewing all articles
Browse latest Browse all 5527

Trending Articles