FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » String Question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
String Question [message #172796] Wed, 02 March 2011 20:38 Go to previous message
Patrick[1] is currently offline  Patrick[1]
Messages: 2
Registered: March 2011
Karma:
Junior Member
Don't usually frequent this news group, but I have a stumper. At least
it is stumping me.

I have one variable that I have assigned a string value to;
(verbatum from my code)

$errval = 'ERROR: duplicate key violates unique constraint
"machines2_pkey"';

and another variable that I assign a value from a command;

$pglerr = pg_last_error();

The value being: ERROR: duplicate key violates unique constraint
"machines2_pkey"

yet when I do a strlen $errval is 64 and $pglerr is 65.

What am I missing here? I've tried trim() on the latter and still get 65.

If someone could shine some light on this for me I would appreciate it.

Thanks

--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: genuine adsence accounts Big offer
Next Topic: fgetcsv -- No error reporting?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 16:53:58 GMT 2024

Total time taken to generate the page: 0.04314 seconds