MrShahzodbek
Сирожиддин, Shu o'xshamayabdi. Tushuna olmadim.
11 daqiqa 39 soniyadan keyin yozdi:
Kod · SQL21 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);

if (!$result) {

    $message  = 'Invalid query: ' . mysql_error() . "\n";

    $message .= 'Whole query: ' . $query;

    die($message);

}

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

echo $row['cost'];}  ?>

Ushbu koddan
Kod · SQL1 qator
<? echo $row['cost'];  ?>
ni 3 joyda qo'yib ko'rdim, ammo natija o'xshamayabdi.

Sahifa: https://uzhost.net/my/hottest.php