現状はエラーも何も出ない状態で困っています。
1ページで”post”で2ページ目に渡しているはずなので…
データ移行するかと思ったのですがうまくいかず…と言うような状態です。
ご助言いただければ非常に助かります。
宜しくお願い致します。
php、sql
11ページ 2 3<?php 4session_start(); 5$_SESSION = $_POST; 6?> 7<!DOCTYPE html> 8<html> 9<head> 10<meta charset="UTF-8"> 11<title>**</title> 12 <form action="/phpkiso/DB/DB/updata.php" name="form1" method="post"> 13 <link rel="stylesheet" href="DB_color.css" class="e"> 14 <style type="text/css"> 15 <!-- 16 body {line-height: 130%;} 17 --> 18 </style> 19 <style type="text/css"> 20 <!-- 21 body{ 22 line-height : 170%; 23 } 24 or 25 p{ 26 line-height : 170%; 27 } 28 --> 29 </style> 30</head> 31<form action="DB_top.php" method="post"> 32<center>**</center> 33<body background="back.gif" bgcolor="#ccc" class="a"> 34<br /> 35<body> 36<?php 37 $dsn = 'mysql:host=localhost;dbname=customer;charset=utf8'; 38 $user = 'root'; 39 $password = ''; 40 41 $dbh = new PDO($dsn, $user, $password); 42 $dbh->query('SET NAMES utf8'); 43 $sqlcmd = "SELECT * FROM `customer_Payment`"; 44 $statement = $dbh->prepare($sqlcmd); 45 $statement->execute(); 46 47if($statement->execute()){ 48 $row_count = $statement->rowCount(); 49 while($row = $statement->fetch()){ 50 $rows[] = $row;} 51}else{ 52 $errors['error'] = "検索失敗しました。"; 53} 54 55$dbh = null; 56?> 57<br /> 58<fieldset> 59 <!-- <?php foreach($rows as $row){ ;?> --> 60 <br /> 61 [名 前]<input type="text" value="<?php echo $row['name']; ?>" class="d-na"> 62 63 <input type="submit" name="/phpkiso/DB/DB/updata.php" value="変更"> 64 <input type="button" name="delate" value="削除"> 65<!-- <?php }?> --> 66</fieldset> 67<br /> 68<br /> 69<input type="button" onclick="location.href='./DB_top.php'" value="トップ戻る"> 70<!-- <input type="submit" value=変更 name="/phpkiso/DB/DB/updata.php"></td></tr> 71 --> 72</body> 73</html> 74 752ページ 76 77<?php 78 session_start(); 79?> 80<!DOCTYPE html> 81<html> 82 <head> 83 <meta charset="UTF-8"> 84 <title>**</title> 85 <link rel="stylesheet" href="DB_color.css" class="e"> 86 <style type="text/css"> 87 <!-- 88 body {line-height: 130%;} 89 --> 90 </style> 91 <style type="text/css"> 92 <!-- 93 body{ 94 line-height : 170%; 95 } 96 or 97 p{ 98 line-height : 170%; 99 } 100 --> 101 </style> 102</head> 103<form action="../DB_top.php" method="post"> 104 <center>**</center> 105 <body background="back.gif" bgcolor="#ccc" class="a"> 106 <br /> 107 <?php 108 print $name; 109 print ['name']; 110 ?> 111 <fieldset> 112 <br /> 113 <fieldset> 114 <br /> 115 <tr> 116 <td>コ ー ド</td> 117 <td><input type="text" value="<?php echo $post['code']; ?>" class="d-i"></td><br /> 118 <td>名 前</td> 119 <td><input type="text" value="<?php echo $post['name']; ?>" class="d-i"></td><br /> 120 121 122 </fieldset> 123 <?php 124 125 ?> 126 <!-- <?php }?> --> 127</fieldset> 128<br /> 129<br /> 130<input type="button" onclick="location.href='../DB_top.php'" value="トップ戻る"> 131</body> 132</html> 133 134 135
回答2件
あなたの回答
tips
プレビュー