Undo revision 21429365 by sysop

出典: 謎の百科事典もどき『エンペディア(Enpedia)』
ナビゲーションに移動 検索に移動

Symbol speedy delete vote.png
削除失敗

クールダウンを成功させるためのcssを起動しています[編集]

border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |ic = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff $変数='1';

$dbh = new PDO ('mysql:dbname=データベース名;host=ホスト名またはIPアドレス;charset=utf8;',ユーザ,パスワード,PDO属性); $sql = 'SELECT * FROM liked WHERE カラム名 = :バインド変数'; $変数2 = array(':バインド変数' => $変数);

$stmt = $dbh -> prepare($sql); $stmt -> execute($変数2);

echo '結果は'.$stmt->rowCount(); $変数='1';

$dbh = new PDO ('mysql:dbname=データベース名;host=ホスト名またはIPアドレス;charset=utf8;',ユーザ,パスワード,PDO属性); $sql = 'SELECT * FROM liked WHERE カラム名 = :バインド変数'; $変数2 = array(':バインド変数' => $変数);

$stmt = $dbh -> prepare($sql); $stmt -> execute($変数2);

echo '結果は'.$stmt->rowCount(); $変数='1';

$dbh = new PDO ('mysql:dbname=データベース名;host=ホスト名またはIPアドレス;charset=utf8;',ユーザ,パスワード,PDO属性); $sql = 'SELECT * FROM liked WHERE カラム名 = :バインド変数'; $変数2 = array(':バインド変数' => $変数);

$stmt = $dbh -> prepare($sql); $stmt -> execute($変数2);

echo '結果は'.$stmt->rowCount(); $変数='1';

$dbh = new PDO ('mysql:dbname=データベース名;host=ホスト名またはIPアドレス;charset=utf8;',ユーザ,パスワード,PDO属性); $sql = 'SELECT * FROM liked WHERE カラム名 = :バインド変数'; $変数2 = array(':バインド変数' => $変数);

$stmt = $dbh -> prepare($sql); $stmt -> execute($変数2);

echo '結果は'.$stmt->rowCount(); |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |ic = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info border-c = gray |id-c = brown |id-s = 9 |id-fc = <y<youtu>#ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |ic = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info = 最新border-c = gray |id-c = brown |id-s = 9 |id-fc = #ffffff |info-c = #ffffff |info-s = 9 |info-fc = #030003; |id = 44px |info

fo-c = #ffffff |info-s fo-c = #ffffff |info-s fo-// 関数の呼び出し require('file2.php');

// データベース接続情報 $dbh = new PDO ('mysql:dbname=データベース名;host=ホスト名またはIPアドレス;charset=utf8;',ユーザ,パスワード,PDO属性);

// SQL文の作成 $sql = 'SQL文'

$stmt = 関数($dbh, $sql); $変数 = $smtm -> rowCount(); file2.php

function 関数($dbh, $sql){ $stmt = $dbh -> prepare($sql); $stmt -> execute(); } return $stmt;

// returnした¥$stmtをfile1.phpに返します。 // SQL文の実行した結果($stmt)をrowCount()でCountし、$変数に格納します。

share


c = #ffffff |info-s fo-c = #ffffff |info-s fo-c = #ffffff |info-s

<youtube>




'結果:失敗^][編集]

'メインページに戻る