« first day (772 days earlier)      last day (4194 days later) » 

10:03 PM
@Lusitanian Yes, same that I thought. Just wanted a second pair of eyes, its late.
 
@hakre gotcha
 
user1125394
 
@cyril firefox for some reason gets a horizontal scrollbar
then again , it might be the expected behavior , since i compared with opera
 
user1125394
@tereško its because column width jsfiddle.net/8Tmuf/3/embedded/result
 
user1125394
need to check how bad it looks on IE too
 
@cyril Oh yes, the dreaded IE test :D
The site that I'm making at the moment actually doesn't look too bad in IE6...
Especially since I'm using IE9.js :D
 
@ShaquinTrifonoff , most of IE6 installations run with no javascript , for security reasons
 
@tereško It doesn't matter too much, it's just for displaying drop-down items on a menu. The pages will still be accessible if a main menu item is clicked.
 
10:36 PM
Hey everybody, quick question: I'm using PDO to access a MySQL database. Due to encryption, there are some non-standard characters that need to go into the database, but it seems that everything in the DB is set to latin1 except character_set_system (which is set to utf8)
Now, when trying to use PDO to enter non-standard characters, I get a PDO exception.
Is this standard? Does PDO detect the encodings, and fail if the characters are unsupported?
Or is it echoing back a MySQL error?
(Sorry for the ever-growing wall of text)
 
@RyanKinal You want us to guess what exception gets thrown?
 
Oh, heh... sorry
Incorrect string value: '\xAEf8\xC8\x9B\x16...' for column 'column' at row 1
 
Is the database character set UTF-8?
 
Nope... but perl was entering these values just fine before we converted the system to PHP
Well, one of the character set variables - character_set_system is set to utf8, but the rest aren't.
 
Set the DB charset to UTF-8.
 
10:40 PM
@RyanKinal Have you disabled emulated prepared statements?
 
@PeeHaa I'll check
 
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
 
You can't set that in a config anywhere?
 
Not by default, that I know of.
You do have a database connection script that you include, don't you?
 
Of course :-)
 
10:45 PM
Good :) Some people copy and paste the same script into every file :O
 
Yecch
Nothin' :-(
I'm kind of wondering if perl just fails at basic DB access, and removed characters that would cause the insert to fail.
 
Eih, dont you just love it when they dv you because they are clueless and dont even have the decency to wait for your comment
 
lol, that's basically what I have :-)
 
@Gordon +1 to cancel out the -1 :)
 
user1125394
@RyanKinal you called a column 'column' ?
 
10:50 PM
@Gordon naah ... you must be wrong. They downvote you because they are smarter then you , while you are just a stupid noob who should STFU and go back in the corner
 
@cyril No ;-)
 
... triple-ping just for kicks
also , here would be a nice mechanic : if you answered a question , you cannot downvote other answers till you have commented on them
 
So, what I'm getting from my frantic Googling is that I really do just need to change the DB char set. But I think the row sizes are too large to actually do that - there are some columns defined as VARCHAR(20000) (I know, I know... I wouldn't have done it that way)
 
@tereško But then people might downvote before answering :-)
 
@RyanKinal varchar 20000. What are you storing in fields? Other databases?
 
10:54 PM
Ugh. I don't know what they were thinking.
 
@ShaquinTrifonoff if you answer , your votes are removed
 
Ah... nice one :-)
 
i quite often get hit by someone trying to start a voting-war .. it's annoying
 
@ShaquinTrifonoff thanks. ive updated the answer to take both cases into account now
 
11:11 PM
varchar 2000. WAT.
There's this type called "BLOB"...........
Depending on your RDBMS, it'll store the data out-of-row
 
@Lusitanian It's 20,000 ;)
 
@PeeHaa Made a typo, that's what I meant :p
 
user1125394
TEXT is limitated to 2^32 chars
 
and varchar limit 64k. the point?
 
user1125394
nosql don't have those rigid constraints
 
11:25 PM
@cyril And on top of that it is webscale...
 

« first day (772 days earlier)      last day (4194 days later) »