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

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
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
 
"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
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
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
 
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
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Dernier (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
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
 
"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
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
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
 
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
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

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 ก