Bekmurod
MrShahzodbek,
Kod · PHP19 qator
$hosttype = hosting;

    $query = sprintf("SELECT cost, servername FROM tarifs WHERE vid = '%s' ORDER BY id ASC LIMIT 3",

    mysql_real_escape_string($hosttype));

    $result = mysql_query($query);



$b=0; $narxi=array();



    while ($row = mysql_fetch_assoc($result)) {

$b++;

$narxi[$b]=$row['cost'];}  ?>

buni faylni yuqorisiga yozasiz kegin faylni pastida hoxlagan joyida
Kod · PHP1 qator
echo '1-tarif '.$narxi['1'];

bo'ldi