Hello everyone.
This is my problem.
I have some links in a page like this:
book.php?num=1
book.php?num=2
book.php?num=3
...
In file book.conf.php
$title_1 = '111111111111';
$smdes_1 = '11111111111';
$cost_1 = '11111111111111';
$description_1 = '11111111111111';
$pic_1 = '2.jpg';
$pic_1 = '2tn.jpg';
$title_2 = '222222222222222222222';
$smdes_2 = '222222222222';
$cost_2 = '2222222222222222';
$description_2 = '2222222222222';
$pic_2 = '2.jpg';
$pic_2 = '2tn.jpg';
$title = '$title'+'$HTTP_GET_VARS["num"]';
$smdes = '$smdes'+'$HTTP_GET_VARS["num"]';
$cost = '$cost'+'$HTTP_GET_VARS["num"]';
$description = '$description'+'$HTTP_GET_VARS["num"]';
$pic = '$pic'+'$HTTP_GET_VARS["num"]';
$pic_tn = '$pic_tn'+'$HTTP_GET_VARS["num"]';
And in book.php
include "book.conf.php"
.....SOME HTML TAGS.....
<?php $title ?>
.....SOME HTML TAGS.....
etc...
The problem (maybe obvious!!!) is that if the clicked link is book.php?num=1 the $title never takes the value of $title_1.The error is here:
$title = '$title_'+'$HTTP_GET_VARS["num"]';
How can this be to make it work?
Thanks in advance everyone...