|
трабла сщ скриптом
|
|||
---|---|---|---|
#18+
скрипт: #!/usr/bin/perl use CGI; print "Content-Type:text/html\n\n"; print "<html><body><h2>test</h2><hr>\n"; use dbi; use Mysql; $dbh = Mysql->connect($localhost, $ddd, $root); $dbh->selectdb("ddd"); $sth = $dbh->query("select * from records"); @arr = $sth->FetchRow; $count = $arr; # Figure out how many elements. for ($i=0;$i<=$count;$i++) { print "br".$arr[$#i]; } выдает только последнюю запись таблицы, а должен весь столбец, может подскажете в чем дело? ... |
|||
:
Нравится:
Не нравится:
|
|||
12.04.2003, 11:59 |
|
|
start [/forum/topic.php?fid=23&fpage=533&tid=1480630]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
58ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
others: | 240ms |
total: | 380ms |
0 / 0 |