Re: [PHP-DB] or { blah blah blah }

2001-11-09 Thread DL Neil
> Inside a function, I am reading data from MySQL. In case any of these calls > fail I follow them with something like: > > or echo "Can't make query to database!"; > > The problem is, I want to do more things than just this... and then I want to > return out of the function rather than con

[PHP-DB] or { blah blah blah }

2001-11-09 Thread Matthew Tedder
Inside a function, I am reading data from MySQL. In case any of these calls fail I follow them with something like: or echo "Can't make query to database!"; The problem is, I want to do more things than just this... and then I want to return out of the function rather than continuing to ex

RE: [PHP-DB] XML coming out from MySQL

2001-11-09 Thread Gonzalez, Lorenzo
I've never parsed XML with PHP, but it might help if you can show the document that's breaking the parser, and also let us know if other documents are working fine... -Lorenzo -Original Message- From: Tomas Garcia Ferrari Sent: Fri 11/9/2001 5:14 PM

RE: [PHP-DB] Automatic JOIN

2001-11-09 Thread Gonzalez, Lorenzo
MySQL does not enforce foreign key relationships. So while I believe you can still do a natural/automatic join, the fieldnames and datatypes must match. -Lorenzo -Original Message- From: Carlo Loiudice Sent: Fri 11/9/2001 5:11 PM To: PHP DB Cc: Subject: [PHP-DB] Auto

RE: [PHP-DB] JOIN operations

2001-11-09 Thread Gonzalez, Lorenzo
select n.name, c.city, c.ID from table_name n, table_city c where c.ID = n.ID_city No sweat. -Lorenzo -Original Message- From: Carlo Loiudice Sent: Fri 11/9/2001 5:01 PM To: PHP DB Cc: Subject: [PHP-DB] JOIN op

[PHP-DB] XML coming out from MySQL

2001-11-09 Thread Tomas Garcia Ferrari
Hello, I'm trying to parse an XML file stored on MySQL. I'm using this code: > global $CFG, $ME; > > $qid = db_query(" > SELECT texto > FROM articulos > WHERE id = $id > "); > > $r = db_fetch_object($qid); > $file = $r->texto; > > > $map_array = array( > "ARTICULO" => "", > "VOLANTA" =>

[PHP-DB] Automatic JOIN

2001-11-09 Thread Carlo Loiudice
Pardon, another question: Is there a way to say to Mysql to automatically detect a relation between 2 table and perform the join operation when there's a SELECT query ? I Hope this isn't a stupide question! But I've seen that in the detested MS Access, there a simple way so make a visual join betw

RE: [PHP-DB] RE: what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-09 Thread Tim Foster
> -Original Message- > From: Kodrik [mailto:[EMAIL PROTECTED]] > The problem is that you have to be able to differentiate yourself from those > fakes, and it can be difficult. They usually have flashy sites that move and > make sound linked some database capability with access (like to ca

[PHP-DB] JOIN operations

2001-11-09 Thread Carlo Loiudice
Hi, I'm preforming a join between 2 Mysql tables in this way: table_name: ID,name,ID_city table_city: ID,city when I query this: "SELECT table_name.name,table_city.ID,table_city.city FROM table_name,table_city WHERE table_name.ID_city=table_city.ID" The result is a new table with this fields: r

Re: [PHP-DB] RE: what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-09 Thread Kodrik
> >I'd also be interested in what people are charging as I'm thinking of > >setting up as a contractor myself and it would be nice to have a 'ball > > park' figure of what the going rate is ... A lot depends on what you've done and the image your customer has of the value of what you are doing.

RE: [PHP-DB] Re: [PHP-DEV] Re: [PHP-WIN] call a function from a DLL?

2001-11-09 Thread Matthew Loff
You can system()/exec()/passthru() and run rundll32 on the library, can't you? -Original Message- From: James Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 12:34 PM To: Alain Samoun; GRI Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] S

RE: [PHP-DB] Oracle, PHP4, BSD

2001-11-09 Thread Andrew Hill
Dave, 1. Yes 2. Compile --with-oci, as per the manual, and set all the appropriate ORACLE environment variables before doing so. 3. oci should be available from Oracle's site. 4. Yes, unless you want to use ODBC, and then you would install --with-iodbc per the HOWTO's on www.iodbc.org. 5. again,

[PHP-DB] Oracle, PHP4, BSD

2001-11-09 Thread D. Witten
These are pretty basic questions, but I would appreciate help: I need to access Oracle (already running on a separate server) via PHP4 from a FreeBSD Server. 1) Can this be done? (if so...) 2) Where do I find instructions? 3) Where do I get php_oci8 4) Do I HAVE to install code from Oracle (the

[PHP-DB] RE: what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-09 Thread Mikusch, Rita
Something that might be useful would be a sort of "guide" or list of tips and tricks to creating a quotation for a programming job. I wouldn't know where to find something like that though. Maybe the business section of a larger bookstore? rita. -Original Message- From: Steve Brett [mail

[PHP-DB] Re: [PHP-DEV] Re: [PHP-WIN] call a function from a DLL?

2001-11-09 Thread James Moore
> See: > http://www.php.net/manual/en/faq.com.php#AEN63770 > A+ > Alain That FAQ isnt totally right. With the new w32api extension you can do so but its still very experimental so Id advise you either to write your own little extension to PHP to access your dll (shouldnt take you more than a coup

[PHP-DB] Re: [PHP-WIN] call a function from a DLL?

2001-11-09 Thread Alain Samoun
See: http://www.php.net/manual/en/faq.com.php#AEN63770 A+ Alain On Fri, Nov 09, 2001 at 05:12:09PM +, GRI wrote: > Hi there, > > I was wondering if it is possible to call a function from my self > created DLL from my PHP script. > > Thanks in advanced. > > > -- > PHP Windows Mailing Lis

[PHP-DB] call a function from a DLL?

2001-11-09 Thread GRI
Hi there, I was wondering if it is possible to call a function from my self created DLL from my PHP script. Thanks in advanced. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP-DB] odbc_fetch_row failure

2001-11-09 Thread mike luce
Im trying to obtain a list of tables in a database. To do this, ive come up with the following code. $conn = odbc_connect("mydsn", "", ""); $tablelist = odbc_tables($conn); while(odbc_fetch_row($tablelist)) { $tbname = odbc_result($tablelist, 3); } Now the page just times out. I believ

[PHP-DB] Re: Newbie Question

2001-11-09 Thread Steve Brett
have a look at get_html_translation_table() in the php manual. there is an example of conversion of all special chars so they can be inserted into the database as text (i.e. £>£) and a cool way of 'decoding' them if you need to write them to a file. A Browser wil interpret them correctly when the

Re: RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread DL Neil
> However, in a match between the Dallas Cowboys (American Football team) and > Manchester United (Funny Football team), the win goes to the Cowboys. > yee...haaa... =an unwise comparison, British football/soccer involves continuous play for two halves of 45 minutes each. American footballers ke

RE: [PHP-DB] COPY files = Warning permission denyed

2001-11-09 Thread Rubanowicz, Lisa
Hi , I had this problem too so... Say it is your pics directory that you want to upload to, I use Leech FTP for my uploads, right click on the pics directory goto Set Attributes and set it to 777. This is not very good practice, but since I don't have the sites live it does'nt matter too much yet

[PHP-DB] Re: what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-09 Thread Steve Brett
many thanks, this may sound totally dumb but where do you find your work ? is it via word of mouth or do you advertise etc ? Steve "Tim Foster" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >I'd also be interested in what people are charging as I'm thinkin

SV: [PHP-DB] COPY files = Warning permission denyed

2001-11-09 Thread Trond Erling Hundal
This is a problem in your server. Not apache, but the OS itself... Linux gives user access based on certain values... php normally runs as the user "nobody", so what you have to do is to make sure user nobody has the right to read/write in your temp folder (defined in php.ini) Or else... >

RE: [PHP-DB] COPY files = Warning permission denyed

2001-11-09 Thread matt stewart
think the most likely is there is not a temporary upload directory set in PHP on your server? I'd check the relevant PHP settings first, also check the final destination folder has relevant write permissions. -Original Message- From: Ivo [mailto:[EMAIL PROTECTED]] Sent: 09 November 2001 1

[PHP-DB] COPY files = Warning permission denyed

2001-11-09 Thread Ivo
When I try to copy some files from my local PC to the server there appears a message " Warning: Unable to create '/xxx.gif': Permission denied in /xxx.php3" on line xx Where should I search the problem. In the apache server, php or linux. -- PHP Database Mailing List (http://www.php.net/) To

[PHP-DB] RE: what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-09 Thread Tim Foster
>I'd also be interested in what people are charging as I'm thinking of >setting up as a contractor myself and it would be nice to have a 'ball park' >figure of what the going rate is ... > >Pls mail replies to [EMAIL PROTECTED] Feel free to post your responses to the list. I'm curious about it to

RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Rick Emery
I could only aspire to that... We better end this thread. We are WAY OFF-TOPIC -Original Message- From: matt stewart [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 8:37 AM To: 'Rick Emery'; [EMAIL PROTECTED] Subject: RE: RE: [PHP-DB] inserting array into mySQL is that you

RE: RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread matt stewart
is that you John Wayne? -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 09 November 2001 14:33 To: [EMAIL PROTECTED] Subject: RE: RE: [PHP-DB] inserting array into mySQL Well we're a little far afield from Manchester. However, in a match between the Dallas Cowboys

RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread matt stewart
yeah, something like that "only two kinds of people come from texas" as i recall... ah, friday afternoon humour. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 09 November 2001 14:31 To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] inserting array into mySQL Was that li

RE: RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Rick Emery
Well we're a little far afield from Manchester. However, in a match between the Dallas Cowboys (American Football team) and Manchester United (Funny Football team), the win goes to the Cowboys. yee...haaa... -Original Message- From: Russ Michell [mailto:[EMAIL PROTECTED]] Sent: Friday, N

[PHP-DB] problems by executing DB2 stored procedures from PHP4

2001-11-09 Thread Jani Laakso
Hi, I faced unexpected problems while trying to execute IBM DB2 stored procedures from PHP4. Procedures include only in-type parameters and they do work fine when executed from command line. When adding {} around the callable statement, the procedure seemed to work but I got an error message: W

RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Rick Emery
Was that line in the movie? If so, wisely said. -Original Message- From: matt stewart [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 8:22 AM To: 'Rick Emery'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] inserting array into mySQL >>As we say here in Dallas: there are two kinds

Re: RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Russ Michell
> >>As we say here in Dallas: there are two kinds of people...those who live > in Texas...and those who wish they did. Texas?? Never heard of it! Is that somewhere north of Manchester? ;-) Russ On Fri, 9 Nov 2001 14:22:22 - matt stewart <[EMAIL PROTECTED]> wrote: > >>As we say here in Dall

RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread matt stewart
>>As we say here in Dallas: there are two kinds of people...those who live in Texas...and those who wish they did. Full Metal Jacket? ;) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.295 / Virus Database: 159 - Release Date: 0

RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Boget, Chris
> I have an array coming from a form that I need to insert into mySQL. > example: name[], phone[], address[] Use serialize() on the variable before inserting into the table and then unserialize() after retrieving the data from the table. Read up on both of the above functions for more information

RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Rick Emery
mySQL does not directly support arrays. I'm going to assume that there is a relationship between entries in each array to entries in the other arrays. Therefore, create mysql records which reflect that relationship. Something like: CREATE TABLE people ( name varchar(50) NOT NULL default "", pho

Re: [PHP-DB] Problem with special characters

2001-11-09 Thread Steve Brett
There is a solution posted on the original thread. PHP already has functions to deal with this problem. str_replace is a waste of time. Steve "Natalie Leotta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I would recommend that you try something like str_replace and replace al

[PHP-DB] Re: php, oracle and ascii characters

2001-11-09 Thread Steve Brett
Dan, This sorts out your problem completely. htmlentities() will encode the data as it is inserted into the database and get_html_translation_table will help you translate it so it can be viewed in the browser. Have a look at the manual page for the get_html_translation_table function displayed b

[PHP-DB] Re: Problem with special characters

2001-11-09 Thread Steve Brett
I have code at work that encodes and decodes escape chars when inserted into mysql or displayed as html. Can't remember the syntax exactly but I did use htmlentities and then array_flip on the way out. There is an example in the php help file. Found it. I love it when PHP can do stuff like this

[PHP-DB] Re: what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-09 Thread Steve Brett
I'd also be interested in what people are charging as I'm thinking of setting up as a contractor myself and it would be nice to have a 'ball park' figure of what the going rate is ... Pls mail replies to [EMAIL PROTECTED] Ta, Steve "Leo G. Divinagracia III" <[EMAIL PROTECTED]> wrote in message

RE: [PHP-DB] Not a valid MySQL result resource

2001-11-09 Thread matt stewart
don't you need it to be SELECT login, password... lowercase first letter? - if you're comparing the columns user.login and user.password. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 09 November 2001 01:34 To: MPropre Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] No