SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
PHP+MYSQL
projetcsoft.biz F F ก
ก ก F MySQL F PHP
1. ก ก username password
กF ก F MySQL
$dbUname="Enter your MySQL username.";
$dbPword="Enter your MySQL Password.";
$dbHost="Enter your MySQL sever name.";
$dbName="Enter your MySQL sever name.";
$link=mysql_connect($dbHost,$dbUname,$dbPword);
mysql_select_db($dbName,$link);
mysql_query('SET CHARACTER SET utf-8');
mysql_query('SET collation_connection
utf8_unicode_ci');
projetcsoft.biz F F ก
2. F SQL F MySQL
$sql = " sql ";
$result=mysql_query($sql);
mysql_close($link);
F ก ก F $result
projetcsoft.biz F F ก
3. F F F ก MySQL
ก F 2. ก SQL ˈ F F
( Select ) F F mysql_featch_array()
F ก $result
$resultArray=mysql_featch_array($result);
projetcsoft.biz F F ก
F F
$sql = "SELECT name,price FROM product";
$result=mysql_query($sql);
mysql_close($link);
$resultArray=mysql_featch_array($result);$resultArray=mysql_featch_array($result);
echo $resultArray[0]; name
echo $resultArray[1]; price
echo $resultArray["name"]; name
echo $resultArray["price"]; price
ก F F ก projetcsoft.biz F F ก
ก F F
ก F F ก F product ก
ก F ก F ก F F loop while F
F
$resultArray=mysql_featch_array($result);$resultArray=mysql_featch_array($result);
while($resultArray=mysql_featch_array($result))
{
echo $resultArray["name"];
echo $resultArray["price"];
} F ก F F ก product F
projetcsoft.biz F F ก
ก F
MySQL F ˈ Function
ก ก ก
F F Function
function runSqlQuery($sql){
$dbUname="Enter your MySQL username.";$dbUname="Enter your MySQL username.";
$dbPword="Enter your MySQL Password.";
$dbHost="Enter your MySQL sever name.";
$dbName="Enter your MySQL sever name.";
$link=mysql_connect($dbHost,$dbUname,$dbPword);
projetcsoft.biz F F ก
mysql_select_db($dbName,$link);
mysql_query('SET CHARACTER SET utf-8');
mysql_query('SET collation_connection
utf8_unicode_ci');
ก F
MySQL F ˈ Function
$result=mysql_query($sql);
mysql_close($link);
return $result;
}
projetcsoft.biz F F ก
ก function F กF code F F F ก
F
$sql = "SELECT name,price FROM product";
$result=runSqlQuery($sql);
ก F
MySQL F ˈ Function
$result=runSqlQuery($sql);
while($resultArray=mysql_featch_array($result))
{
echo $resultArray["name"];
echo $resultArray["price"];
}
projetcsoft.biz F F ก
ก F F ก MySQL Tag Table
<table>
<tr>
<td> F </td>
<td> </td>
</tr></tr>
<?PHP $sql = "SELECT name,price FROM
product";
$result=runSqlQuery($sql);
while($resultArray=mysql_featch_array($result))
{ ?>
projetcsoft.biz F F ก
<tr>
<td>
<?PHP echo $resultArray["name"]; ?>
</td>
<td>
ก F F ก MySQL Tag Table
<td>
<?PHP echo $resultArray["price"]; ?>
</td>
</tr>
<?PHP } ?>
projetcsoft.biz F F ก
<select name="select_product" >
<?PHP $sql = "SELECT id,name FROM product";
$result=runSqlQuery($sql);
while($resultArray=mysql_featch_array($result))
{ ?>
ก F F ก MySQL Tag Select
{ ?>
<option
value="<?PHP echo $resultArray["id"]; ?>" >
<?PHP echo $resultArray["name"]; ?>
</option>
<?PHP } ?> F F F F ˈ
projetcsoft.biz F F ก

Contenu connexe

Tendances

I, For One, Welcome Our New Perl6 Overlords
I, For One, Welcome Our New Perl6 OverlordsI, For One, Welcome Our New Perl6 Overlords
I, For One, Welcome Our New Perl6 Overlordsheumann
 
PerlでWeb API入門
PerlでWeb API入門PerlでWeb API入門
PerlでWeb API入門Yusuke Wada
 
20 modules i haven't yet talked about
20 modules i haven't yet talked about20 modules i haven't yet talked about
20 modules i haven't yet talked aboutTatsuhiko Miyagawa
 
DEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent InterfaceDEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent InterfaceCtvrtkoncz
 
16.mysql stored procedures in laravel
16.mysql stored procedures in laravel16.mysql stored procedures in laravel
16.mysql stored procedures in laravelRazvan Raducanu, PhD
 
6 things about perl 6
6 things about perl 66 things about perl 6
6 things about perl 6brian d foy
 
Advanced modulinos trial
Advanced modulinos trialAdvanced modulinos trial
Advanced modulinos trialbrian d foy
 
PHP and Rich Internet Applications
PHP and Rich Internet ApplicationsPHP and Rich Internet Applications
PHP and Rich Internet Applicationselliando dias
 
So cal0365productivitygroup feb2019
So cal0365productivitygroup feb2019So cal0365productivitygroup feb2019
So cal0365productivitygroup feb2019RonRohlfs1
 
Refactoring using Codeception
Refactoring using CodeceptionRefactoring using Codeception
Refactoring using CodeceptionJeroen van Dijk
 
Advanced modulinos
Advanced modulinosAdvanced modulinos
Advanced modulinosbrian d foy
 
Creating a compiler in Perl 6
Creating a compiler in Perl 6Creating a compiler in Perl 6
Creating a compiler in Perl 6Andrew Shitov
 
Total World Domination with i18n (es)
Total World Domination with i18n (es)Total World Domination with i18n (es)
Total World Domination with i18n (es)Zé Fontainhas
 
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)Michael Wales
 
Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)brian d foy
 
The Perl6 Type System
The Perl6 Type SystemThe Perl6 Type System
The Perl6 Type Systemabrummett
 

Tendances (20)

Perl 6 by example
Perl 6 by examplePerl 6 by example
Perl 6 by example
 
I, For One, Welcome Our New Perl6 Overlords
I, For One, Welcome Our New Perl6 OverlordsI, For One, Welcome Our New Perl6 Overlords
I, For One, Welcome Our New Perl6 Overlords
 
Perl6 grammars
Perl6 grammarsPerl6 grammars
Perl6 grammars
 
PerlでWeb API入門
PerlでWeb API入門PerlでWeb API入門
PerlでWeb API入門
 
20 modules i haven't yet talked about
20 modules i haven't yet talked about20 modules i haven't yet talked about
20 modules i haven't yet talked about
 
DEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent InterfaceDEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent Interface
 
16.mysql stored procedures in laravel
16.mysql stored procedures in laravel16.mysql stored procedures in laravel
16.mysql stored procedures in laravel
 
6 things about perl 6
6 things about perl 66 things about perl 6
6 things about perl 6
 
Advanced modulinos trial
Advanced modulinos trialAdvanced modulinos trial
Advanced modulinos trial
 
PHP and Rich Internet Applications
PHP and Rich Internet ApplicationsPHP and Rich Internet Applications
PHP and Rich Internet Applications
 
So cal0365productivitygroup feb2019
So cal0365productivitygroup feb2019So cal0365productivitygroup feb2019
So cal0365productivitygroup feb2019
 
Refactoring using Codeception
Refactoring using CodeceptionRefactoring using Codeception
Refactoring using Codeception
 
21.search in laravel
21.search in laravel21.search in laravel
21.search in laravel
 
Advanced modulinos
Advanced modulinosAdvanced modulinos
Advanced modulinos
 
Creating a compiler in Perl 6
Creating a compiler in Perl 6Creating a compiler in Perl 6
Creating a compiler in Perl 6
 
Total World Domination with i18n (es)
Total World Domination with i18n (es)Total World Domination with i18n (es)
Total World Domination with i18n (es)
 
Perl6 in-production
Perl6 in-productionPerl6 in-production
Perl6 in-production
 
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
Introduction to CodeIgniter (RefreshAugusta, 20 May 2009)
 
Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)
 
The Perl6 Type System
The Perl6 Type SystemThe Perl6 Type System
The Perl6 Type System
 

Similaire à Session8

Similaire à Session8 (20)

Dependency Injection
Dependency InjectionDependency Injection
Dependency Injection
 
与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
 
06 Php Mysql Connect Query
06 Php Mysql Connect Query06 Php Mysql Connect Query
06 Php Mysql Connect Query
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
 
Stored Procedure
Stored ProcedureStored Procedure
Stored Procedure
 
veracruz
veracruzveracruz
veracruz
 
veracruz
veracruzveracruz
veracruz
 
veracruz
veracruzveracruz
veracruz
 
veracruz
veracruzveracruz
veracruz
 
Lecture6 display data by okello erick
Lecture6 display data by okello erickLecture6 display data by okello erick
Lecture6 display data by okello erick
 
Presentation1
Presentation1Presentation1
Presentation1
 
Drupal Development (Part 2)
Drupal Development (Part 2)Drupal Development (Part 2)
Drupal Development (Part 2)
 
PHP and Rich Internet Applications
PHP and Rich Internet ApplicationsPHP and Rich Internet Applications
PHP and Rich Internet Applications
 
PHP and Mysql
PHP and MysqlPHP and Mysql
PHP and Mysql
 
Php
PhpPhp
Php
 
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQLPemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
 
Php mysq
Php mysqPhp mysq
Php mysq
 
PHP with MySQL
PHP with MySQLPHP with MySQL
PHP with MySQL
 

Dernier

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 

Session8

  • 1. PHP+MYSQL projetcsoft.biz F F ก ก ก F MySQL F PHP
  • 2. 1. ก ก username password กF ก F MySQL $dbUname="Enter your MySQL username."; $dbPword="Enter your MySQL Password."; $dbHost="Enter your MySQL sever name."; $dbName="Enter your MySQL sever name."; $link=mysql_connect($dbHost,$dbUname,$dbPword); mysql_select_db($dbName,$link); mysql_query('SET CHARACTER SET utf-8'); mysql_query('SET collation_connection utf8_unicode_ci'); projetcsoft.biz F F ก
  • 3. 2. F SQL F MySQL $sql = " sql "; $result=mysql_query($sql); mysql_close($link); F ก ก F $result projetcsoft.biz F F ก
  • 4. 3. F F F ก MySQL ก F 2. ก SQL ˈ F F ( Select ) F F mysql_featch_array() F ก $result $resultArray=mysql_featch_array($result); projetcsoft.biz F F ก
  • 5. F F $sql = "SELECT name,price FROM product"; $result=mysql_query($sql); mysql_close($link); $resultArray=mysql_featch_array($result);$resultArray=mysql_featch_array($result); echo $resultArray[0]; name echo $resultArray[1]; price echo $resultArray["name"]; name echo $resultArray["price"]; price ก F F ก projetcsoft.biz F F ก
  • 6. ก F F ก F F ก F product ก ก F ก F ก F F loop while F F $resultArray=mysql_featch_array($result);$resultArray=mysql_featch_array($result); while($resultArray=mysql_featch_array($result)) { echo $resultArray["name"]; echo $resultArray["price"]; } F ก F F ก product F projetcsoft.biz F F ก
  • 7. ก F MySQL F ˈ Function ก ก ก F F Function function runSqlQuery($sql){ $dbUname="Enter your MySQL username.";$dbUname="Enter your MySQL username."; $dbPword="Enter your MySQL Password."; $dbHost="Enter your MySQL sever name."; $dbName="Enter your MySQL sever name."; $link=mysql_connect($dbHost,$dbUname,$dbPword); projetcsoft.biz F F ก
  • 8. mysql_select_db($dbName,$link); mysql_query('SET CHARACTER SET utf-8'); mysql_query('SET collation_connection utf8_unicode_ci'); ก F MySQL F ˈ Function $result=mysql_query($sql); mysql_close($link); return $result; } projetcsoft.biz F F ก
  • 9. ก function F กF code F F F ก F $sql = "SELECT name,price FROM product"; $result=runSqlQuery($sql); ก F MySQL F ˈ Function $result=runSqlQuery($sql); while($resultArray=mysql_featch_array($result)) { echo $resultArray["name"]; echo $resultArray["price"]; } projetcsoft.biz F F ก
  • 10. ก F F ก MySQL Tag Table <table> <tr> <td> F </td> <td> </td> </tr></tr> <?PHP $sql = "SELECT name,price FROM product"; $result=runSqlQuery($sql); while($resultArray=mysql_featch_array($result)) { ?> projetcsoft.biz F F ก
  • 11. <tr> <td> <?PHP echo $resultArray["name"]; ?> </td> <td> ก F F ก MySQL Tag Table <td> <?PHP echo $resultArray["price"]; ?> </td> </tr> <?PHP } ?> projetcsoft.biz F F ก
  • 12. <select name="select_product" > <?PHP $sql = "SELECT id,name FROM product"; $result=runSqlQuery($sql); while($resultArray=mysql_featch_array($result)) { ?> ก F F ก MySQL Tag Select { ?> <option value="<?PHP echo $resultArray["id"]; ?>" > <?PHP echo $resultArray["name"]; ?> </option> <?PHP } ?> F F F F ˈ projetcsoft.biz F F ก