I got a problem over here, I'm trying to get my scripting better, but I'm getting this error:
Strict Standards: Non-static method DB::query() should not be called statically in C:\xampp\htdocs\Checkin\content
ews_index.php on line 2
some guy already told me I'm using static and non-static the wrong way, but i really don't get this error.
The error is at a few lines, 2, 3 and 9.
This is my news_index.php:
<?php
$pickQuery = DB::Query("SELECT * FROM `cms_picks` WHERE `enabled` = 'true' ORDER BY `id` DESC LIMIT 6");
if(DB::num_rows($pickQuery) > 0){
?>
<div class="heading blue">Wat gebeurt er in <?php echo $hotelnaam; ?>? </div>
<div class="inner news_picks">
<?php
while($pickFetch = DB::fetch_array($pickQuery)){
?>
<div class="pick">
<a class="url" href="<?php echo $pickFetch['url']; ?>" ><div class="image" style="background: url('<?php echo htmlentities($pickFetch['image']); ?>') no-repeat; height: 60px; width: 160px; float: left; border-radius: 7px; border: 2px solid #ADADAD; "></div></a>
<div class="text" >
<a class="url" style="font-size: 15px;" href="<?php echo $pickFetch['url']; ?>"><b><?php echo htmlentities($pickFetch['title']); ?></b></a><br />
<?php echo htmlentities($pickFetch['desc']); ?>
</div>
<div style="clear: both;"></div>
</div>
<?php
}
?>
</div>
<?php } ?>
I hope that someone can help...
Wesley