Hi PHP-experts,
i have a big problem.
<?
//ranksave.php
$result = mysql_query("select * from ny_artikler where
kategori = '$select' order by 'pos'");
while($row = mysql_fetch_array($result)) {
mysql_query("update ny_artikler set pos = '$'.$row[id].''
where id = '$row[id]'");
$var= "$"+$row[id];
echo("$var");
}
?>
What i'm trying to do is to Combine to the Content of $row[id] with an other var.
Lets say that $row[id] contains: 1
then i want to echo the var $1
If the number in $row[id] is: 423
i want to make an echo of the var: $423
i tryed with this code :
$var= "$"+$row[id];
echo("$var");
But the result end of in a text $1 <-> not the content of the original var $1
ex. if $1 contains: "hey dude"
the script i try to make myslef only write the text: $1 - where it schould write: "Hey dude"
hope somebody out there can help me 🙂
Thx
Toxic