kawałek header.php:
public function watch_notes($page){ include('connect.php'); $notesinpage = $system->get_config('notes-in-page'); $query = mysql_query("SELECT * FROM `notes` ORDER BY `notes`.`date-and-time` DESC LIMIT ".$page.", ".$notesinpage*$page.";"); $data = $data + $rekord['text']; } return $data; }
Wywołuje to tak:
<?php include('header.php'); $actions = new actions; $user = new user; if($_POST['action']==''){ Psełdonim: <input type="text" name="author" /><br /> Treść: <br /><textarea name="text"></textarea><br /> <input type="hidden" name="action" value="1" /> <input type="submit" value="Wyślij" /> </form>'); }else{ } include('footer.php'); ?>
Dlaczego moja funkcja zwraca "0"? Połączenie z bazą dobrze działa...