Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 29th, 2000, 02:20 PM
arlo_j arlo_j is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 1 arlo_j User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have a consistency problem with php and mysql. I have a table in the database with a text column. I use a form to pass text to the database, but it doesn't accept entries if they are over a certain length. Other times, it won't accept shorter entries. Are there restrictions on text fields, or is it the database? Someone help! Send replies to arlo@twoblocks.com. Thanks.
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old May 29th, 2000, 08:49 PM
esconsult esconsult is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 43 esconsult User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
It might not be the length at all, but the fact that there are quotes in the string.

use the php function addslashes() on your string before putting it in the DB and see what happens.

------------------
PHP, Perl, SQL Programming at http://www.mentalobjects.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > length of info passed to DB? (php)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway