Re: [PHP-DB] tables

2007-03-30 Thread olavi
I think it should be something like this: > > > > "; > ?> > "; > ?> > > >   > "; > ?> > > how many pictures do you have in database? dont u want to use for/while ? Olavi Ivask > > ---

Re: [PHP-DB] String manipulation

2009-09-11 Thread olavi
You can do like this: $str = 'helloworld'; echo preg_replace('//', ' ', $str); this will print out -> h e l l o w o r l d Olavi Ivask > How would I put a space after each letter: > > echo str_shuffle(stripslashes(mysql_result($word_result,0,"wo

Re: [PHP-DB] basic form entry

2007-10-07 Thread Olavi Ivask
INSERT inserts new data to database. If you want to update data, use UPDATE instead of INSERT. Olavi Ivask I have been racking my brains trying to figure out what I am doing wrong. > i > have created a basic form that calls requests user information...the form > then runs insert.php.

Re: [PHP-DB] PHP to MS SQL Package

2008-06-12 Thread Olavi ivask
Hi, you need to install "freetds" before compiling php. compile php: ./configure [--with-apxs --with-mysql...] --with-sybase=/usr/local/freetds make make install Olavi Ivask On Thu, 2008-06-12 at 12:14 -0400, Wei, Alice J. wrote: > Hi, > > I am currently using a Linux

RE: [PHP-DB] PHP to MS SQL Package

2008-06-12 Thread Olavi ivask
Hello, Here is a good article about ms-sql & PHP on Linux (http://www.devarticles.com/index2.php?option=content&task=view&id=667&pop=1&page=0&hide_js=1) Olavi Ivask On Thu, 2008-06-12 at 13:43 -0400, Wei, Alice J. wrote: > Hi, > > After stopping the Apache se

Re: [PHP-DB] Random pick

2010-01-25 Thread Olavi Ivask
Hi, did you mean something like this? $level_names = array("Guest", "Regular User", "Intl. User", "Contractor", "Employee", "Sales", "Investor", "Human Resources", "Administrator&quo

Re: [PHP-DB] Random pick

2010-01-25 Thread Olavi Ivask
Don't you like my solution? Regards, Olavi On Jan 25, 2010, at 9:39 PM, Karl DeSaulniers wrote: Hi, $req_user_level is a MySql return result and I am trying to utilize shortened code to evaluate whither $req_user_level == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9, if it matc