php prepare PDO

背景
投稿者投稿者パンサーfkいいね3お気に入り登録1
プレイ回数2334難易度(4.0) 339打 長文
自分学習用

関連タイピング

問題文

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

($dbh->begintransaction();)

$dbh->begintransaction();

($stmt=$dbh->prepare(”insert into registry)

$stmt = $dbh->prepare("INSERT INTO R

((name,value)values(?,?)”);)

$stmt = $dbh->prepare("INSERT INTO R

($stmt->bindparam(1,$name,pdo::param_str);)

$stmt->bindParam(1, $name);

($stmt->bindparam(2,$value,pdo::param_int);)

$stmt->bindParam(2, $value);

($name=’one’;)

$name = 'one';

($value=1;)

$value = 1;

($stmt->execute();)

$stmt->execute();

($id=$dbh->lastinsertid();)

$dbh->lastInsertId();

($dbh->commit();)

$dbh->commit();

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

while(true):

(echo $row[’name’];)

echo $rec['name'];

(endwhile;)

endwhile;

($dbh->rollback();)

$dbh->rollBcck();

◆コメントを投稿

※誹謗中傷、公序良俗に反するコメント、歌詞の投稿、無関係な宣伝行為は禁止です。

※ランキング登録した名前で投稿されます。

※コメントは日本語で投稿してください。

※歌詞は投稿しないでください!