![]() |
php help needed
i have a problem with my site xxxaus.com
on the index page my girls profiles dont sit in the grid right if there is a long suburb in the box is there a peace of code i can put in to space out the box,s maybe to drop down another line |
Trim the length of the string ? Or use css and make the text for the suburb smaller.
http://php.net/manual/en/function.substr.php |
thanks ill have a look cheers
|
You realize that you have istockphoto watermarks all over the place on that site ?
|
Yeah, I'd just use substr to trim the first X characters of the suburb variable instead of printing the whole thing.
|
im really new to this
were do i put echo substr('abcdef', 1); <?php echo GetValue("city","name","id",$f_row->city); ?> |
|
that header is too tall imo mate
not a bad little site tho - goodluck with it |
Quote:
|
$YourVar = "drmadcat";
echo substr($YourVar, 0, 4); // will print "drma" Good luck :thumbsup |
Quote:
|
you better use css to solve that problem, fix the width and height of the box and set overflow to hidden.
|
All times are GMT -7. The time now is 11:53 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc