How are you getting $id?

Gerry

On 5/11/06, Adam Yusfan Edwin <[EMAIL PROTECTED]> wrote:
>
> hi...
>
> i have this code in my website
>
> ==========================================
>                               <?
>                                     switch ($id)
>                                     {
>                                     case $id < 1;
>                                     $id  = 1;
>                                     echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>
>                                     case "":
>                                     echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>
>                                        case "1":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                        case "2":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                        case "3":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                        case "4":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                        case "5":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                        case "6":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                     case "7":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                     case "8":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                     case "9":
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>                                     case $id > 9:
>                                     $id = 9;
>                                        echo "<script>document.write('<img
> src="" width=\"300\"
> height=\"427\">');</script>";
>                                        break;
>
>                                     }
>                                     ?>
>                                     </div></td>
>
>                       </tr>
>                     </table>
>                     <p align="center"><a href="" echo
> $id - 1;?>">back</a> | <a
> href="" | <a
> href="" echo $id + 1;?>">next </a></p>
>
> ========================================================
>
> the function is if visitor visit pranikah.php file with id=1 then
> the foto-prewedding1.jpg will displayed.
>
> example :
> http://www.imelstudio.com/pranikah.php?id=1
>
> if id = 2 then the foto-prewedding1.jpg will displayed.
>
> the sample page is
> http://www.imelstudio.com/index.php?halaman=foto_pranikah
>
> the url contain the thumbnail of images, if you click then the
> pranikah.php will open with the large images.
>
> but its not working??? the images always displaying thr
> foto-prewedding1.jpg image. the $id dont work :(
>
> please help
>
>
> best regards
>
> adam
>
>
>
>
>
>
>
>
>
>  The php_mysql group is dedicated to learn more about the PHP/MySQL web
> database possibilities through group learning.
>
>
>
>  SPONSORED LINKS
>   American general life and accident insurance company<http://groups.yahoo.com/gads?t=ms&k=American+general+life+and+accident+insurance+company&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=Kzn1J6ZDdsfc3f-9JZ-bKQ>  American
> general life insurance company<http://groups.yahoo.com/gads?t=ms&k=American+general+life+insurance+company&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=q5Z_Gheyyf5dB3KHCkTGOw>  American
> general life<http://groups.yahoo.com/gads?t=ms&k=American+general+life&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=1O42IK5r5LJ1BBWLyTAAKA>   American
> general mortgage<http://groups.yahoo.com/gads?t=ms&k=American+general+mortgage&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=AC-EcyrN2MPgqHTxt6lmKg>  American
> general life insurance<http://groups.yahoo.com/gads?t=ms&k=American+general+life+insurance&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=P8vNlXr7QopQQ3tGIepE4Q>  Computer
> internet security<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+security&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=OCFX-MPv3cQROoYDEaexxA>
>  ------------------------------
> YAHOO! GROUPS LINKS
>
>
>    -  Visit your group "php_mysql<http://groups.yahoo.com/group/php_mysql>"
>    on the web.
>
>    -  To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
>    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>    Service <http://docs.yahoo.com/info/terms/>.
>
>
>  ------------------------------
>



--
Gerry
http://dev.danen.org/


[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.



SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life
American general mortgage American general life insurance Computer internet security


YAHOO! GROUPS LINKS




Reply via email to