mysql:2386
From: Tomohiro Fukuda <Tomohiro Fukuda <fukut@xxxxxxxxxx>>
Date: Fri, 18 Aug 2000 23:33:27 +0900
Subject: [mysql 02386] クエリーが通らない
<html>
<head>
<meta http-equiv="Content-Language" content="ja">
<meta http-equiv="Content-Type" content="text/html; charset="x-euc-jp">
<title>☆☆【電脳卸】☆☆無料仕入れ!在庫不要!!</title>
</head>
<body background="sozai/bar02.gif" link="#FFFF00" vlink="#FFFF99">
<div align="center">
<center>
<table border="2" width="90%" background="sozai/w-02.jpg">
<tr>
<td width="100%" bgcolor="#000080">
<p align="center"><font color="#00FFFF"><b>無料仕入れ!在庫不要!!夢のビジネスここにあり!!</b></font></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" width="90%">
<tr>
<td width="37%">
<p align="center"><font color="#FFFF00"><img border="0"
src="sozai/sozai-hito/hito-01.gif" width="32"
height="90">
<img border="0" src="sozai/sozai-hito/hito-02.gif" width="32"
height="94"></font>
<img border="0" src="sozai/title01.gif" width="340" height="128">
<font color="#FFFF00"><img border="0"
src="sozai/sozai-hito/hito-013.gif" width="37"
height="92"></font>
<font color="#FFFF00"><img border="0"
src="sozai/sozai-hito/hito-011.gif" width="34" height="93"><img
border="0" src="sozai/sozai-hito/hito04.gif" width="33"
height="93"></font>
</td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" width="90%">
<font color="#000000">
<tr>
<td background="sozai/w-06.jpg">
<font size="6" color="#ffff00"><center>
<?
if ($submit==0) //0:販売店仮登録 1:卸会員仮登録
echo("販売店仮登録ありがとうございます。\n");
elseif ($submit==1)
echo("卸会員仮登録ありがとうございます。\n") ;
?>
</center></font>
</td>
</tr>
<tr>
<td background="sozai/w-08.jpg">
御登録ありがとうございます。<br>
近日中に開設のための本登録を行うために下の受付番号をどこかに写してく
ださいますようよろしくお願い致します。<br>
また、開設までの間、お知らせのメールやアンケートをお送りする場合がご
ざいますがそのときはよろしくお願い致します。
</td>
</tr>
</table>
<? //以下登録のためのプログラム
mysql_connect("localhost:3306", "nobody", "d-oroshi");
mysql_select_db("dennooroshi");
if ($submit==0): //販売店仮登録クエリ
echo("insert into kari_ec_reg (name, email, url, category)
values ('$name', '$email', '$url', `$category');\n");
//echo $url;
mysql_query (" insert into kari_ec_reg ( name, email, url, category )"
. "values ( '$name', '$email', '$url', '$category' ) " )
or die (" Invalid query ");
elseif ($submit==1): //卸会員仮登録クエリ
mysql_query (" insert into kari_oroshi_reg ( name, emal, url, category )
values ( '$name' , '$email' , '$url' , '$category' ) ")
or die ("Invalid query");
else: //普通は考えられないど念のため
echo ("*--* 予期せぬエラーです。*--*\n");
endif;
$number= mysql_insert_id(); //登録をしたクエリで生成されたidナンバーを取得
//以下は受け付けナンバーの表示メッセージ。
echo $name;
echo ("様の受付ナンバーは\n");
echo $number;
echo ("番です。<br> コピー&ペースト等で書き残しておいてください。\n");
?>
</div>
</body>
</html>
-> 2386 2000-08-18 23:33 [Tomohiro Fukuda <fuk] クエリーが通らない 2388 2000-08-19 11:19 ┣[Chiaki Tanaka <c_tan] 2389 2000-08-19 13:08 ┗[楠吉彦 <moredebu@xx]