![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
Any PHP/MySQL Guys Up?
I usually have my guy do this stuff but he's on vaca and I'd like to get this done so I can move forward so if anyone that knows php/sql, do me a favor and take a quick peek for me...
This calls the output for an events script I'm using and I'd like to be able to truncate the title ($result) to 10 characters (some titles are way too long for the section this output is echo'd) Thanks in advance! http://www.bamas.com/code.txt |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
find
Code:
while($row = mysql_fetch_row($result)){ Code:
$row[1] = substr($row[1],0,10); Code:
while($row = mysql_fetch_row($result)){ $row[1] = substr($row[1],0,10); . . . |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
Thank you Dark Soul - that worked like a charm!
|
![]() |
![]() ![]() ![]() ![]() ![]() |