View Full Version : how do i make this work?

11-16-2003, 06:27 PM
how do i make this work <?php echo 'http://www.vc-source.com/newvcsource/screenshots.php?image=downloads/'.$cid;'/'.$img_file_name; ?>

11-16-2003, 06:41 PM
What's it meant to do and what is $cid and $image_file_name?

11-16-2003, 06:46 PM
its php...

11-16-2003, 06:49 PM

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?

11-16-2003, 06:49 PM
does it really matter?

11-16-2003, 06:51 PM
Well yeah, can't help if I don't know what I'm supposed to be helping you with

11-16-2003, 06:53 PM
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

11-16-2003, 07:00 PM
Take the semi-colon out from here


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.


11-16-2003, 07:03 PM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/vcsource/public_html/newvcsource/download/test2.php on line 35

11-16-2003, 07:07 PM
thanks very much and sorry for not explaining myself

11-17-2003, 04:13 PM
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

11-17-2003, 04:52 PM
Originally posted by thickandthin
its php... roflmao :D

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum