Ok, solved.
Now I have a problem with PHP include, I can show the variables but I can't show the echo from the php file, what can I do ?
http://www.bodyweb.it/prodotti.php
__________________________________________________ ________________________
What a mess, automerged

__________________________________________________ ________________________
Quote:
Originally Posted by Samouel
Hum... I have a question
In my database, I have 5 records (5 names of country) and I would like to list them in the 'test.php' page.
My test.php file :
Code:
$name = $db->query_read_slave("SELECT name FROM country");
while ($country = $db->fetch_array($name))
{
$vbphrase[name] = $country['name'];
}
In the template, I indicate :
But I have just one name of country which is listed !
What I have to do to list all names of country ?
Thanks :rambo:
|
Code:
$name = $db->query_read_slave("SELECT name FROM country");
$i=0;
while ($country = $db->fetch_array($name))
{
$vbphrase[$i] = $country['name'];
$i++;
}
Code:
$vbphrase[1]
$vbphrase[2]
$vbphrase[3]
$vbphrase[4]
$vbphrase[5]
May be ?