Location: PHPKode > projects > JaxBlog > JaxBlog/app/user/user_story/database_test.php
<?php

require_once('../../../config.php');
require_once(FOLDER_RELATIVE_COMMON . 'database.php');

$title = databaseGetValue('SELECT title FROM Stories WHERE id = 1', array());
echo $title . "<br>\n";

$row = databaseGetRow('SELECT title FROM Stories WHERE id = 1', array());
echo $row['title'] . "<br>\n";
echo $row[0] . "<br>\n";

$rows = databaseGetRows('SELECT title FROM Stories WHERE id = 1', array());
foreach ($rows as $row) {
	echo $row['title'] . "<br>\n";
}

?>
Return current item: JaxBlog