Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how do i make this work?

    how do i make this work <?php echo 'http://www.vc-source.com/newvcsource/screenshots.php?image=downloads/'.$cid;'/'.$img_file_name; ?>
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    What's it meant to do and what is $cid and $image_file_name?

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    its php...
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts


    Ok, I'll ask again

    What is it meant to do?

    What are $cid and $image_file_name, where are you getting the values of them from?

    What isn't working?

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    does it really matter?
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #6
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Well yeah, can't help if I don't know what I'm supposed to be helping you with

  • #7
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    im saying i think there is something wrong witht the script i gave u is there any problems in there as i am new to php
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #8
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Take the semi-colon out from here
    PHP Code:
    '.$cid;' 
    Replace the ; with .

    And please give some error or say what it's meant to do when you ask for help. Just saying how do i make this work when no one knows what it's meant to do is not gonna get you help.

    http://www.codingforums.com/postguide.htm
    Last edited by Nightfire; 11-16-2003 at 08:04 PM.

  • #9
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/vcsource/public_html/newvcsource/download/test2.php on line 35
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #10
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks very much and sorry for not explaining myself
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #11
    New Coder
    Join Date
    Sep 2003
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you want to use a $variable inside of a string then use double quotes

    "http:// or whatever=" . $cid . "some text"

    if you use '' it will show up exactly as you typed it $cid

  • #12
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by thickandthin
    its php...
    roflmao
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •