Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = 'mysql45.kontrollpanelen.se';
- $dbuser = 'web76932_blog';
- $dbpass = 'kuiolsx92';
- $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
- $dbname = 'web76932_blog';
- mysql_select_db($dbname);
- ?>
- <?php
- $data = array();
- require('template.class.php');
- $simpleTemplate = new simpleTemplate();
- $lol = '';
- $result3 = mysql_query("SELECT * FROM members ORDER BY id DESC");
- while($row3 = mysql_fetch_array($result3))
- {
- $lol .= $row3['id'] . '<br />';
- }
- $data['user'] = array(
- 'nickname' => "{$lol}",
- 'firstname' => 'Sjon',
- 'lastname' => 'Hortensius',
- 'details' => array(
- 'Country' => 'The Netherlands',
- 'Favorite movie'=> 'Equilibrium',
- 'PHP Experience'=> '4 years'
- )
- );
- $simpleTemplate->variables = $data;
- $simpleTemplate->load('visa_blogg.php');
- $simpleTemplate->show();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement