Jump to content

MySQL Database Question


Travist6983

Recommended Posts

Ok not exactly sure if this is where i should ask this question but here goes

 

We get an IDX feed everynight which feeds our listing detail page and also picture urls like this one...

http://attach.realcomponline.com/?Path=PROPERTY/9AD81/D066A/9AD81ED066A848/76889EEA7BB4E6.jpg&g=100&sp=0&l=0&t=0&r=10000&b=10000&o=0&w=320&h=240

 

I would like to change the end of the string to be... http://attach.realcomponline.com/?Path=PROPERTY/9AD81/D066A/9AD81ED066A848/76889EEA7BB4E6.jpg&g=100&sp=0&l=0&t=0&r=10000&b=10000&o=0&w=800&h=600

 

to make the pictures bigger we have talked to our IDX feed and they will NOT change the string to have the bigger pictures but if you look at both urls the bigger pictures do look fine not pixelated

 

any help or suggestions would be great

 

thanks a million

Link to comment
https://forums.phpfreaks.com/topic/131351-mysql-database-question/
Share on other sites

<?php
$str = 'http://attach.realcomponline.com/?Path=PROPERTY/9AD81/D066A/9AD81ED066A848/76889EEA7BB4E6.jpg&g=100&sp=0&l=0&t=0&r=10000&b=10000&o=0&w=320&h=240';

$a = explode('&', $str);
$a[8] = "w=800";
$a[9] = "h=600";

$str = join('&', $a);

echo $str;

?>

i truly appreciate you helping me but i cant seem to get it to work maybe this would help you more a bit to HELP me... Shown in red below is where we bring the photo into the page... i tried using what u suggested as

 

<div id="PhotoArea" name="PhotoArea"> <img src="<?php echo $firstphoto; ?>" name="ImageFull" border="1" width="800" height="600" />

 

i tried using what u suggested as...

 

<div id="PhotoArea" name="PhotoArea">

<img src="<?php

$str = '$firstURL';

 

$a = explode('&', $str);

$a[8] = "w=800";

$a[9] = "h=600";

 

$str = join('&', $a);

 

echo $str;

 

?>" name="ImageFull" border="1" width="800" height="600" />

 

I am so not a php guy so any more help you can give me would be great

 

thanks so much

 

T

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.