Upload projektu webmasterskiego
git-svn-id: https://svn.pioder.pl/sg-svn@6 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8
This commit is contained in:
10
robocze/init.php
Normal file
10
robocze/init.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?
|
||||
mysql_pconnect('HOST', 'USER', 'PASS');
|
||||
mysql_select_db('DB');
|
||||
mysql_query("SET NAMES 'utf8'");
|
||||
|
||||
$per_page=6;
|
||||
|
||||
$result = mysql_query('SELECT COUNT(id) FROM photos');
|
||||
$count= mysql_result($result, 0);
|
||||
?>
|
||||
Reference in New Issue
Block a user