MaxLimit of posting articles, how?

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

7 replies · 389 views · started 16 years ago · 1 min read

3 participants
arg0s12 Developer · 144 posts #1

Help coders, my site have 255 char to post in articles, then i edit the articles.Php and i put in all form the maxlenght of 5000 character, but its always post 255 char. Then i try to change artpost table and change the value of "text" to blob. . But its the same problem? How to change/edit to maxlenght the value of character that post in articles, thanks!

huwad Developer · 215 posts #2

arg0s12 wrote: Help coders, my site have 255 char to post in articles, then i edit the articles.Php and i put in all form the maxlenght of 5000 character, but its always post 255 char. Then i try to change artpost table and change the value of "text" to blob. . But its the same problem? How to change/edit to maxlenght the value of character that post in articles, thanks!

do some changes on your tables

sample:

-- --------------------------------------------------------

--
-- Table structure for table `tableprefix(ibwf)_artpost`
--

CREATE TABLE IF NOT EXISTS `tableprefix(ibwf)_artpost` (
  `id` int(100) NOT NULL AUTO_INCREMENT,
  `[COLOR="Red"][b]text[/b][/COLOR]` varchar([COLOR="Red"][b]5000[/b][/COLOR]) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '1' COMMENT '1',
  `crdate` int(100) NOT NULL DEFAULT '0',
  `artid` int(100) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `tableprefix(ibwf)_artpost`
--

-- --------------------------------------------------------

hacking is like sex. you get in, you get out and you pray you left nothing behind.

kei_ki7 Senior · 431 posts #3

text varchar(5000) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '1' COMMENT '1',

try to use blob, then go to article.php search for 255

Did I help you? You can help me too Your donations will help me finance my studies.

huwad Developer · 215 posts #4

kei_ki7 wrote: try to use blob, then go to article.php search for 255

not in d script, its on his database tables..

hacking is like sex. you get in, you get out and you pray you left nothing behind.

kei_ki7 Senior · 431 posts #5

ah ok, wrong mistake, by the way i used blob here or text

Did I help you? You can help me too Your donations will help me finance my studies.

arg0s12 Developer · 144 posts #6

thanks! Sir, Huwad, i will try it, , thanks for helping even we have a little prob. Bout our member, , @sir kei_ki7, i try the blob, but same problem, ,

huwad Developer · 215 posts #7

arg0s12 wrote: thanks! Sir, Huwad, i will try it, , thanks for helping even we have a little prob. Bout our member, , @sir kei_ki7, i try the blob, but same problem, ,

it will surely work.. dont 4get to upd8 your form in posting an article,,

<input name="formname" maxlength="5000">
echo "<input name=\"formname\" maxlength=\"5000\"/>";

or remove limit

echo "<input name=\"formname\"/>";
-- --------------------------------------------------------

--
-- Table structure for table `tableprefix(ibwf)_artpost`
--

CREATE TABLE IF NOT EXISTS `tableprefix(ibwf)_artpost` (
  `id` int(100) NOT NULL AUTO_INCREMENT,
  `text` [B][COLOR="Red"]text[/COLOR][/B] NOT NULL,
  `crdate` int(100) NOT NULL DEFAULT '0',
  `artid` int(100) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `tableprefix(ibwf)_artpost`
--

-- --------------------------------------------------------

and do same with cwart, readart, etc. and so on

hacking is like sex. you get in, you get out and you pray you left nothing behind.

arg0s12 Developer · 144 posts #8

Ok, bro, , thanks, for helping, ,

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close