Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-26 Thread Steven Cruz
I had a similar problem the other day I think. plus many permission problems. But I got it work. I added these two lines to the bottom of my /etc/my.cnf file [client] socket=/usr/local/mysql/mysql.sock Just put in the path to your sock file and see if that helps. ROGER DEBRY wrote:

Re: RE: [PHP-DB] Fulltext SELECTing only part of a field entry

2006-11-24 Thread Steven Cruz
I use to perl scripts to do something like this. But you just back and forward from the location in the string you are. You are count for word bounderies, in short, mostly white spaces. Next you count the number of characters, and substring! From: Miguel Guirao [EMAIL PROTECTED] Date:

Re: [PHP-DB] Using BLOBs

2006-12-22 Thread Steven Cruz
it directly. Steven Cruz. Miguel Guirao wrote: Hi!! I'm thinking abou to store MP3 files and PDF files in BLOB fields in a a table, Is this a best practice in MySQL? Or should I just store a reference to a file stored some where in a file system? I want to store sermons and preachings, both

Re: [PHP-DB] Storing 4KB jpeg images on hospital web server

2007-03-08 Thread Steven Cruz
Yeah, do what the boss says, but I will tend agree, storing the images the database will slow it down. There is one place that holds large images and even small vids in the DB. IO over kill. They have two servers to run one database. Micah Stevens wrote: On 03/08/2007 01:35 AM, Chetan

Re: [PHP-DB] Sybase and PHP

2007-04-03 Thread Steven Cruz
I got a similar setup up and running a few months ago. Sadly I am having connection problems, else I would give you the configure string I used. When netowrk does come around, I will see what I can do. Steven [EMAIL PROTECTED] wrote: We have been using sybase with PHP4 and now are looking

Re: [PHP-DB] Re: MySQL Query on the Fly

2007-05-13 Thread Steven Cruz
You can the entire thing in Java script with Style sheets. Depends on what he wants to do. iframes could be far simpler. :) itoctopus wrote: You have to use an iframe to do what you want. Once the user select something, you referesh the iframe and you pass specific parameters to it based on

Re: [PHP-DB] md5() function

2008-01-14 Thread Steven Cruz
Hello; I maybe wrong, but I believe it is one way. What you need to do is take your input and encrypt it and check if matches your current encrypted value. :) peace and hugs. Miguel Guirao wrote: Hi!! I'm using the md5() function to encrypt a password and store it into a database. Now I

RE: [PHP-DB] How to do a Newsletter

2008-05-01 Thread STEVEN CRUZ
Hello; What exactly do you mean? I have some jobs in cron that run a query and then spit out an thml page via email. That type of thing? From: Nasreen Laghari [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] How to do a Newsletter Date: Thu, 1 May 2008 08:59:33 -0700 (PDT) Hi,

Re: [PHP-DB] Compile php5-sybase_ct-5.2.9 with freetds-devel-0.82.1_1,1 in FreeBSD ports will Failed!

2009-03-26 Thread Steven Cruz
Hello; I had several problem installing Sybase 15 64 bit with php 5, I was using sybase open client libraries and with some twinking I got it to work, with compile warnings. Have you tried the native Sybase client libraries? steven. James Chang wrote: Dear Sir, I'm running