D
D
Develm2015-12-07 11:06:32
PHP
Develm, 2015-12-07 11:06:32

Replacing Mysql values ​​from an array?

There is a code example:

$arr = array(1 => "PHP",
     2 => "MySQL",
     3 => "Apache");
while ( $show = mysql_fetch_array($sql)) {
//Подскажите пример чтобы значения(цифры) из бд заменялись на PHP,MySQl,Apache, или можно сылочку на примеры с описанием
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2015-12-07
@Develm

just substitute $arr[$show['type']]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question