[PHP] rounding...sort of

2002-12-28 Thread Peter Lavender
Hi everyone, I have a nubmer: 4.1 but I only want the whole number 4, even if it's 4.9, so this rules out using round (Unless I missed a parameter). How could I do this.. I'm drawing a blank... Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] LDAP support...

2002-12-23 Thread Peter Lavender
OK this is lame, but I'm posting a reply straight after the message hits my box... > I'm running debian and have apt-get php and openldap. openldap works, > as does php. I'm now working with the ldap functions and here is where > I'm stuck. apt-cache search php4 what turns up? php4-ldap I'v

[PHP] LDAP support...

2002-12-23 Thread Peter Lavender
Hi everyone Quick question: I'm running debian and have apt-get php and openldap. openldap works, as does php. I'm now working with the ldap functions and here is where I'm stuck. I can see from phpinfo() that ldap has been compiled in: '--with-ldap=shared,/usr' My problem is the following e

[PHP] session problems not finding my variables..

2002-01-15 Thread Peter Lavender
Hi everyone, I'm not sure what I have done wrong here. I haven't been sucessful in finding anything that points to what the cuase could be. What I find interesting is that I have used session in another area of the web site with out problems. The only difference between it and the way I have d

[PHP] binary data - MSSQL

2002-01-09 Thread Peter Lavender
Hi Everyone, I did ask this earlier, but I have made some head way since, but I'm still not sure that I have things right. What datatype should I use for zip files? How do I create a link to a file to be downloaded from the database? All the examples I have read all relate to images, which has

[PHP] inserting a file into MSSQL

2002-01-08 Thread Peter Lavender
Sorry to post twice, I should have said that I'm using php 4.1.11. A PEAR example would be even better :) > Hi everyone, > > Does anyone have a link to a good reference on how to insert a binary file > (zip file) into MSSQL? > > I've got the upload and stuff working, just a bit unsure about how

[PHP] inserting a file into MSSQL

2002-01-08 Thread Peter Lavender
Hi everyone, Does anyone have a link to a good reference on how to insert a binary file (zip file) into MSSQL? I've got the upload and stuff working, just a bit unsure about how I'm now going to put the file(it's been moved) into the database itself. The datatype I have used is Image, but most

[PHP] error on update

2001-11-25 Thread Peter Lavender
Hi everyone, I'm connecting to a SQL SVR 2000 database and get an error that I haven't been able to resolve. The following code generates an error Incorrect syntax near 'longer'; SQL state 3700 in SQLExecDirect I read some where that it might be due to a reserved word in column names, but this

[PHP] odbc_num_rows always returns -1

2001-11-20 Thread Peter Lavender
Hi Everyone, As the subject says. I'm using 4.0.6 on IIS/win2k to a MSSQL 2000 database. I wish to check if a query returns any values, so the code I have is nothing more than: $numRows = odbc_num_rows($result); print ("$numRows"); if ($numRows <= 0) { print("Nothing to show"); } Have I