SlideShare uma empresa Scribd logo
1 de 1
<?php

functionprintTitle()
{
        return "Archived Weather Records";
}

function run($dbname, $link)
{

  /* Run the query on the database through the connection */
  $query = "select * from weatherdata_archive";
  $result_array = mysql_db_query($dbname, $query, $link);

print "<h2>Old weather data table</h2>";
  ?>
<form action="list_weather_data_old.php" method="post">
        <p>SearchBy ID: <input type="text" name="searchid" size="15" maxlength="20"
value="" />
        <input type="submit" name="submit" value="Search" /></p><br/>       <br/>
</form>
<?php



print "<table border=0>
<tr>
<th align=left>Data ID</th>
<th align=left>Data/time</th>
<th align=left>Node ID</th>
<th align=left>Outdoor Temp</th>
<th align=left>Indoor Temp</th>
<th align=left>Humidity</th>
<th align=left>Wind Speed</th>
        <th align=left>Airpressure</th>
        <th align=left>Wind direction</th>
        <th align=left>Rainfall</th>
        <th align=left>Wind Chill</th>
</tr>n";

  /* While there are still rows in the result set,
assign the current row to the array $row */
while ($row = mysql_fetch_assoc($result_array))
  {
print "t<tr>n";
    /* Print out each element in row, that is,
print the values of the attributes */
foreach ($row as $col_value)
    {
print "tt<td>$col_value</td>n";
    } // end for
print "t</tr>n";
  } // end while

print "</table>n";
mysql_free_result($result_array);
}

?>

Mais conteúdo relacionado

Mais procurados

HeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP ClientHeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP ClientDimitar Ivanov
 
Web client security
Web client securityWeb client security
Web client securityZiv Birer
 
次世代版 PowerCMS 開発プロジェクトのご紹介
次世代版 PowerCMS 開発プロジェクトのご紹介次世代版 PowerCMS 開発プロジェクトのご紹介
次世代版 PowerCMS 開発プロジェクトのご紹介純生 野田
 
Integration with Camel
Integration with CamelIntegration with Camel
Integration with CamelJosué Neis
 

Mais procurados (12)

HeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP ClientHeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP Client
 
Web client security
Web client securityWeb client security
Web client security
 
ZH爱丽丝梦游仙境
ZH爱丽丝梦游仙境ZH爱丽丝梦游仙境
ZH爱丽丝梦游仙境
 
PowerCMS X
PowerCMS XPowerCMS X
PowerCMS X
 
次世代版 PowerCMS 開発プロジェクトのご紹介
次世代版 PowerCMS 開発プロジェクトのご紹介次世代版 PowerCMS 開発プロジェクトのご紹介
次世代版 PowerCMS 開発プロジェクトのご紹介
 
Update statement in PHP
Update statement in PHPUpdate statement in PHP
Update statement in PHP
 
Intro to sencha touch
Intro to sencha touchIntro to sencha touch
Intro to sencha touch
 
Mongo db for C# Developers
Mongo db for C# DevelopersMongo db for C# Developers
Mongo db for C# Developers
 
MongoDB and RDBMS
MongoDB and RDBMSMongoDB and RDBMS
MongoDB and RDBMS
 
Into The Box 2018 cf fractal
Into The Box 2018  cf fractal Into The Box 2018  cf fractal
Into The Box 2018 cf fractal
 
Mongo db for c# developers
Mongo db for c# developersMongo db for c# developers
Mongo db for c# developers
 
Integration with Camel
Integration with CamelIntegration with Camel
Integration with Camel
 

Destaque

Vaga para programadores: Desenvolvimento de games
Vaga para programadores: Desenvolvimento de gamesVaga para programadores: Desenvolvimento de games
Vaga para programadores: Desenvolvimento de gamesPaulo Mattos
 
España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...
España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...
España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...SmithAlbert87
 
Periclesdruck 70anos
Periclesdruck 70anosPericlesdruck 70anos
Periclesdruck 70anoshabcomunic
 

Destaque (8)

Xxxxxxxx
XxxxxxxxXxxxxxxx
Xxxxxxxx
 
Organización p lm 2012
Organización p lm 2012Organización p lm 2012
Organización p lm 2012
 
P 74-75
P 74-75P 74-75
P 74-75
 
Vaga para programadores: Desenvolvimento de games
Vaga para programadores: Desenvolvimento de gamesVaga para programadores: Desenvolvimento de games
Vaga para programadores: Desenvolvimento de games
 
Carrera de submarinos
Carrera de submarinosCarrera de submarinos
Carrera de submarinos
 
España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...
España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...
España 1960 2010 determinantes de crecimiento a lp, fluctuaciones ciclicas y ...
 
P 46-47
P 46-47P 46-47
P 46-47
 
Periclesdruck 70anos
Periclesdruck 70anosPericlesdruck 70anos
Periclesdruck 70anos
 

Semelhante a Archived Weather Records Table (20)

Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operation
 
Php
PhpPhp
Php
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
 
The HyperText Markup Language or HTML is the standard markup language
The HyperText Markup Language or HTML is the standard markup languageThe HyperText Markup Language or HTML is the standard markup language
The HyperText Markup Language or HTML is the standard markup language
 
Php (1)
Php (1)Php (1)
Php (1)
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
 
Practica n° 7
Practica n° 7Practica n° 7
Practica n° 7
 
JS-05-Handlebars.ppt
JS-05-Handlebars.pptJS-05-Handlebars.ppt
JS-05-Handlebars.ppt
 
Zero to SOLID
Zero to SOLIDZero to SOLID
Zero to SOLID
 
Karan - form search
Karan - form searchKaran - form search
Karan - form search
 
Karan chanan
Karan chananKaran chanan
Karan chanan
 
SULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programsSULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programs
 
Soa lab 3
Soa lab 3Soa lab 3
Soa lab 3
 
Django quickstart
Django quickstartDjango quickstart
Django quickstart
 
Mysocial databasequeries
Mysocial databasequeriesMysocial databasequeries
Mysocial databasequeries
 
Mysocial databasequeries
Mysocial databasequeriesMysocial databasequeries
Mysocial databasequeries
 
Ip lab
Ip labIp lab
Ip lab
 
Md5 decrypter
Md5 decrypterMd5 decrypter
Md5 decrypter
 
Php summary
Php summaryPhp summary
Php summary
 
Analysis
AnalysisAnalysis
Analysis
 

Mais de shailendra vishwakarma (6)

Adv html
Adv htmlAdv html
Adv html
 
Essell infracon pvt ltd
Essell infracon pvt ltdEssell infracon pvt ltd
Essell infracon pvt ltd
 
Content management system overview
Content management system overviewContent management system overview
Content management system overview
 
Adv html
Adv htmlAdv html
Adv html
 
Creating a basic joomla
Creating a basic joomlaCreating a basic joomla
Creating a basic joomla
 
Using class suffixes
Using class suffixesUsing class suffixes
Using class suffixes
 

Último

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Último (20)

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 

Archived Weather Records Table

  • 1. <?php functionprintTitle() { return "Archived Weather Records"; } function run($dbname, $link) { /* Run the query on the database through the connection */ $query = "select * from weatherdata_archive"; $result_array = mysql_db_query($dbname, $query, $link); print "<h2>Old weather data table</h2>"; ?> <form action="list_weather_data_old.php" method="post"> <p>SearchBy ID: <input type="text" name="searchid" size="15" maxlength="20" value="" /> <input type="submit" name="submit" value="Search" /></p><br/> <br/> </form> <?php print "<table border=0> <tr> <th align=left>Data ID</th> <th align=left>Data/time</th> <th align=left>Node ID</th> <th align=left>Outdoor Temp</th> <th align=left>Indoor Temp</th> <th align=left>Humidity</th> <th align=left>Wind Speed</th> <th align=left>Airpressure</th> <th align=left>Wind direction</th> <th align=left>Rainfall</th> <th align=left>Wind Chill</th> </tr>n"; /* While there are still rows in the result set, assign the current row to the array $row */ while ($row = mysql_fetch_assoc($result_array)) { print "t<tr>n"; /* Print out each element in row, that is, print the values of the attributes */ foreach ($row as $col_value) { print "tt<td>$col_value</td>n"; } // end for print "t</tr>n"; } // end while print "</table>n"; mysql_free_result($result_array); } ?>