[PHP-users 34933] Re: 【ご相談】WEB上でクリックしてもページが開かない

Yoshiaki Yanagimoto yanagimoto @ ask-art.jp
2010年 1月 18日 (月) 16:39:44 JST


$BLxK\$G$9!#(B

$B$I$&$b(BPHP$B$H4X78$J$$$h$&$J5$$,$7$F$J$j$^$;$s$,!&!&!&(B
(1) target="_blank" $B$rF~$l$k(B
(2) htmlspecialchars()$B$rDL$7$F$+$iI=<($5$;$k(B
$B$H$+$G$7$g$&$+!)(B

(2010/01/18 16:20), Masato Yokoi wrote:
> $B$O$8$a$^$7$F!"2#0f$H?=$7$^$9!#(B
> 
> php$B$rJY6/$7;O$a$F(B2$B%v7n$N<T$G$9!#$^$@$^$@CN$i$J$$$3$H$bB?$/(B
> $B$4LBOG$r$*3]$1$9$k$3$H$b$"$k$+$H;W$$$^$9$,!"59$7$/$*4j$$$7$^$9!#(B
> 
> $B!Z:$$C$F$$$k$3$H![(B
> Mysql$B$K<h$j9~$s$@%G!<%?$r(Bphp$B$GFI$_=P$7!"(BWEB$B>e$KI=<($9$k$H$3$m$^$G$O=PMh$?$N(B
> $B$G$9$,!"0J2<(B2$BE@$G:$$C$F$$$^$9!#(B
> $B-!Nc$($P!"(Bhttp://www.exampl.com/test.php?test_id=1$B$N$h$&$J%j%s%/$@$H(B
> $B%/%j%C%/$7$F$b%Z!<%8$,3+$-$^$;$s!#$^$?!"%/%j%C%/$7$?%O%$%Q!<%F%-%9%H$O(B
> $B:8>e$K0\F0$7$FI=<($5$l$F$$$^$9!#$?$@!"1&%/%j%C%/$G!V?7$7$$%Z!<%8$G3+$/!W$d(B
> $B!V?7$7$$%?%0$G3+$/!W$G3+$/$H%j%s%/@h$r3+$/$3$H$,=PMh$^$9!#(B
> $B-"I=<(9`L\$,$H$3$m$I$3$m7g$1$k!#(B
> $B6qBNE*$K$O!"0J2<$N$h$&$J%W%m%0%i%`$G!"!V%+%F%4%j!W$d!V>&IJL>!W$,(B
> WEB$BI=<($N;~$K7g$1$k!#(B
> <?
> $sql = " SELECT * FROM tb1 ";
> $res = mysql_query( $sql );
> while( $row = mysql_fetch_array( $res ) ){
> ?>
> $B!A(Bhtml$B!A(B
> <?php print( $row[category] ); ?>
> $B!A(Bhtml$B!A(B
> <?php print( $row[url] ); ?>
> $B!A(Bhtml$B!A(B
> <?php print( $row[name] ); ?>
> $B!A(Bhtml$B!A(B
> <?php
> }
> mysql_result_free( $res );
> ?>
> 
> $B!Z4D6-!)![(B
> $B%l%s%?%k%5!<%P!<!J(Bfc2$B$N%l%s%?%k%5!<%P!<(BLite
> http://fc2-rentalserver.com/howmuch.html$B!K(B
> Apache/2.2.11 (Unix)
> mod_ssl/2.2.11
> OpenSSL/0.9.8k
> PHP/5.2.9 with Suhosin-Patch
> mod_perl/2.0.2 Perl/v5.8.8
> MySQL $B%/%i%$%"%s%H$N%P!<%8%g%s(B: 5.1.33
> PHP $B3HD%(B: mysql
> 
> 
> $B!Z<ALd![(B
> $B>e5-:$$C$F$$$k$3$H$N-!-"$N$I$N$"$?$j$,860x$K$J$k$N$+(B
> $B8!F$$,$D$1$l$J$$$N$G!">\$7$$J}$K!"$3$3$iJU$,2x$7$$$H$$$&$3$H$r(B
> $B%"%I%P%$%9D:$1$?$i9,$$$G$9!#(B
> $B:#2s @ 8$^$l$F=i$a$F%l%s%?%k%5!<%P!<$G(Bphp$B$r;H$C$F$_$^$7$?!#(B
> $B%5!<%P!<$N @ _DjJQ99Ey$O;d<+?H$G$N0l @ Z9T$C$F$*$j$^$;$s$N$G(B
> $B2?$+ @ _Dj$rJQ$($J$$$H$$$1$J$$$N$+$J$H;W$C$F$O$$$k$N$G$9$,!&!&!&!#(B
> 
> 
> 
> 
> _______________________________________________
> PHP-users mailing list  PHP-users @ php.gr.jp
> http://ml.php.gr.jp/mailman/listinfo/php-users
> PHP$B=i?4<T$N$?$a$N%Z!<%8(B - $B<ALd$9$kA0$K$O$3$A$i$r$*FI$_$/$@$5$$(B
> http://oldwww.php.gr.jp/php/novice.php3



PHP-users メーリングリストの案内