[PHP-users 13847] Re: SQL$BJ8$N:n@.(B
tamura
php-users@php.gr.jp
Sat, 08 Mar 2003 17:46:51 +0900
$BEDB<$G$9!"$^$$$I!#(B
$B%-%?%`%i$5$s!"$"$j$,$H$&$4$6$$$^$9!#$*0~MM$G$&$^$/$$$-$=$&$G$9!#(B
> $B<B9TIt$K=q$$$F$&$^$/9T$C$?$N$O!"(B
>
> > $set .= (strlen($dat) == 0)? "{$key}=NULL,": "{$key}='${$dat}',";
>
> $B$N!V(B${$dat}$B!W$G8F$S=P$5$l$kJQ?t$,4X?t$NCf$+$i$O8+$($J$+$C$?$+$i$@$H(B
$B!!$3$&$$$&$3$H$r%;%C%7%g%s$,@Z$l$k$H8@$&$N$G$9$+!#(B
> $B;W$$$^$9!#4X?tFb$G(Bglobal$BDj5A$9$l$P8+$($k$H;W$$$^$9$,!"$=$&$9$k$H(B
> $B4X?t2=$9$k%a%j%C%H$,L5$/$J$C$F$7$^$$$^$9$M!#(B
$B!!$O$$!"$=$&$G$9!#(B
>
> $B<B9T$9$k%9%/%j%W%H$N@hF,$K(B
>
> error_reporting(E_ALL);
>
> $B$rDI2C$9$l$P!"L$Dj5AJQ?t$N%(%i!<$H$+A4$F$N%(%i!<$,8+$l$^$9$h!#(B
$B!!5-F~$9$k>l=j$rA*$P$J$$!JEvA3$G$9$,!K$H!"B?$/$N7Y9p$K6C$+$5$l$^$7$?!#$H(B
$B$j$o$1!"(BINSERT $BMQ$K;H$&(B
<input type="text" name="category_code" value="<?=cnv_dispstr($myrow["category_code"])
?>">
$B$K(B
<br><b>Warning</b>: Undefined variable: category_code in <b>c:\Program
Files\Apache Group\Apache2\htdocs\*****\****.php</b> on line<b>143</b><br>
$B$H$+!"(B
<input type="text" name="category_name" value="<?=cnv_dispstr($myrow["category_name"]) ?>">
$B$K!"(B
<br><b>Warning</b>: Undefined variable: category_name in <b>c:\Program
Files\Apache Group\Apache2\htdocs\*****\****.php</b> online<b>144</b><br>
$B$,!"=P$F$/$k$N$K$O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It$G(B
> DB$B$K@\B3$7$F4X?t$K$O(B$conn$B$rEO$7$?J}$,$$$$$G$9!#(B
> ($B$^$?$O%/%i%92=$r8!F$$9$k$N$b$*4+$a$G$9(B)
>
> $B$3$N$^$^$@$H4X?t$,(B1$B%W%m%0%i%`$NCf$G(B100$B2s8F$S=P$5$l$k$H(BDB$B@\B3$,(B100$B2s(B
> $BH/@8$7$^$9!#(B
$B!!$O$$!"G<F@$G$9!#%b%8%e!<%k2=$,$G$-$?$H$-$O!"$=$N$h$&$K$7$^$9!#(B
$B!!$$$D$bD9J8$G$9$,MF<O$/$@$5$$!#(B
$B!!$3$N(BML$B$G!"3X$s$@$3$H$G$9$,!"!V<ALd$r$9$k2aDx$,!"0lHVLr$KN)$C$?!W$3$H$G(B
$B$9!#$J$I$H!"?=$;$P%"%I%P%$%9$r$$$?$@$$$?J}$?$A$+$i!"$*<8$j$r<u$1$=$&$G$9!#(B
$B!!L$CN$N$3$H$O!"%"%I%P%$%9$+$iF@$i$l$^$9$,!"<+J,$NJ}$N@0M}$b!"F1$8$/I,MW(B
$B$G$9!#!V<ALd$N2aDx$G!"@0M}$,$G$-$?!W$H!"$"$j$,$?$/;W$C$F$*$j$^$9!#(B
>
>
> =================<F.Kitamura>=================
> E-Mail : fkit@sys238.jp
> ---
> The greatest enemy of man is alcohol.
> But, The Bible tells us to love our enemy.
> ==============================================
>
> _______________________________________________
> PHP-users mailing list
> PHP-users@php.gr.jp
> http://ns1.php.gr.jp/mailman/listinfo/php-users