Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$count_img = "0";
$copperminepath = './gallery/albums/userpics/10001'; //***YOU MUST CHANGE THIS***
$MZrandompic = @mysql_connect('localhost','user', 'pass'); //***YOU MUST CHANGE THIS***
if (!$MZrandompic) {
echo( '<p>Unable to connect to the ' .
'database server at this time.</p>' );
exit();
}
if (! @mysql_select_db('dbname') ) { //*** Change this to your db name ***
die( '<p>Unable to locate the picture ' .
'database at this time.</p>' );
}
$MZresult = @mysql_query("SELECT * FROM PREFIX_pictures ORDER BY RAND() LIMIT 0,6"); //*** Change the TABLEPREFIX_ to reflect yours ***
if (!$MZresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
while ( $MZrow = mysql_fetch_array($MZresult) ) {
$count_img++;
$pos = $MZrow['pid']; //This finds the picture's coppermine location
$aid = $MZrow['aid']; // Defines Album ID
echo('<a href="gallery/displayimage.php?album=' . $aid . '&pos=-' . $pos . '" target="_blank" class="linkopacity">');
echo('<img src="' . $copperminepath .'/thumb_'. $MZrow['filename'] .'" alt="' . $MZrow['filename'] . '" '. 'border="1">' . '</a> '."\n"); //outputs path from /userspics
if ($count_img == "3"){
$count_img = "0";
echo "<br /><br />";
}
}
$MZalbumresult = @mysql_query("SELECT * FROM PREFIX_albums WHERE aid = '$aid'"); //*** Change TABLEPREFIX to reflect yours
if (!$MZalbumresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
?>
<?php
$count_img = "0";
$copperminepath = './gallery/albums/userpics/10001'; //***YOU MUST CHANGE THIS***
$MZrandompic = @mysql_connect('сървърът','потр. име', паролата'); //***YOU MUST CHANGE THIS***
if (!$MZrandompic) {
echo( '<p>Unable to connect to the ' .
'database server at this time.</p>' );
exit();
}
if (! @mysql_select_db('името на БД-то') ) { //*** Change this to your db name ***
die( '<p>Unable to locate the picture ' .
'database at this time.</p>' );
}
$MZresult = @mysql_query("SELECT * FROM PREFIX_pictures ORDER BY RAND() LIMIT 0,6"); //*** Change the TABLEPREFIX_ to reflect yours ***
if (!$MZresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
while ( $MZrow = mysql_fetch_array($MZresult) ) {
$count_img++;
$pos = $MZrow['pid']; //This finds the picture's coppermine location
$aid = $MZrow['aid']; // Defines Album ID
echo('<a href="gallery/displayimage.php?album=' . $aid . '&pos=-' . $pos . '" target="_blank" class="linkopacity">');
echo('<img src="' . $copperminepath .'/thumb_'. $MZrow['filename'] .'" alt="' . $MZrow['filename'] . '" '. 'border="1">' . '</a> '."\n"); //outputs path from /userspics
if ($count_img == "3"){
$count_img = "0";
echo "<br /><br />";
}
}
$MZalbumresult = @mysql_query("SELECT * FROM PREFIX_albums WHERE aid = '$aid'"); //*** Change TABLEPREFIX to reflect yours
if (!$MZalbumresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
?>
Въвел съм правилно данните, според мен.Unable to connect to the database server at this time.
<?php
$count_img = "0";
$copperminepath = '/churchgallery.freehostia.com/gallery/albums/Pictures/'; //***YOU MUST CHANGE THIS***
$MZrandompic = @mysql_connect('mysql3.freehostia.com:3306','petvas63_perer@64.72.112.12', 'моята парола); //***YOU MUST CHANGE THIS***
if (!$MZrandompic) {
echo( '<p>Unable to connect to the ' .
'database server at this time.</p>' );
exit();
}
if (! @mysql_select_db('petvas63_perer') ) { //*** Change this to your db name ***
die( '<p>Unable to locate the picture ' .
'database at this time.</p>' );
}
$MZresult = @mysql_query("SELECT * FROM PREFIX_cpg1410_pictures ORDER BY RAND() LIMIT 0,6"); //*** Change the TABLEPREFIX_ to reflect yours ***
if (!$MZresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
while ( $MZrow = mysql_fetch_array($MZresult) ) {
$count_img++;
$pos = $MZrow['pid']; //This finds the picture's coppermine location
$aid = $MZrow['aid']; // Defines Album ID
echo('<a href="gallery/displayimage.php?album=' . $aid . '&pos=-' . $pos . '" target="_blank" class="linkopacity">');
echo('<img src="' . $copperminepath .'/thumb_'. $MZrow['filename'] .'" alt="' . $MZrow['filename'] . '" '. 'border="1">' . '</a> '."\n"); //outputs path from /userspics
if ($count_img == "3"){
$count_img = "0";
echo "<br /><br />";
}
}
$MZalbumresult = @mysql_query("SELECT * FROM PREFIX_cpg1410_albums WHERE aid = '$aid'"); //*** Change TABLEPREFIX to reflect yours
if (!$MZalbumresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
?>
<?php
$count_img = "0";
$copperminepath = './gallery/albums/Pictures%202'; //***YOU MUST CHANGE THIS***
$MZrandompic = @mysql_connect('localhost','perernet_perer', парола'); //***YOU MUST CHANGE THIS***
if (!$MZrandompic) {
echo( '<p>Unable to connect to the ' .
'database server at this time.</p>' );
exit();
}
if (! @mysql_select_db('perernet_gallery') ) { //*** Change this to your db name ***
die( '<p>Unable to locate the picture ' .
'database at this time.</p>' );
}
$MZresult = @mysql_query("SELECT * cpg14x_pictures ORDER BY RAND() LIMIT 0,6"); //*** Change the TABLEPREFIX_ to reflect yours ***
if (!$MZresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
while ( $MZrow = mysql_fetch_array($MZresult) ) {
$count_img++;
$pos = $MZrow['pid']; //This finds the picture's coppermine location
$aid = $MZrow['aid']; // Defines Album ID
echo('<a href="gallery/displayimage.php?album=' . $aid . '&pos=-' . $pos . '" target="_blank" class="linkopacity">');
echo('<img src="' . $copperminepath .'/thumb_'. $MZrow['filename'] .'" alt="' . $MZrow['filename'] . '" '. 'border="1">' . '</a> '."\n"); //outputs path from /userspics
if ($count_img == "3"){
$count_img = "0";
echo "<br /><br />";
}
}
$MZalbumresult = @mysql_query("SELECT * cpg14x_albums WHERE aid = '$aid'"); //*** Change TABLEPREFIX to reflect yours
if (!$MZalbumresult) {
die('<p>Error performing query: ' . mysql_error() .
'</p>');
}
?>