[PHP-DB] PHP and Sybase

2003-01-28 Thread Raphael KISTER
Hello, I would like to make a connection to a sybase database in PHP. I installed freetds version 0.60 and it work fine (i can connect to a sybase database). Then, i compile the sybase extension (with php-devel) : $ phpize $ ./configure --with-php-configure=/usr/bin/php-config --with-sybas=/usr/l

Re: [PHP-DB] Help/Advice/Suggestions need to Upload 9 images on one submit button.

2003-01-28 Thread Rajesh Fowkar
On Tue, Jan 28, 2003 at 10:44:47PM +0100, Geckodeep wrote: >Hi Rajesh > > > >First of all I'd like to thank you for your time. No hassles. > >I got the script working in a way that it feeds my DB table, but I am >getting this error message: Warning: copy() [function.copy]: Unable to >access in u

Re: [PHP-DB] Question on the port PHP uses to connect to remote MySQL

2003-01-28 Thread Jason Wong
On Wednesday 29 January 2003 11:34, Louis Feng wrote: > Here is my problem. I have PHP running on one machine, mysql on another > one. Everything works fine till I put a firewall on the PHP machine, > which blocks pretty much every port there is except port 80. Now, PHP > can't connect to the mysql

Re: [PHP-DB] really stumped!

2003-01-28 Thread Jason Wong
On Wednesday 29 January 2003 09:50, Addison Ellis wrote: > hello and thank you for taking a look at this. > i, no matter what id do can not get variables to echo a value > or inserted into my db. i uploaded the original file and parse error > line by parse error line had to remove all bracket

[PHP-DB] sql syntax error

2003-01-28 Thread Addison Ellis
hello, i can not pinpoint this. your time and help is very much appreciated. best, addison Error: id=, HTTP_POST_VARS=Array, key=, value=, category=, subcategory=, [EMAIL PROTECTED] Error in query: insert into ads values (year,make,model,color,mileage,condition,price,other,contact,next_,,crea

[PHP-DB] Question on the port PHP uses to connect to remote MySQL

2003-01-28 Thread Louis Feng
Here is my problem. I have PHP running on one machine, mysql on another one. Everything works fine till I put a firewall on the PHP machine, which blocks pretty much every port there is except port 80. Now, PHP can't connect to the mysql database anymore. If I disable the firewall on the PHP ma

RE: [PHP-DB] save output to a file instead of displaying in the browser

2003-01-28 Thread Qunfeng Dong
It turns out to be quite simple. Just play with the PHP header() function header("Content-Type: $application/$Format"); header("Content-Disposition: attachment; filename=$file_name"); --- Boaz Yahav <[EMAIL PROTECTED]> wrote: > This looks like a great example to add to weberdev. > If you get the

[PHP-DB] really stumped!

2003-01-28 Thread Addison Ellis
hello and thank you for taking a look at this. i, no matter what id do can not get variables to echo a value or inserted into my db. i uploaded the original file and parse error line by parse error line had to remove all brackets, which doesn't make sense to me right now, except for the two enc

RE: [PHP-DB] Members area

2003-01-28 Thread Gavin Amm
Hi, If anyone else has any further ideas, please let me know - thanks. Thanks Jim for the nuke idea, I've downloaded it & am looking through it... very exhaustive though... Thanks Jeff on your thoughts. I've been thinking along very similar lines to what you suggested... - I have a contents tab

Re: [PHP-DB] Help/Advice/Suggestions need to Upload 9 images on one submit button.

2003-01-28 Thread Geckodeep
Hi Rajesh First of all I'd like to thank you for your time. I got the script working in a way that it feeds my DB table, but I am getting this error message: Warning: copy() [function.copy]: Unable to access in upload1.php on line 28. this is what I have in the 28th line : if(!copy($_FILES['im

Re: [PHP-DB] Help/Advice/Suggestions need to Upload 9 images on one submit button.

2003-01-28 Thread Geckodeep
Hi Rajesh First of all I'd like to thank you for your time. I got the script working in a way that it feeds my DB table, but I am getting this error message: Warning: copy() [function.copy]: Unable to access in upload1.php on line 28. this is what I have in the 28th line : if(!copy($_FILES['im

[PHP-DB] Odd browser problem with sessions

2003-01-28 Thread chip . wiegand
I have a web site that is protected using sessions, and it works fine. Only occasionally when a end-user tries to log in using IE the login screen will just reload, every time they try to log in. I found that by closing IE (all windows) then trying again, it will go on to the proper page. This

RE: [PHP-DB] mysql_insert_id() vs. last_insert_id()

2003-01-28 Thread John W. Holmes
> So I read this thread and the MySQL doc on mysql_insert_id() and still > have > a related question. > > Does mysql_insert_id() function on a per-connection basis? I read the > stuff > on last_insert_id() and it specifically mentions that the last ID is > stored > on the server on a per-connectio

RE: [PHP-DB] mysql_insert_id() vs. last_insert_id()

2003-01-28 Thread Hutchins, Richard
So I read this thread and the MySQL doc on mysql_insert_id() and still have a related question. Does mysql_insert_id() function on a per-connection basis? I read the stuff on last_insert_id() and it specifically mentions that the last ID is stored on the server on a per-connection basis. However,

Re: [PHP-DB] mysql_insert_id() vs. last_insert_id()

2003-01-28 Thread 1LT John W. Holmes
> I've been checking the last_insert_id() function out and I am curious. The > MySQL docs say to use the mysql_insert_id() function after an "insert into" > query to grab the key value. Both seem to work; however, there are some > subtle differences. > > Which is the best one to use after a single

RE: [PHP-DB] SQL very fast here & very slow there

2003-01-28 Thread Boaz Yahav
Is it possible that the tables at school are not indexed? berber -Original Message- From: Paolo Bonavoglia [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 25, 2003 7:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] SQL very fast here & very slow there At 16:43 24/01/2003 24/01/2003

RE: [PHP-DB] Help with converting data type from Database in PHP

2003-01-28 Thread SELPH,JASON (HP-Richardson,ex1)
I think I remember something about pack and unpack working with aunti endian, uncle endian and all the little endians. Jason -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 9:02 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-D

Re: [PHP-DB] MySQL Error

2003-01-28 Thread John Krewson
Just a shot in the dark, but be sure the socket and port settings are correct for your setup (whatever that might be since you did not include that info in your post) and that mysql is actually running. Be sure to scour http://www.mysql.com/documentation/mysql/bychapter/index.html especially t

[PHP-DB] Help with converting data type from Database in PHP

2003-01-28 Thread Robert Trembath
Has anyone done 16-bit integer conversion to decimal in PHP or know the formula to convert the data. Below is an example of what oracle gives me and what I need to convert it to. Any help would be greatly appreciated. Thanks, Robert I get this in unsigned 16-bit Integer format: AACBAACBAACDAA

[PHP-DB] mysql_insert_id() vs. last_insert_id()

2003-01-28 Thread Randy Phillips
Hi I've been checking the last_insert_id() function out and I am curious. The MySQL docs say to use the mysql_insert_id() function after an "insert into" query to grab the key value. Both seem to work; however, there are some subtle differences. Which is the best one to use after a single insert

Re: [PHP-DB] Calling functions recursively

2003-01-28 Thread Leif K-Brooks
There are some cases where I see recursive functions as the only option. Picture this function to retrieve data from a global array: $data = array(array('somedata'=>'somevalue','somedata2'=>'somevalue2'),array('somedata'=>'somevalue','somedata2'=>'somevalue2'),array('somedata'=>'somevalue','so

Re: [PHP-DB] problem with copy()

2003-01-28 Thread Andrey Hristov
AFAIK "none" is put into "tmp_file" when the file upload wasn't successful. Andrey - Original Message - From: "Bartosz Matosiuk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 2:07 PM Subject: [PHP-DB] problem with copy() > hi > > can the string source

[PHP-DB] problem with copy()

2003-01-28 Thread Bartosz Matosiuk
hi can the string source in copy () looks like that: "c:\pic.jpg". If not than how should it look like. I'm not sure becouse script gives me "Unable to open c:\pic.jpg for reading: No such file or directory" but the file is there. and when i'm using $HTTP_POST_FILES['file']['tmp_name

[PHP-DB] PHP and ORACLE conection error

2003-01-28 Thread xxx xxxx
hy, i'm having a problem with my project i have an oracle server on a computer named oracle and in apache htdocs files i have a directory special for my project... 1 in that dir i have a html file named index.html here i get the username and the password and post it to the validate.php file

RE: [PHP-DB] MySQL Error

2003-01-28 Thread Rich Gray
Hi Jordan Made any recent changes to your network configuration? Can you access other IP ports OK e.g. http port 80? Do you have any firewall protection on your PC? Can you access MySQL from the command line OK? Rich -Original Message- From: JordanW [mailto:[EMAIL PROTECTED]] Sent: 28 Jan

RE: [PHP-DB] Sorting Arrays

2003-01-28 Thread Rich Gray
Mark Not exactly sure what you're after but will array_multisort() help? http://www.php.net/array_multisort Rich -Original Message- From: Mark @ Webbiz NZ [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 05:10 To: [EMAIL PROTECTED] Subject: [PHP-DB] Sorting Arrays Hello, I don't unde