SlideShare uma empresa Scribd logo
1 de 12
Baixar para ler offline
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 ก

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Semelhante a Session8

Semelhante a 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
 

Último

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
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
 
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
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
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
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"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
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
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
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
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
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Último (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
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
 
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
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
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
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"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
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
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!
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
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
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

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 ก