![]() |
pre replace function
alright i am trying to do a radio chart system within my vb i have it as a iframe and everything is working cept for when i call the images.
%20 i need to generate that into the echo if there is a blank space. so http://www.site.com/picture12 4567.gif would instead be http://www.site.com/picture12%204567.gif i was looking at php.net and the function Code:
To strip blank lines (blank, with tab or whitespaces) from a string: Code:
echo "<td width=\"20%\"bordercolorlight=\"#000000\"bordercolordark=\"#000000\"><center><img src=pictures/" . $songs[$i]["picture"] . " width=\"70\" height=\"70\"></center></td>"; |
If it is just for replacing spaces..... this would work:
PHP Code:
|
much appreciated Sir Adrian
|
<?php include("album2.php?artist=" . str_replace(' ', '%20', $song["artist"]) . "); ?>
thats gonna give me a error whats missing anyone ? |
All times are GMT. The time now is 10:24 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|