Location: PHPKode > scripts > PuszBaza > puszbaza/example.php
<?
include "puszbaza.php";

$file="data.pbf";

$conn = connect_pb ($file);
$my_isues = select_pb ($conn, "id","x > 1");
$amountofrows = count_pb ($my_isues);


echo "<table>";
for ($i=0;$i< $amountofrows;$i++)
{
$id = $my_isues["id"][$i];
$autor = $my_isues["autor"][$i];
$topic = $my_isues["topic"][$i];


echo "<tr>";
echo "<td>id $id </td>";
echo "<td>Autor $autor </td>";
echo "<td>Topic $topic </td>";
echo "</tr>";
}
echo "</table>";

if($wynik != 0) $max = max($wynik["id"]) +1;
else $max=0;

//insert_pb($file,"$max;newautor;newtopic;");

//update_pb($file,"id","x == 1","autor","test");

//delete_pb ($file,"id","x > 1 && x <3");

?>
Return current item: PuszBaza