Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

The determination of the time in the panel

I wrote a plugin to issue forecasts pogodu for my region. All records in the database but I have a problem with writing a function that displays the weather on a certain day. The database records the date of the relevant weather in the format 12 February 2015. How to do now appeared on the weather for that day.
This is the panel showing the weather but id
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
include INFUSIONS."prognozadzien_infusion/infusion_db.php";
<link href="pogodadzien.css" rel="stylesheet">
$result = dbquery(
  "SELECT d.*, u.user_id, u.user_name, u.user_status 
  LEFT JOIN ".DB_USERS." u ON u.user_id=d.user
  ORDER BY obszar_id DESC LIMIT 1"
  $rows = dbcount("(obszar_id)", DB_PROGNOZADZIEN);
if ($rows) {
      echo "<table border='0' cellpadding='0' cellspacing='0'>\n";
  while($data = dbarray($result)) {
        echo "<tr>\n";
        echo "<td><img src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_aikona']."d.png'></td>\n";
        echo "<td>\n";
      echo "<table border='0' cellpadding='0' cellspacing='0'>\n";
        echo "<tr>\n";
        echo "<td style='font-family: Arial; font-size: 13px; color: #fff; padding-top: 12px;'><b>".$data['obszar_atemp']."&deg;C</b></td>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td style='font-family: Arial; font-size: 12px; color: #8afff0; padding-bottom: 10px;'>".$data['obszar_awiatr']."km/h</td>\n";
        echo "</tr>\n";
        echo "</table>\n";
        echo "</td>\n";
      echo "<td><img width='20px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_akierunek'].".png'></td>\n";
        //echo "<td class='tbl1' style='white-space:nowrap'>".$data['obszar_atemp']."&nbsp;<img width='30px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_aikona']."d.png'>&nbsp;".$data['obszar_awiatr']."&nbsp;<img width='15px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_akierunek'].".png'></td>\n";
        echo "</tr>\n";
        echo "</table>\n";
        } else {
        echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n<td class='tbl2' align='left'>".$locale['dev_023']."</td></tr>\n</table>";
//require_once THEMES."templates/footer.php";

In Annex I send the whole panel
djdandi attached the following file:
prognozadzien_infusion.zip [800.85kB / 204 Downloads]
Thread Information
1 post
1406 times
Last Post
Last updated on 5 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: djdandi