phpプログラマーを目指せ

背景
投稿者投稿者balance kenいいね9お気に入り登録1
プレイ回数9023難易度(3.8) 935打 長文
タグphp
phpの構文と日本語の混在

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(<?php)

<?php

($res = ””;)

$res = "";

($user= ’root’;)

$USER= 'root';

($pw= ’dai’;)

$PW= 'dai';

($dnsinfo=)

$dnsinfo=

(”mysql:dbname=salesmanagement;host=localhos)

"mysql:dbname=salesmanagement;host=l

(t;charset=utf8”;)

t;charset=utf8";

($pdo = new pdo($dnsinfo,$user,$pw);)

$pdo = new PDO($dnsinfo,$USER,$PW);

(if(isset($_post[’update’])){)

if(isset($_POST['update'])){

(try{)

try{

($sql = ”select * from goods where)

$sql = "SELECT * FROM goods WHERE

(goodsid=?”;)

GoodsID=?";

($stmt = $pdo->prepare($sql);)

$stmt = $pdo->prepare($sql);

($array = array($_post[’id’]);)

$array = array($_POST['id']);

($row = $stmt->fetch(pdo::fetch_assoc);)

$row = $stmt->fetch(PDO::FETCH_ASSOC

($goodsid = $row[’goodsid’];)

$GoodsID = $row['GoodsID'];

($goodsname = $row[’goodsname’];)

$GoodsName = $row['GoodsName'];

($price = $row[’price’];)

$Price = $row['Price'];

(}catch(exception $e){)

}catch(Exception $e){

($res = $e->getmessage();)

$res = $e->getMessage();

など

(})

}

(})

}

(try{)

try{

($sql = ”select * from goods”;)

$sql = "SELECT * FROM goods";

($stmt = $pdo->prepare($sql);)

$stmt = $pdo->prepare($sql);

($array = null;)

$array = null;

($stmt->execute($array);)

$stmt->execute($array);

($res = ”<table>¥n”;)

$res = "<table>\n";

(while($row =)

while($row =

($stmt->fetch(pdo::fetch_assoc)){)

$stmt->fetch(PDO::FETCH_ASSOC)){

($res .= ”<tr><td>” .$row[’goodsid’])

$res .= "<tr><td>" .$row['GoodsID']

(.”</td><td>” .$row[’goodsname’] .”</td>”;)

."</td><td>" .$row['GoodsName'] ."</

($res .= <<<eof)

$res .= <<<eof

(<td><form method=’post’ action=’’>)

<td><form method='post' action=''>

(<input type=’hidden’ name=’id’)

<input type='hidden' name='id'

(value=’{$row[’goodsid’]}’>)

value='{$row['GoodsID']}'>

(<input type=’submit’ name=’update’ value=’text’>)

<input type='submit' name='update' v

(</form></td>)

</form></td>

(eof;)

eof;

($res .= ”</tr>¥n”;)

$res .= "</tr>\n";

(})

}

($res .= ”</table>¥n”;)

$res .= "</table>\n";

(}catch(exception $e){)

}catch(Exception $e){

($res = $e->getmessage();)

$res = $e->getMessage();

(})

}

(?>)

?>

問題文を全て表示 一部のみ表示 誤字・脱字等の報告

balance kenのタイピング

オススメの新着タイピング

タイピング練習講座 ローマ字入力表 アプリケーションの使い方 よくある質問

人気ランキング

注目キーワード