Skip to content

Instantly share code, notes, and snippets.

@INDIAN2020
Created May 23, 2013 13:10
Show Gist options
  • Select an option

  • Save INDIAN2020/5635944 to your computer and use it in GitHub Desktop.

Select an option

Save INDIAN2020/5635944 to your computer and use it in GitHub Desktop.
sql: datahandler in pdo
if(!$sql_statement->execute()) {
return false;
}
$sql_count = $sql_statement->rowCount();
if($sql_count > 0) {
return true;
}else {
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment