IV Congress of Belarusian Physicists 24–26 April 2013, Minsk, Belarus |
|||
             RU EN |
|
||
• Home • Programme • List of Participants • Organizers&Committees • Registration • Fees • Symposium •Belarusian-Swedish-Ukrainian Scientific Workshop |
$d_host="localhost";
$d_login="root";
$d_db="congress2013";
$d_password="miscellaneous";
mysql_connect($d_host, $d_login, $d_password) or die("Нет коннекта к базе данных. Пожалуйста, напишите вебмастеру.");
mysql_select_db($d_db) or die("Нет такой \"".$d_db."\" таблицы в базе данных\n");
$result = @mysql_query("SET NAMES cp1251;");
$g=0;
$n1=1;
$result=@mysql_query("SELECT * FROM workshop");
$rows=@mysql_num_rows($result);
echo "Workshop "; for ($id=0;$id<$rows;$id++) { $sname=mysql_result($result,$id,3); $name=mysql_result($result,$id,2); echo $n1; echo ") $sname $name "; $n1=$n1+1; } $result=@mysql_query("SELECT * FROM mail order by sname"); $rows=@mysql_num_rows($result); echo "Конгресс "; for ($id=0;$id<$rows;$id++) { $email=mysql_result($result,$id,1); $sname=mysql_result($result,$id,2); $name=mysql_result($result,$id,3); $type=mysql_result($result,$id,5); $oname=mysql_result($result,$id,4); $section=mysql_result($result,$id,7); $time=mysql_result($result,$id,8); $title=mysql_result($result,$id,9); $g=$g+1; $arr[$g]="$sname $name $oname"; $arr2[$g]="$sname $name $oname"; for($id2=0;$id2<$g;$id2++) { if($arr[$g]==$arr2[$id2]) { $arr3[$g]=$g; } } if($g!=$arr3[$g]) { echo $n1; echo ") $arr[$g] "; $n1=$n1+1; } } ?> |
||
|