[PHP] Help! mysql problem

2002-07-25 Thread Scott Aikin
Hi there, I've got a quick question concerning PHP and mySQL. I've got a fresh server with recent versions of Red Hat Linux, mySQL, PHP and apache. My problem is that when I call mysql_pconnect, my PHP code hangs and doesn't proceed. I can't check mysql_error because it doesn't go beyond

[PHP] wordwrap

2001-12-03 Thread Scott Aikin
Hey Hey! I've got a question about wordwrap. It seems that when I run this on a string that contains spaces, if my replacement string happens to fall on a space, the space is removed completely from the string. This isn't good :-\ Any way around this? Thanks! - Scott -- PHP General

[PHP] addslashes, stripslashes

2001-11-26 Thread Scott Aikin
I've come across a strange problem working backwards with stripslashes after running addslashes. I take a string like: \t\4 and run it through addslashes, the result is: \\t\\4 After grabbing this data from the database and running 'stripslashes', the data comes out as: \t without the