Re: [PHP] database

2003-10-27 Thread alain dhaene
It works, Thx "John Nichel" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > alain dhaene wrote: > > I have try > > but I get the following error: > > > > > > Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource > > in /home/schoolre/public_html/Hitek/Online/

[PHP] Parsing specific portions of XML files

2003-10-27 Thread Ryan Thompson
I'm stumped. I think it's just the logic I can't figure out. I have a file formatted for Docbook in XML. I'm trying to figure out a way to parse a specifice portion of an itemizedlist. It's for a change log. I want users to be able to view changes made to just one version and possibly for all. I

Re: [PHP] Upgrading GD...

2003-10-27 Thread Ryan Thompson
Off the top of my head I can't think of where to get GD but google should be able to tell you. As for PHP just go to http://www.php.net/manual/en/install.apache2.php assuming your running Apache 2.0 is no just change apache2 for apache in the url. The php documentation has install instructions f

Re: [PHP] How to deal with XML?

2003-10-27 Thread Leif K-Brooks
Robert Cummings wrote: PHP docs are SGML as far as I can remember. How so? PHP isn't XML, SGML, HTML, or anything else besides PHP. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP Gene

Re: [PHP] Upgrading GD...

2003-10-27 Thread Leif K-Brooks
Ryan Thompson wrote: Just a thought. Try using phpinfo() to find out the compile options. Use that and just add the GD compile options after upgrading GD. That's usually how I go about adding a new module. I can never remember what I've compiled into it. Thing is, I don't know how to get GD,

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Justin French
On Tuesday, October 28, 2003, at 09:29 AM, Chris Shiflett wrote: --- Justin French <[EMAIL PROTECTED]> wrote: a) echo " "; The curly braces are superfluous here, since you are using double quotes. I'm not sure if you like having them there, but I think that less syntax yields a simpler and clea

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Justin French
On Tuesday, October 28, 2003, at 09:23 AM, Chris W. Parker wrote: Exactly what is the problem with: echo " "; it's purely personal -- i don't enjoy writing, re-writing, debugging or modifying code with 100's of escaped double quotes everywhere when they really aren't needed. Justin -- PHP Ge

Re: [PHP] How to deal with XML?

2003-10-27 Thread Robert Cummings
Seems it was derived from SGML, I guess not a subset, but not created from the ground up either :) Small quote from: http://www.w3.org/XML/ Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-sca

Re: [PHP] Tricky variable syntax...

2003-10-27 Thread Curt Zirzow
* Thus wrote René Fournier ([EMAIL PROTECTED]): > echo 'file name: '.$$fld_name.''; > > What I want to do is echo the value of $img_photo_name. But how can I > refer to it? The straight forward method would be: $fld_name = $$fld . "_name"; echo 'file name: '.$$fld_name.''; Or t

Re: [PHP] Tricky variable syntax...

2003-10-27 Thread Leif K-Brooks
René Fournier wrote: What I want to do is echo the value of $img_photo_name. But how can I refer to it? echo 'file name: ' . ${$fld . '_name'}; -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

[PHP] Tricky variable syntax...

2003-10-27 Thread René Fournier
I'm trying to refer to a variable using $$, but with a twist. So far, this works: echo 'temp file: '.$$fld.''; In this case, $fld equals "img_photo" (although it could be anything). The above statement could have thus been "echo 'file name: '.$img_photo.'';" with the same results. So here I actua

[PHP] deny php-general@lists.php.net

2003-10-27 Thread Prabhat Gupta
Jason Wong wrote: >On Tuesday 28 October 2003 08:33, Manisha Sathe wrote: > > >>ok, i am putting it the code in both files, now my first.php is as follows >> >> > >[code snipped] > >The code looks OK. Things you can do to try track down the problem: > >1) As always, turn on FULL error repo

Re: [PHP] How to deal with XML?

2003-10-27 Thread Ryan Thompson
Just a small correction. I could be wrong but I don't believe XML is a subset of SGML but created to be used instead of. It was created from the ground up to replace SGML(not the easiest language to work with). On Monday 27 October 2003 23:21, Robert Cummings wrote: > On Mon, 2003-10-27 at 20:40

Re: [PHP] Upgrading GD...

2003-10-27 Thread Ryan Thompson
Just a thought. Try using phpinfo() to find out the compile options. Use that and just add the GD compile options after upgrading GD. That's usually how I go about adding a new module. I can never remember what I've compiled into it. On Monday 27 October 2003 20:44, Leif K-Brooks wrote: > Curt

Re: [PHP] How to deal with XML?

2003-10-27 Thread John Nichel
Robert Cummings wrote: (Multi User Dimension). For example let's say we have a player with the following stats: 15 19 18 14 10 Let's hope this player is a spell slinger, and not a fighter. :) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (ht

Re: [PHP] How to deal with XML?

2003-10-27 Thread Robert Cummings
On Mon, 2003-10-27 at 20:40, Simon Fredriksson wrote: > I think I've missed something somewhere, but how do I use XML? > Everywhere, there are big hypes about XML. I could proably google quite > a bit on this, but could someone give me a hint on how to use it in, say > datahandling? Or to parse

Re: [PHP] Handling Notices

2003-10-27 Thread Jason Wong
On Monday 27 October 2003 20:47, Burhan Khalid wrote: > The notice is basically saying that you are trying to assign a value to > a variable for an index that doesn't exist (so the value of the variable > can't be guaranteed). > > One way is to verify that the index exists before you assign its va

Re: [PHP] Change text size with GD

2003-10-27 Thread Jason Wong
On Monday 27 October 2003 21:11, Cranky wrote: > > I use the function imageTTFtext allows you to specify a string with a > > font and a font point size. > With this function is it possible to specify the size of the text with > width and height and not only with an integer ? You can only specify

[PHP] Verify tFJArIPD for REMOVETHISWORD php-general@lists.php.net

2003-10-27 Thread Prabhat Gupta
Hi! Your message has been received, but it hasn't been delivered to me yet. As I don't have any record of you sending me mail from this address before, I need to verify that you're not a spammer. Please reply and alter the Subject line to remove the word REMOVETHISWORD, and your previous message

Re: [PHP] Session problem

2003-10-27 Thread Jason Wong
On Tuesday 28 October 2003 08:33, Manisha Sathe wrote: > ok, i am putting it the code in both files, now my first.php is as follows [code snipped] The code looks OK. Things you can do to try track down the problem: 1) As always, turn on FULL error reporting and check the logs 2) Verify that your

Re: [PHP] keyword search syntax

2003-10-27 Thread Robb Kerr
On Tue, 28 Oct 2003 02:09:06 +, David Otton wrote: > > Personally, I'd normalize that into a keyword table, a record table and a > joining table. > > However, the SQL keyword you're looking for is LIKE > > WHERE field LIKE '%$variable%' I agree. I'd structure the data quite differently. Bu

Re: [PHP] How to deal with XML?

2003-10-27 Thread Becoming Digital
I'd recommend you hit up Amazon and set aside some reading time. The below are a couple from my collection. Applied XML Solutions - Benoit Marchal - Sams Publishing XML Design Handbook - Bonneau, et al - Wrox Edward Dudlik "Those who say it cannot be done should not interrupt the person doing i

Re: [PHP] keyword search syntax

2003-10-27 Thread David Otton
On Mon, 27 Oct 2003 20:00:24 -0600, you wrote: >I've got a field in my database that contains keywords about the particular >record. I've got a form with a text entry field for visitors to enter >keywords for which they would like to find records whose keyword field >contains the words they entere

[PHP] keyword search syntax

2003-10-27 Thread Robb Kerr
I've got a field in my database that contains keywords about the particular record. I've got a form with a text entry field for visitors to enter keywords for which they would like to find records whose keyword field contains the words they entered. The submission form assigns the keywords entered

[PHP] passing variables

2003-10-27 Thread Joao Andrade
Hey everybody, That's lame but I've been looking for a while and found nothing. What are the ways to pass variables to another script? As far as I'm concerned there are POST and GET variables, and I know they can by set via HTML forms, but I only know how to pass user input variables

Re: [PHP] Upgrading GD...

2003-10-27 Thread Leif K-Brooks
Curt Zirzow wrote: The odds aren't that good, unless the current gd is loaded from a shared object instead of linked directly to php. Check your configure command from phpinfo() if it has the option --with-gd then it was linked directly. Otherwise it is loaded from an shared object file located in

[PHP] How to deal with XML?

2003-10-27 Thread Simon Fredriksson
I think I've missed something somewhere, but how do I use XML? Everywhere, there are big hypes about XML. I could proably google quite a bit on this, but could someone give me a hint on how to use it in, say datahandling? Or to parse a website (like the php docs). //Simon -- PHP General Mailin

Re: [PHP] Upgrading GD...

2003-10-27 Thread Curt Zirzow
* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]): > I need to use imagecreatetruecolor(), but my server is still using GD > 1.6. Is it possible to upgrade GD without having to recompile PHP, etc.? > I'm still fairly new to Linux administration. The odds aren't that good, unless the current gd is l

[PHP] Upgrading GD...

2003-10-27 Thread Leif K-Brooks
I need to use imagecreatetruecolor(), but my server is still using GD 1.6. Is it possible to upgrade GD without having to recompile PHP, etc.? I'm still fairly new to Linux administration. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

Re: [PHP] database

2003-10-27 Thread John Nichel
alain dhaene wrote: I have try but I get the following error: Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/schoolre/public_html/Hitek/Online/connectie.php on line 16 Alain Look here http://us4.php.net/manual/en/language.variables.scope.php Your $link

Re: [PHP] Session problem

2003-10-27 Thread Manisha Sathe
ok, i am putting it the code in both files, now my first.php is as follows //start the session - in all the pages session_start(); var_dump(ini_get('variables_order')); var_dump(isset($_SESSION)); var_dump($_SESSION); //store it like that $_SESSION["name"]= "Rinku"; -

Re: [PHP] Variables not passing to mail script

2003-10-27 Thread Jeff - Harbornet
Disregard last email. I figured it out. Thanks. Jeff Harbornet Jeff - Harbornet wrote: > Hi all. I am running into a problem with posting html data into a PHP > script. The script works on another site that I have created, with this > html code, the variables are not passing to the sendmail.php

[PHP] Variables not passing to mail script

2003-10-27 Thread Jeff - Harbornet
Hi all. I am running into a problem with posting html data into a PHP script. The script works on another site that I have created, with this html code, the variables are not passing to the sendmail.php script. Below is the HTML code: http://www.neighborhoodchoices.com/sendm

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > p.s. And yes Curt you touched on why I put my 's all on > one line. Some browsers (I know IE does) like to add whitespace if > the and are not all on the same line. Which is why I didn't complain about that. :-) You had your closing tr on the s

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- DvDmanDT <[EMAIL PROTECTED]> wrote: > It's said that you shouldn't use tables for layout, but does people > accutually listen to that? And what instead? You can use stylesheets. These work well with PHP. Well, that's my attempt at getting this thread back on topic. :-) Chris = My Blog

Re: [PHP] preg match compilation error

2003-10-27 Thread Curt Zirzow
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): > Do you realy want to use [ and ] as patern delimiters? My quess is that > you want to use it for defining character class. Then the only character > that must be escaped is - > > '/[^a-z0-9,._+()\-]/i' actually, you don't even need that escape

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Curt Zirzow on Monday, October 27, 2003 3:16 PM said: > 5. no newline after the tr. :) > > There are some broswer issues with tr and td's not being on the > same line. Ok I resisted sending this earlier but it appears it is now necessary. ;) Here is how I WOULD ha

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Mike Migurski
>It's said that you shouldn't use tables for layout, but does people >accutually listen to that? And what instead? This is veering off-topic, but: - michal migurski- contact info

Re: [PHP] preg match compilation error

2003-10-27 Thread Marek Kilimajer
Do you realy want to use [ and ] as patern delimiters? My quess is that you want to use it for defining character class. Then the only character that must be escaped is - '/[^a-z0-9,._+()\-]/i' Luis Lebron wrote: I found a reqular expresion that I'm using to check for valid characters in file n

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread DvDmanDT
It's said that you shouldn't use tables for layout, but does people accutually listen to that? And what instead? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to find out m

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Exactly what is the problem with: > > > > echo " "; > > > > I don't see the problem. > > I agree with you, actually. The only things I don't like are: > > 1. The use of the bgcolor attribute

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Exactly what is the problem with: > > echo " "; > > I don't see the problem. I agree with you, actually. The only things I don't like are: 1. The use of the bgcolor attribute 2. The name of the variable :-) 3. The fact that your td is not tabbe

Re: [PHP] php temp table question (for mysql)

2003-10-27 Thread Curt Zirzow
* Thus wrote Larry Brown ([EMAIL PROTECTED]): > Does anyone know whether the use of persistent connections with php will > allow a temp table created by a script to linger around and cause a problem > with the next execution of the script when it tries to create the temp table > again? Also if it

Re: [PHP] preg match compilation error

2003-10-27 Thread Curt Zirzow
* Thus wrote Luis Lebron ([EMAIL PROTECTED]): > I found a reqular expresion that I'm using to check for valid characters in > file names. > > Here's the sample code: > > if(preg_match("[^a-zA-Z0-9,._\+\()\-]",$filename)) > { > //blah, blah, blah > } preg_* need a pattern deliminater (most

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Chris Shiflett on Monday, October 27, 2003 2:30 PM said: > --- Justin French <[EMAIL PROTECTED]> wrote: >> a) echo " "; > > The curly braces are superfluous here, since you are using double > quotes. I'm not sure if you like having them there, but I think that > les

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- Justin French <[EMAIL PROTECTED]> wrote: > a) echo " "; The curly braces are superfluous here, since you are using double quotes. I'm not sure if you like having them there, but I think that less syntax yields a simpler and cleaner appearance. However, I hate single quotes around HTML attribu

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Justin French on Monday, October 27, 2003 2:12 PM said: > a) echo " "; > b) echo " "; > c) echo ' '; > d) echo " "; Exactly what is the problem with: echo " "; I don't see the problem. Chris. -- Don't like reformatting your Outlook replies? Now there's relief!

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Justin French
On Tuesday, October 28, 2003, at 04:29 AM, Chris W. Parker wrote: olinux on Friday, October 24, 2003 9:41 PM said: echo " "; uggh - apparently you've never had to redesign a site/application that uses this style. This is one table cell, but when you work this style

RE: [PHP] Re: preg match compilation error (Resolved)

2003-10-27 Thread Luis Lebron
Thanks, That did the trick. Luis -Original Message- From: DvDmanDT [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 3:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: preg match compilation error Start and end with same char, for example with a / or a #... Like if(preg_match("#[^a

Re: [PHP] php temp table question (for mysql)

2003-10-27 Thread CPT John W. Holmes
From: "CPT John W. Holmes" <[EMAIL PROTECTED]> > Temporary tables are unique for that specific question. I mean "connection", not "question"... I'm working on a survey system, so I have "questions" on my mind. :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] php temp table question (for mysql)

2003-10-27 Thread CPT John W. Holmes
From: "Larry Brown" <[EMAIL PROTECTED]> > Does anyone know whether the use of persistent connections with php will > allow a temp table created by a script to linger around No, the table will still be removed at the end of the script whether you use persistant connections or not. > and cause a p

RE: [PHP] PHP with Frames (cont.)

2003-10-27 Thread Larry Brown
Are you trying to access variables between frames or just get a php script to run when it is one frame. I have php pages running in frames in a number of places. You could not access variables between the frames though. You would have to use a client side script to do that. You could have somet

RE: [PHP] php temp table question (for mysql)

2003-10-27 Thread Pablo Gosse
On Larry Brown wrote: - Does anyone know whether the use of persistent connections with php will allow a temp table created by a script to linger around and cause a problem with the next execution of the script when it tries to create the temp table again? Also if it does prese

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
Alain, Ok, I aplogize, for I neglected to notice that you were not passing back the db connection $link variable from your openDB function, so here is what you are going to want to do. page connectie.php Function openDB() { $link = mysql_connect("localhost", "host", "pas") or die("geen

[PHP] php temp table question (for mysql)

2003-10-27 Thread Larry Brown
Does anyone know whether the use of persistent connections with php will allow a temp table created by a script to linger around and cause a problem with the next execution of the script when it tries to create the temp table again? Also if it does present a problem with the next script execution

[PHP] php temp table question

2003-10-27 Thread Larry Brown
Does anyone know whether the use of persistent connections with php will allow a temp table created by a script to linger around and cause a problem with the next execution of the script when it tries to create the temp table again? Also if it does present a problem with the next script execution

[PHP] Re: preg match compilation error

2003-10-27 Thread DvDmanDT
Start and end with same char, for example with a / or a #... Like if(preg_match("#[^a-zA-Z0-9,._\+\()\-]#",$filename)) -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to fin

[PHP] preg match compilation error

2003-10-27 Thread Luis Lebron
I found a reqular expresion that I'm using to check for valid characters in file names. Here's the sample code: if(preg_match("[^a-zA-Z0-9,._\+\()\-]",$filename)) { //blah, blah, blah } However, when I run the script I get the following error: Warning: Compilation failed: unmatched paren

Re: [PHP] GD problem

2003-10-27 Thread Becoming Digital
If this server is for anything beyond internal development, you should seriously reconsider using Apache 2 with PHP. As has been said numerous times and is very well documented, the combination can be highly unstable. I know this doesn't answer your question but hopefully it prevents further qu

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Chris Shiflett
--- DvDmanDT <[EMAIL PROTECTED]> wrote: > > Can you see the problem(s) now? Never underestimate the benefits of > > writing clean code. :-) > > Hehe, you should see my code.. Yes, very messy and disorganized. Is this an admission of guilt, a cry for help, or what? Chris = My Blog http:

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
Shit! payment(); WORKS! Thank for teach me how to do a function guys!!! Frank --- Frank Tudor <[EMAIL PROTECTED]> wrote: > Oh?!?! > > Sweet! thanks... let me try that and get back to the group > > :) > > > --- Pablo Gosse <[EMAIL PROTECTED]> wrote: > > On Monday, October 27, 2003 11:26

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
Oh?!?! Sweet! thanks... let me try that and get back to the group :) --- Pablo Gosse <[EMAIL PROTECTED]> wrote: > On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote: > > > This one worked (kinda) > > I have no more errors but it doesn't do the redirect > (hmmm)?? > > > $payment = "

Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
I get my ugly purple test page :) Frank --- Chris Shiflett <[EMAIL PROTECTED]> wrote: > --- Frank Tudor <[EMAIL PROTECTED]> wrote: > > I am putting in the $payment="1"; so it will automatically > go to > > test_page2.html but it just sits there. > [snip] > > header ('Location: http://ftudor/test

Re: [PHP] RE: function help redirect help

2003-10-27 Thread DvDmanDT
> Can you see the problem(s) now? Never underestimate the benefits of writing > clean code. :-) Hehe, you should see my code.. function dp_neg($v1,$v2){ $neg = ((substr((string)$v1,0,1)=="-")||((substr((string)$v2,0,1)=="-"))); $bneg= ((substr((string)$v1,0,1)=="-")&&((substr((string)$v2,0,1)=="-

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Pablo Gosse
On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote: > This one worked (kinda) > I have no more errors but it doesn't do the redirect (hmmm)?? > $payment = "1"; > > function payment(){ > global $payment; > if ($payment == "0"){ > header ('Location: http://ftudor/test/test_page.html'); >

Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Chris Shiflett
--- Frank Tudor <[EMAIL PROTECTED]> wrote: > I am putting in the $payment="1"; so it will automatically go to > test_page2.html but it just sits there. [snip] > header ('Location: http://ftudor/test/test_page2.html'); What happens when you type it into your browser manually? http://ftudor/test/te

Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
This one worked (kinda) I have no more errors but it doesn't do the redirect (hmmm)?? So now here is what it looks like: I am putting in the $payment="1"; so it will automatically go to test_page2.html but it just sits there. Is there a headers thing already going on blocking this? I know

[PHP] PHP with Frames (cont.)

2003-10-27 Thread rich
No, he's right - this is an issue. Do variables persist between PHP files? In the attached scripts I have a login page which directs the user, on a sucessful login, to a front page which is a frameset. The login.php opens a connection to a MySQL database ($connection) but once the browser has be

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Chris Shiflett
--- Frank Tudor <[EMAIL PROTECTED]> wrote: > function payment() > { > global $payment; > if ($payment == '0'); > header ('Location: http://ftudor/test/test_page.html'); > } > > elseif ($payment == '1') > { > header ('Location: http://ftudor/test/test_page2.html'); > } Your co

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Frank Tudor
I made the changes but I am getting: Parse error: parse error, unexpected T_ELSEIF I did take the second global statement out after I cut and pasted your code and modified the urls so now here is what it looks like (the whole thing). Frank http://ftudor/test/test_page.html'); } elsei

[PHP] Re: function help simple redirect

2003-10-27 Thread DvDmanDT
$payment = "1"; function payment(){ global $payment; if ($payment == "0"){ header ("Location: test_page.html"); } elseif ($payment == "1") { header ("Location: test_page2.html"); } } -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are us

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Chris Shiflett
--- Frank Tudor <[EMAIL PROTECTED]> wrote: > I am getting a elseif parse error. Let me clean up your code a bit, and hopefully the error will stand out. function payment() { global $payment; if ($payment == '0'); header ('Location: http://example.org/test_page.html'); } global $p

[PHP] RE: function help simple redirect

2003-10-27 Thread Frank Tudor
Sorry I'm getting this error message Parse error: parse error, unexpected T_ELSEIF __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] database

2003-10-27 Thread alain dhaene
I have try but I get the following error: Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/schoolre/public_html/Hitek/Online/connectie.php on line 16 Alain "Jordan S. Jones" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Alain, > > You can

RE: [PHP] RE: function help redirect help

2003-10-27 Thread Gregory Kornblum
Remove the second 'global $payment;'. Regards. -Gregory -Original Message- From: Frank Tudor [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 2:01 PM To: 1PHP Subject: [PHP] RE: function help redirect help Here is what Ihave I am getting a elseif parse error. Is there somethin

[PHP] RE: function help redirect help

2003-10-27 Thread Frank Tudor
Here is what Ihave I am getting a elseif parse error. Is there something I'm leaving out? Frank code --- $payment = "1"; function payment(){ global $payment; if ($payment == "0"); header ("location:test_page.html"); } global $payment; elseif ($payment == "1") { header ("location:test_pag

[PHP] RE: function help redirect help

2003-10-27 Thread Frank Tudor
$payment = "1"; function payment(){ global $payment; if ($payment == "0"); header ("location:test_page.html"); } global $payment; elseif ($payment == "1") { header ("location:test_page2.html"); } __ Do you Yahoo!? The New Yahoo! Shopping - with improved product se

Re: [PHP] function problem (simple redirect)

2003-10-27 Thread Chris Shiflett
--- Frank Tudor <[EMAIL PROTECTED]> wrote: > function $payment{ You probably mean payment, not $payment. > header ("location:test_page.html"); The Location header has an uppercase L, a space after the colon, and an absolute URL after the space. Your example violates all three. Hope that helps.

RE: [PHP] MysSQL db not restoring

2003-10-27 Thread Chris W. Parker
Curt Zirzow on Friday, October 24, 2003 5:19 PM said: > You probably have a field name that is a keyword of some sort. Hard > to tell without seeing the create table syntax. I checked this out and I did not have any keywords as column names. Would it help if I poste

Re: [PHP] Multi-dimensional array help

2003-10-27 Thread David Otton
On 27 Oct 2003 13:20:48 -0500, you wrote: >echo ''."\n" >.'' >.'SKU' >.'Jan' >.'Feb' >.'Mar' >.'Apr' >.'May' >.'Jun' >.'Jul' >.'Aug' >.'Sep' >.'Oct' >.'Nob' >.'Dec' >.''."\n"; for ($i = 1; $i <= 12; $i++) { e

RE: [PHP] function problem (simple redirect)

2003-10-27 Thread Gregory Kornblum
Make that: function payment{ global $payment; -Gregory -Original Message- From: Gregory Kornblum [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 1:30 PM To: 'Frank Tudor'; 1PHP Subject: RE: [PHP] function problem (simple redirect) >function $payment{ Change that to: func

RE: [PHP] function problem (simple redirect)

2003-10-27 Thread Gregory Kornblum
>function $payment{ Change that to: function payment{ $global $payment; Regards, -Gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function problem (simple redirect)

2003-10-27 Thread Frank Tudor
I'm trying to make this function work, but I'm not good at functions. I have created a variable for testing payment equal to 1 or 0 to see what would happen based on whatever the condition is in my database (the sql stuff is not here because i have to figure this thing out first). I get a t_strin

Re: [PHP] Re: Post variables and mysql queries

2003-10-27 Thread Eugene Lee
On Mon, Oct 27, 2003 at 09:38:32AM -0800, Justin Patrin wrote: : : $query='Select * from users where userid="'.$_POST['userid'].'"'; : : I tend to use single quotes whenever I can and to use concatenation : instead of using in-string variables. I do this for three reasons. The : first is effici

Re: [PHP] Multi-dimensional array help

2003-10-27 Thread Robert Cummings
On Mon, 2003-10-27 at 12:44, Aaron Gould wrote: > This array problem has been stumping my brain for a little while now... > here's a sample of my data: > > $purchases[001][200304] = array('regular'=>3, 'booked'=>4); > $purchases[002][200303] = array('regular'=>5, 'booked'=>1); > $pu

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
Alain, You can pass it in the function as a variable. E.g... Function closeDB($ref_link) { mysql_close($ref_link); } closeDB($connectie); Hope this Helps, Jordan S. Jones -- I am nothing but a poor boy. Please Donate.. https://www.paypal.com/xclick/business=list%40racistnames.com&it

[PHP] database

2003-10-27 Thread alain dhaene
Hi, I'm very new with php, so perhaps it's a silly question. I want a connection with a mysql database. This works. I can open, retrieve data, and close the database. But this happens in the same page. Now I want one page that has a function who's opening and close the connect

[PHP] Multi-dimensional array help

2003-10-27 Thread Aaron Gould
This array problem has been stumping my brain for a little while now... here's a sample of my data: $purchases[001][200304] = array('regular'=>3, 'booked'=>4); $purchases[002][200303] = array('regular'=>5, 'booked'=>1); $purchases[002][200304] = array('regular'=>1, 'booked'=>0);

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Jay Blanchard on Monday, October 27, 2003 9:31 AM said: > CSS! :) Oh that's what he meant? I thought he was talking about the quoting style used on that line. Chris. p.s. The last time I actually used bgcolor was probably almost a year ago. :) -- Don't like refo

Re: [PHP] silly question about zend

2003-10-27 Thread Ryan Thompson
On Monday 27 October 2003 04:08, Manisha Sathe wrote: > I wanted some sort of IDE for PHP, so decided to use Zend (which i believe > quite popular). > > I installed it on my redhat linux 8.0- both client and server components. > Instructions was smooth and gave me success msg, but now I do not kno

[PHP] Re: Post variables and mysql queries

2003-10-27 Thread Justin Patrin
$query='Select * from users where userid="'.$_POST['userid'].'"'; I tend to use single quotes whenever I can and to use concatenation instead of using in-string variables. I do this for three reasons. The first is efficiency. Strings surrounded by single chars are not parsed for any values, suc

Re: [PHP] usort

2003-10-27 Thread Justin Patrin
No need to write your own function, it's already in PHP. :-) What you're looking for it natsort(). It uses natural order string comparison (which takes into account numbers instead of just using characters like a regular search does). There are also lots of other 'nat' functions, such as strnat

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Jay Blanchard
[snip] >>> echo " "; > > uggh - redesign recommend? [/snip] CSS! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
olinux on Friday, October 24, 2003 9:41 PM said: >>> echo " "; > > uggh - apparently you've never had to redesign a > site/application that uses this style. This is one > table cell, but when you work this style through a big > app, it's a huge pain (waste of time)

Re: [PHP] register_globals

2003-10-27 Thread Chris Shiflett
Please include the list in all of your replies. I skim message subjects and don't read all messages. If you reply only to me, there's a good chance it will not be read, and no one else will have a chance to answer your question. --- [EMAIL PROTECTED] wrote: > As i know, if register_globals is turn

Re: [PHP] w3c-compliant form-action parameters [solved]

2003-10-27 Thread Timo Boettcher
Hi Timo, Nachricht vom Freitag, 24. Oktober 2003, 17:58:39: > I am trying to get my pages through the w3c-validator for html. > It doesn't like my > > Changing & to & got my page through the validator, but broke > my app, which seems not to be getting any parameters over URL > anymor

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-27 Thread John Nichel
Jay Blanchard wrote: [snip] Your message has been received, but it hasn't been delivered to me yet. As I don't have any record of you sending me mail from this address before, I need to verify that you're not a spammer. Please reply and alter the Subject line to remove the word REMOVETHISWORD, an

[PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-27 Thread Jay Blanchard
[snip] Your message has been received, but it hasn't been delivered to me yet. As I don't have any record of you sending me mail from this address before, I need to verify that you're not a spammer. Please reply and alter the Subject line to remove the word REMOVETHISWORD, and your previous messag

Re: [PHP] Post variables and mysql queries

2003-10-27 Thread John Nichel
Luis Lebron wrote: If I use the following query string it does not work $query="Select * from users where userid='$_POST['userid']'"; Use curly braces to eval array elements inside of a string $query = "SELECT * FROM users WHERE userid='{$_POST['userid']}'"; -- By-Tor.com It's all about th

RE: [PHP] MP3 Ripping

2003-10-27 Thread Jay Blanchard
[snip] ...some stuff... [/snip] Have you looked at Ampache? http://www.ampache.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >