Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function LoadBlock($id)
- {
- if($query = $this->si->database->prepare("SELECT content FROM content WHERE id= ?"))
- {
- $query->bind_param('s',$id);
- $query->execute();
- $query->store_result();
- //echo $query->num_rows;
- if($query->num_rows != FALSE)
- {
- echo 'aaaa';
- $query->bind_result($content);
- echo $content.'asas';
- $query->fetch();
- $query->close();
- return $content;
- }
- else
- {
- $query->close();
- return FALSE;
- }
- }
- }
Advertisement