Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl 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 4th, 2008, 05:43 AM
byte1100 byte1100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 91 byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 18 m 13 sec
Reputation Power: 14
Data not fully saved in database

Hi all,

I test submitting form data which then added to mySQL database. Numbers of characters submitted was more than 50 but only saved and displayed in database browser was 50. I tried setting field type first as Varchar, then changed to Longtext. But the result was the same. Any idea how to rectify this ?

byte1100

Reply With Quote
  #2  
Old May 4th, 2008, 07:39 AM
r937's Avatar
r937 r937 is offline
SQL Consultant
Dev Shed God 25th Plane (17000 - 17499 posts)
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,331 r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 5 Days 7 h 21 m 33 sec
Reputation Power: 891
which application language processed the form?

because we'll need to move this thread to the appropriate forum
__________________
r937.com | rudy.ca

Reply With Quote
  #3  
Old May 4th, 2008, 05:43 PM
byte1100 byte1100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 91 byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 18 m 13 sec
Reputation Power: 14
The language is Perl/CGI scripts.

Reply With Quote
  #4  
Old May 4th, 2008, 07:37 PM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Click here for more information.
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,279 Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 22 h 38 m 24 sec
Reputation Power: 2731
Send a message via Google Talk to Axweildr
Orkut
now we need sample data and the database specification ...
__________________
--Ax
without exception, there is no rule ...
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


09 F9 11 02
9D 74 E3 5B
D8 41 56 C5
63 56 88 C0
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
-- Jamie Zawinski
Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...

Reply With Quote
  #5  
Old May 4th, 2008, 08:10 PM
byte1100 byte1100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 91 byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 18 m 13 sec
Reputation Power: 14
let say data from web form reads:
Symmetrical fault calculation is demonstrated starting with calculations of source impedance, high voltage cable impedance, transformer impedance.

but only saved in database browser as:
Symmetrical fault calculation is demonstrated star...

Perl script reads:
$sql="INSERT INTO tbl_guestbook (feedback) VALUES ('$feedback')";


Database specifications: MySQL 4.1.11-Debian_4sarge5

Last edited by byte1100 : May 4th, 2008 at 08:16 PM.

Reply With Quote
  #6  
Old May 4th, 2008, 08:20 PM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,394 lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 10 h 33 m 58 sec
Reputation Power: 685
Please show us the output from
Code:
SHOW CREATE TABLE tbl_guestbook\G


I would also suggest posting a brief code snippet of how you're handling that data until it winds up in the SQL statement.
__________________
BookMooch.com : Give books away. Get books you want.

Reply With Quote
  #7  
Old May 4th, 2008, 08:45 PM
byte1100 byte1100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 91 byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 18 m 13 sec
Reputation Power: 14
output from code SHOW CREATE TABLE tbl_guestbook :

Table Create Table
tbl_guestbook CREATE TABLE `tbl_guestbook` (\n `feedback` longte...



brief Perl snippet:
my $dbh=DBI->connect ("DBI:mysql:$database:$host",$user,$pw,{RaiseError=>1});

$sql="INSERT INTO tbl_guestbook(feedback)
VALUES ('$feedback')";

$sth=$dbh->do($sql);

$dbh->disconnect;

Reply With Quote
  #8  
Old May 4th, 2008, 08:49 PM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,394 lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 10 h 33 m 58 sec
Reputation Power: 685
I'm afraid that isn't going to do. You see how the CREATE TABLE statement is truncated? You must be using phpMyAdmin to do that...

Reply With Quote
  #9  
Old May 4th, 2008, 09:27 PM
byte1100 byte1100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 91 byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 18 m 13 sec
Reputation Power: 14
Actually, I have not used phpMyAdmin at all. What is seen in browser of database is the result of data handling by Perl script.

Reply With Quote
  #10  
Old May 5th, 2008, 05:52 AM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Click here for more information.
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,279 Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 22 h 38 m 24 sec
Reputation Power: 2731
Send a message via Google Talk to Axweildr
Orkut
the ellipsis '...' indicates that there's more data that what's being shown.

there should be an option for a print friendly version. what tool are you using to lookup the values in the database?

Reply With Quote
  #11  
Old May 7th, 2008, 06:31 PM
byte1100 byte1100 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 91 byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level)byte1100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 18 m 13 sec
Reputation Power: 14
I use SQL to lookup for values. Have no problem with this.

But when contacting web host technical team, this is the answer. "The restriction set is not a server side one. This restriction was set by the user of the database during the creation process of the database tables."

I checked the OPERATION setting in database, but nothing in there any option that allow me to remove the limitation.

Reply With Quote
  #12  
Old May 7th, 2008, 06:59 PM
keath's Avatar
keath keath is offline
!~ /m$/
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: May 2004
Location: Leawood, Kansas
Posts: 2,652 keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level)keath User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 24 m 27 sec
Reputation Power: 633
I doubt this has anything to do with perl.
Quote:
...saved and displayed in database browser was 50.

What database browser?

What about in a perl script that you write to query the db and display that information in a web page? Is that data still truncated?

Post a screenshot.

Reply With Quote
  #13  
Old May 7th, 2008, 07:55 PM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Click here for more information.
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,279 Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 22 h 38 m 24 sec
Reputation Power: 2731
Send a message via Google Talk to Axweildr
Orkut