[PHP-DB] Migrating MySQL Table Data

2001-02-04 Thread phobo
I am in the process of improving a database scheme considerably in MySQL, by breaking tables into smaller tables and so one. I am wondering if there is a simple SQL statement to take ALL ROWS of fields 'f1', 'f2', 'f3', and copy them to the another table Then I can remove the fields in the ori

[PHP-DB] Processing using a single PHP file

2001-02-04 Thread Sridhar Ranganathan
Hi Netlanders Traditionally, we have two files in our apps. A HTML page that has a form and a PHP file that processes the form info. I have a web-based front end that is used to added data to a table. Can I do this with one PHP file alone? Regards Sridhar Ranganathan _

Re: [PHP-DB] parsing error // functions

2001-02-04 Thread Marc Bragg
Thanx, will try. Curious: using the Professional PHP Programming book, and got the other code which didn't work. How is one to know how to move these things around? Just practice and error? Can you help with this also, can't get the Generate . . . functions to respond, such as: test"); } ?> is t

[PHP-DB] Inserting/Selecting BLOB in MSSQL 7.0

2001-02-04 Thread Giaour
I tried to do this using mssql7 php extension, and it didnt work. However Unified ODBC functions worked well.. whats the problem? Extension, Server, or may be i'm doing wrong queries? for inserting image: $result = mssql_query("insert into image_table values ($id, '$image_data')"); - not work

[PHP-DB] PHP4 & MySql

2001-02-04 Thread Baher Abouelfittouh
Hi.. i'm using MySql version 3.22.32 and I installed the Apache Compile Kit containing the following: Apache 1.3.14 php3 3.0.16 php4 4.0.3pl1 I have the following problem while using PHP4.. Wheneven I write to the database, I see the following warning on the resultant page on the browser : "Wa

Re: [PHP-DB] Migrating MySQL Table Data

2001-02-04 Thread Tom Carter
The CREATE TABLE .. FROM ... SQL will do what you require, but I don't think this is included in MySQL (one to check)...however if performance is becoming an issue, ,then you may want to consider migrating to a different DBMS (mySQL is not so good at handling large record sets, and has a much cut-

[PHP-DB] No security on mySql database - help!

2001-02-04 Thread Chuck Mayo
After spending the last two weeks feverishly learning and coding php & mySql, I'm ready to go live and have discovered that my Hostpro Virtual Server (Used to be Vservers? never mind...) "doesn't support password-protecting individual databases". I thought it strange that I didn't need any user/pa

[PHP-DB] RE: parsing error

2001-02-04 Thread Joseph Hadinata
Try this: Error " . mysql_errno() . ": " . mysql_error() . ""; elseif (mysql_num_rows($result) == 0) echo "Query executed successfully!"; ?> Best regards, Joseph H. http://BlueChillies.com Your Freeware and Shareware Download Destination >Another strange error, parsing: > >if ($result == 0)

Re: [PHP-DB] Processing using a single PHP file

2001-02-04 Thread jaskirat singh
Yes .. you can do it like this. Have two functions 1)generateForm(); 2)processData(); In the generateForm function use a hidden form field called say "action" with a value say "process" Then put a code like this. if ($action == "process") { processData(); } else { ge

Re: [PHP-DB] Migrating MySQL Table Data

2001-02-04 Thread jaskirat singh
Hi, You can use "insert into newTable(field1,field2,field3) select red,green,blue from oldTable" HTH Jaski At 10:11 PM 2/4/01 +1300, phobo wrote: >I am in the process of improving a database scheme considerably in MySQL, by >breaking tables into smaller tables and so one. I am wondering if the

Re: [PHP-DB] No security on mySql database - help!

2001-02-04 Thread Chuck Mayo
Not trying to write an ad here, but Hostpro is a company that rents server space and lets me serve multiple domains out of my space. I went with them to save money, and because they offer tons of goodies, SSI, CGI, PERL, PHP, mySql, shell & CRON access, unlimited email accounts with aliases and vi

[PHP-DB] logs

2001-02-04 Thread Marc Bragg
Does php log its activity anywere? especially for debugging purposes? Some of my scripts don't show any browser window areas, but also don't show any results int he browser, i.e., a blank screen, and yet aren't working. thanx. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP-DB] logs

2001-02-04 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Marc Bragg) wrote: > Does php log its activity anywere? especially for debugging purposes? > Some of my scripts don't show any browser window areas, but also don't > show any results int he browser, i.e., a blank screen, and yet aren't > workin

[PHP-DB] db paging with MS Sql

2001-02-04 Thread Scott Parks
Has anyone seen a good lession or code example on paging records from MS Sql 7? Say I have 300 records and want to break them down to 10 per page using [previous | next ] and a list of page numbers at the bottom. tia -Scott -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e

[PHP-DB] Connectivity to AS/400

2001-02-04 Thread Pete Lancashire
I'm going to be trying to connect to the native DB2 database in a AS/400 So far thats all I know about the IBM side. Can someone give me a short update on what options I have ? TIA !!! -pete -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP-DB] Connectivity to AS/400

2001-02-04 Thread Marios Moutzouris
> I'm going to be trying to connect to the native DB2 database in a AS/400 > So far thats all I know about the IBM side. > > Can someone give me a short update on what options I have ? - JDBC - exec an external program. - unixODBC ...etc. - PHP with native ibm db2 support I have successfully

Re: [PHP-DB] Connectivity to AS/400

2001-02-04 Thread szii
There's been a lot of talk about this recently. Check the archives for the last 2 months, and PHPBuilder.com Last I heard, you needed DRDA(DB2 Connect) installed, as well as the runtime client. Also on the client - DB2 Application Development package. Use this to compile PHP --with-ibm-db2=.

[PHP-DB] arrays

2001-02-04 Thread Alarion
Hello, Well, I haven't used arrays in PHP too much and am wondering how I might go about this: I want to loop through a result set, say with ODBC, and use the "fetch_array" function for each row. Now, What I want is a an array of all the rows, so I could then access the "Name" column in Row 5 l

Re: [PHP-DB] arrays

2001-02-04 Thread phobo
Like this: $blah = "hello"; $miaow[$blah][5] = 3.14; ( is the same as doing $miaow["hello"][5] = 3.14; ) - Siggy - Original Message - From: "Alarion" <[EMAIL PROTECTED]> To: "'PHP-DB'" <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 10:06 AM Subject: [PHP-DB] arrays > Hello, >

Re: [PHP-DB] Migrating MySQL Table Data

2001-02-04 Thread John McCreesh
In article <000401c08e92$84cf2030$0100a8c0@phobo>, phobo <[EMAIL PROTECTED]> writes >I am in the process of improving a database scheme considerably in MySQL, by >breaking tables into smaller tables and so one. I am wondering if there is a >simple SQL statement to take ALL ROWS of fields 'f1', 'f2

RE: [PHP-DB] arrays

2001-02-04 Thread Alarion
Right, but what I am trying to figure out, is how to get the "key" names for the arrays. for example, if I have a users table: users - id name password and I want to select * from users and load ALL the data into an array, for the use in easily moving back and forth in the data set,

Re: [PHP-DB] arrays

2001-02-04 Thread phobo
see www.php.net/odbc you want to use odbc_field_name() and odbc_num_fields() Siggy - Original Message - From: "Alarion" <[EMAIL PROTECTED]> To: "'phobo'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 11:46 AM Subject: RE: [PHP-DB] arrays > Right, but wha

Re: [PHP-DB] No security on mySql database - help!

2001-02-04 Thread Chuck Mayo
Thanks for the tip - I'll give it a read and see if it'll work for me. I need to get a handle on sessions & cookies anyway, maybe this is a good time. I don't have any php books, good or otherwise. I've been using the documentation at www.php.net and scanning the list archives to feel my way arou

Re: [PHP-DB] Oracle TNS problems with PHP4?

2001-02-04 Thread Steve Farmer
Hi Mark, I run Oracle 8i with apache and PHP 4 on about 6 different machines , all connect to a remote DB and i have no problems @ all. Regards Steve Farmer At 8:29 AM -0600 2/2/01, Mark Farver wrote: >I am running Oracle 8.0.5 Net8 drivers on a Win95 system using Apache >and PHP4.04pl1. I'm g

[PHP-DB] How to make $1,000,000 by selling to newcomers on the net

2001-02-04 Thread 75423000
Dear [EMAIL PROTECTED], {Thank you - you have been automatically removed from all future mailings.} Every month over 1,000,000 new commerce web-sites join the internet. Newcomers to the Net who need your help. The question is, how do you trace them, and sell them your Internet Program? In fa

Re: [PHP-DB] Connection closing problem!

2001-02-04 Thread Andrew Hill
Drew, It is a good idea to explicitly close the connection and release the connection handle on the server side. If Apache PHP threads do not exit normally the database session can remain open. This leaves a zombie connection on the database server. What is your connection/close logic and what

[PHP-DB] Connection closing problem!

2001-02-04 Thread drew
Hi, Does anyone know of or have a problem that means that the HTML server will not receive the message back from the MySQL server to say close the connection. The two servers are on two seperate machines. The html server is Apache using the PHP scripting language. The error messages I

Re: AW: [PHP-DB] Oracle Persistant Connections

2001-02-04 Thread Victor Foitzik
Hi everybody, We recently had (and have) similar problems running PHP4/Apache with 10 FreeBSD Clients and a SunE450 with Oracle 8.1.6. The machine is quite powerful (4 procs, 4 Gigs RAM). Anyway, we had to limit the number of simultaneous dedicated connections after our server was blown up wit

Re: [PHP-DB] newbie question

2001-02-04 Thread Victor Foitzik
Hi Lisa, >Can search engines index any HTML pages that have .php as its extension (any >.php pages without a '?' or '&' in the URL) ? For example: >http://www.blablabla.com/blabla.php > >Thanks, >Lisa E yes they can, but my experience is, that most search engine robots do _not_ index pages endi

Re: [PHP-DB] .htpasswd?

2001-02-04 Thread Victor Foitzik
James Smith wrote: >Is there a way that when a user signs up for a >user/pass on a site, to automatically update the >.htpasswd on the site? Right now I'm running a Win2k >Pro, with Apache installed and MySQL/PHP. > >Thanks, > >James The quite simpliest method is to put appropriate directives

[PHP-DB] bcmath and rpm

2001-02-04 Thread Suhardi Hamid
Hello, I am a newbie. I downloaded a new php 4.0.4pl1 rpm and installed it in my linux box Red Hat version 7.0 which also has a mysql server inside. The problem is whenever it comes to calculations using bcmath functions, PHP returns fatal error. I realized that the rpm version of php is not compi

Re: [PHP-DB] bcmath and rpm

2001-02-04 Thread Wayne Bastow
Suhardi, Download the source and configure and make it with the appropriate directives. Wayne On Mon, 5 Feb 2001 14:18, Suhardi Hamid wrote: > Hello, > I am a newbie. I downloaded a new php 4.0.4pl1 rpm and installed it in > my linux box Red Hat version 7.0 which also has a mysql server insi

Re: [PHP-DB] .htpasswd?

2001-02-04 Thread Cody Caughlan
You could also run something like: system("htpasswd -b passwordilf $user $password"),,,basically get the shell to run a the htpasswd program supplied by apache. you might have to play around with the permissions to do this, so the webserver can execute the htpasswd binary. /cody caughlan Victor

[PHP-DB] db2 with php

2001-02-04 Thread Chris Book
Hello, I've installed db2 and created the default instance at /home/db2inst1/. PHP is compiled with the --with-ibm-db2 option, however when I try to start apache I get the message: "Cannot load /etc/httpd/modules/libphp4.so into server: libdb2.so.1: cannot open shared object file: No such file o

Re: [PHP-DB] db2 with php

2001-02-04 Thread Wayne Bastow
Chris, Looks like libphp4.so need sto know where libdb2.so.1 is. I would look at two things: if db2 libraries are not in the standard location then you need to specify the location in --with-ibm-db2=/home/ (this is a guess). or look at ldconfig - you will probably need to specify the db2

RE: [PHP-DB] & [PHP] .htpasswd?

2001-02-04 Thread Thor Arne Madland
Hi, you might want to take a look at this one: http://www.thewebmasters.net/php/Htpasswd.phtml Works in both php3 and php4. Give you functions for adding/deleting/listing/renaming users + much more, in standard .htpaccess password files. I use it myself on several sites, it works great. - t.a

[PHP-DB] Remote Oracle Connection

2001-02-04 Thread Doug Schasteen
Am I blind? Or is there no support with the regular oracle functions to connect to a database that is hosted on another machine? The manual has this: $conn = Ora_Logon(username, password); but I don't see anywhere to put the host string. - Doug Schasteen

Re: [PHP-DB] db2 with php

2001-02-04 Thread szii
Well, if it says that it's looking for it in /etc/httpd/modules then it's obviously not looking in /home/db2inst1/sqllib/lib, eh? Try a symlink... "ln -s /home/db2inst1/sqllib/lib/libdb2.so.1 /etc/httpd/modules/libphp4.so/libdb2.so.1" Or copy the library. Or I think you can add a line into /et

[PHP-DB] RESEND - php class to C struct interface possible?

2001-02-04 Thread Phil Rhoades
Hi all, Thought I would try sending this again - didn't get a reply last time - guess I'll give up if this attempt doesn't get a reply . . I've just subscribed and haven't even got any mail from the list yet so I hope this isn't a dumb question . . The php xBase interface is very basic so: W