Current location: Hot Scripts Forums » Programming Languages » PHP » hey there, im creating links that arnt working any help?


hey there, im creating links that arnt working any help?

Reply
  #1 (permalink)  
Old 10-03-05, 04:09 PM
0o0o0 0o0o0 is offline
Wannabe Coder
 
Join Date: Jul 2005
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
hey there, im creating links that arnt working any help?

Im creating links as in say

ww w.bla.com/blabla/bla/database#_2.jpg
ww w.bla.com/blabla/bla/database#_3.jpg
ww w.bla.com/blabla/bla/database#_4.jpg

or

ww w.bla.com/blabla/bla/say1234_2.jpg
ww w.bla.com/blabla/bla/say1234_3.jpg
ww w.bla.com/blabla/bla/say1234_4.jpg

with me?? ok well "say1234" is in the database..

ww w.bla.com/blabla/bla/$databasecolumnfind_2.jpg
ww w.bla.com/blabla/bla/$databasecolumnfind_3.jpg
ww w.bla.com/blabla/bla/$databasecolumnfind_4.jpg

for some reason the use of "_" butted up against $databasecolumnfind and 2.jpg or 3.jpg etc etc on the right of it.. makes the link turn out like so..

ww w.bla.com/blabla/bla/.jpg

help me out why wont it accept the "_"???

thanks guys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-03-05, 05:32 PM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
CONCAT them:

PHP Code:

echo "www.bla.com/blabla/bla/".$databasecolumn ."_2.jpg"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-03-05, 05:34 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Instead of doing this:

PHP Code:

<?
echo "ww w.bla.com/blabla/bla/$databasecolumnfind_2.jpg";
?>
Did you try doing this?
PHP Code:

<?
echo "ww w.bla.com/blabla/bla/".$databasecolumnfind."_2.jpg";
?>
If not give it a shot.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 10-03-05, 05:36 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Hehehe.... nekeno .... I guess great minds think alike.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 10-03-05, 07:37 PM
0o0o0 0o0o0 is offline
Wannabe Coder
 
Join Date: Jul 2005
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
You guys amaze me on the speedy replies! thanks again!

gonna go read up on "CONCAT"? also.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need a cycle links script free or paid charley45 Script Requests 0 08-17-05 06:17 AM


All times are GMT -5. The time now is 10:27 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.