[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-db
Subject:    [PHP-DB] Mail from GioMBG > adventure in a while cycle of a donkey with php and sql
From:       Gio MBG Canepa root <root () home ! 9records ! com>
Date:       2007-11-02 17:31:30
Message-ID: 200711021831.30118.root () home ! 9records ! com
[Download RAW message or body]

Hi All!
This is to write wiki code and insert near some dinamic link some names  
of "tracks", the dinamic link is generated but I don't know the way to change 
the var  "$TITOLO1" to "$TITOLO2" for retrive the next records 

I have in database:
TITOLO1 Pippo1
TITOLO2 Pippo2
TITOLO3 Pippo3
TITOLO4 Pippo4
TITOLO5 Pippo5
TITOLO6 Pippo6
TITOLO7 Pippo7
TITOLO8 Pippo8
TITOLO9 Pippo9

<?
$NTRACK = 3;
$count = 1;
while ($count <= $NTRACK) {
  echo "$count
#[[http://$LA_BEL/A/download.php?download=$LRA$count $TITOLO1]]<br />";
++$count;
}
?>

now I receive all but I don't know how to do to change the var "$TITOLO1" to 
+1 like to "TITOLO2" at every cycle.
1 #[[http://9records.com/A/download.php?download=161 Pippo1]]
2 #[[http://9records.com/A/download.php?download=162 Pippo1]]
3 #[[http://9records.com/A/download.php?download=163 Pippo1]]

I would like to make/see:
1 #[[http://9records.com/A/download.php?download=161 Pippo1]]
2 #[[http://9records.com/A/download.php?download=162 Pippo2]] <---
3 #[[http://9records.com/A/download.php?download=163 Pippo3]] <---

Suggestions, matches,?
Thanks respect
Yours donkey
GioMBG
-- 
Giņ "MBG" Canepa - E Mail: mbg at mbg.it
Phone & Fax +39 0541 985 737 - Mobile +39 393 33 567 07
http://www.mbg.it | http://www.9Records.com
Snail mail P.O. Box 59 / 47838 Riccione Italy

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic