[PHP-users 34932] 【ご相談】WEB上でクリックしてもページが開かない
Masato Yokoi
m-yokoi @ takasago-elec.co.jp
2010年 1月 18日 (月) 16:20:29 JST
$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 メーリングリストの案内