Autor Zpráva
japlavaren
Profil
mám php script:

<?php
$number=$_GET['number'];

include('data_phrases/'.$number.'.php');

$write='<html><head><link rel="stylesheet" href="default.css"><title>'.$_[0].'</title></head> <body><a href="print.php?number='.$number.'" style="position: absolute; top: 5%; left: 5%;"><b><i>Print</i></b></a><table border="0" width="100%" height="100%"><tr>';
$size=GetImageSize('pictures/'.$number.'.jpg');

if($size[0]>$size[1])
{
$w=360;
$h=270;
}
elseif($size[0]<$size[1])
{
$w=270;
$h=360;
}
if($orientation==1)
{
$_1='<td width="50%" height="100%" align="center" valign="middle"><img src="pictures/'.$number.'.jpg" width="'.$w.'" height="'.$h.'"></td>';
$_2='<td width="50%" height="100%" align="center" valign="middle"><table cellspacing="10">';
}
elseif($orientation==2)
{
$_1='<td width="50%" height="100%" align="center" valign="middle"><img src="pictures/'.$number.'.jpg" width="'.$w.'" height="'.$h.'"></td>';
$_2='<td width="50%" height="100%" align="center" valign="middle"><table cellspacing="10">';
}

for($x=0;$x<=7;++$x)
{
$write=$write.'<embed name="mp3_'.$x.'" src="mp3/'.$number.'_'.$x.'.mp3" hidden autostart="false">';
}

for($y=0;$y<=7;++$y)
{
$_2=$_2.'<tr><td><a href="javascript: document.mp3_'.$y.'.play()"><img src="pictures/obrazok'.$y.'.png" border="0"></a></td><td><a href="javascript: document.mp3_'.$y.'.play()">'.$_[$y].'</a></td></tr>';
}

$write=$write.$_1.$_2.'</table></td></tr></table></body></html>';

echo $write;
?>

a súbor:

<?php $orientation="1"; $_[0]="HELLO!"; $_[1]="HALLO!"; $_[2]="SZIA!"; $_[3]="CIAO!"; $_[4]="HEI!"; $_[5]="SALUT!"; $_[6]="AHOJ!"; $_[7]="HOLA!"; ?>

ostatné sú nepodstatné. keď to otvorím doma na pc, je to ok, ale keď dám na server:

http://www.mlmfriends.sk/dictionary/phrase.php?number=1 je tam s každého iba začiatočné písmeno. prečo??
japlavaren
Profil
zmenil som premenné $_[$y] na $word[$y] a ide to ok
japlavaren
Profil
je to ok, takže konec
Toto téma je uzamčeno. Odpověď nelze zaslat.

0