Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Function cuts off my message to 50 words
Old 06-12-2007, 05:31 PM Function cuts off my message to 50 words (255 characters)
Skilled Talker

Posts: 99
Trades: 0
This function cuts off my description at 50 words (255 characters)! why? it makes no sense

PHP Code:
// this function adds names and descriptions

function addtoHall($user$hall) {

$query "SELECT * FROM members WHERE username = '$user'";
$result mysql_query($query)
     or die(
mysql_error());
$row mysql_fetch_array($result);
extract($row);

$fullrank turnRank($rank);

global 
$bordercolor1$tablebg1$reason1$newname$today5$submit;

if(
$hall == "Fame") { $title="Hall of Fame"; }
if(
$hall == "Shame") { $title="Hall of Shame"; }

if(
$submit) {

$query "INSERT INTO hall (Name, Reason, Status) VALUES ('$newname', '$reason1', '$hall')";
$result mysql_query($query)
     or die(
mysql_error());

InsertLog("$fullrank $user added $newname to the $title");

echo 
"<table align='center' border='0' cellspacing='0' cellpadding='0' width='500'><tr><td align='center' class='small'><font 

color='red'>Added to 
$title!</font></td></tr></table>";


}

if(!
$submit) {

echo 
"<br>
<form action='console.php?siteid=
$site_id&p=$hall' method='post'>
<table align='center' border='1' bordercolor='
$bordercolor1' cellspacing='0' cellpadding='0' width='500'>
<tr>
<td class='main' background='
$tablebg1'><center><b>Add to $title</b></td></tr>
<tr>
<td class='small'><br>
<blockquote>
<b>Name:</b> <input type='text' name='newname' class='form'><br>
<b>Reason:</b><br>
<textarea name='reason1' class='textarea'></textarea><br><br>
<center><input type='submit' name='submit' value='Submit'></center><br>
</blockquote>
</td>
</tr>
</table>
</form>

"
;


Last edited by Arez20469; 06-12-2007 at 05:42 PM..
Arez20469 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-12-2007, 06:35 PM Re: Function cuts off my message to 50 words
Novice Talker

Posts: 11
Trades: 0
Take a look at the database. What is the length? if it is 50 then that would truncate the input
lewisphillips is offline
Reply With Quote
View Public Profile
 
Old 06-12-2007, 06:56 PM Re: Function cuts off my message to 50 words
Skilled Talker

Posts: 99
Trades: 0
that was it!!!!! thanks!!!!
Arez20469 is offline
Reply With Quote
View Public Profile
 
Old 06-12-2007, 07:03 PM Re: Function cuts off my message to 50 words
Novice Talker

Posts: 11
Trades: 0
Your welcome
lewisphillips is offline
Reply With Quote
View Public Profile
 
Old 06-12-2007, 11:08 PM Re: Function cuts off my message to 50 words
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
VARCHAR is limited to 255 chars, TEXT will offer larger textarea
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Function cuts off my message to 50 words
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15473 seconds with 12 queries