[PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL); if($row = mysql_fetch_array($result)) { foreach($row as $key =$value){

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 13:13 +0200, Maciek Sokolewicz wrote: On 22-09-2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL); if($row =

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashickur Rahman Noor
Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Coordinator - Public Relation Cell, FOSS Bangladesh

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Matijn Woudt
Op 22 sep. 2012 13:47 schreef Ashley Sheridan a...@ashleysheridan.co.uk het volgende: On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that.

RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
. -Mensagem original- De: Matijn Woudt [mailto:tijn...@gmail.com] Enviada em: sábado, 22 de setembro de 2012 11:02 Para: a...@ashleysheridan.co.uk Cc: Ashickur Rahman Noor; PHP List Assunto: Re: [PHP] Re: Need help to understand a code Op 22 sep. 2012 13:47 schreef Ashley Sheridan

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
; [...] And, of course, never ever use * in SQL queries. Samuel. -Mensagem original- De: Matijn Woudt [mailto:tijn...@gmail.com] Enviada em: sábado, 22 de setembro de 2012 11:02 Para: a...@ashleysheridan.co.uk Cc: Ashickur Rahman Noor; PHP List Assunto: Re: [PHP] Re: Need help to understand

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 16:19, Samuel Lopes Grigolato wrote: +1 to bad maintainability of the code. As a suggestion, one better solution could be something like: [...] class Entity { public $id; public $name; } [...] $entity = new Entity(); foreach [...] $entity-$$key = $value; [...]

RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
] Re: Need help to understand a code Op 22 sep. 2012 13:47 schreef Ashley Sheridan a...@ashleysheridan.co.uk het volgende: On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get

Re: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
2012 11:52 Para: Samuel Lopes Grigolato; 'PHP List' Assunto: Re: RES: [PHP] Re: Need help to understand a code Samuel Lopes Grigolato samuel.grigol...@gmail.com wrote: +1 to bad maintainability of the code. As a suggestion, one better solution could be something like

RES: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
setembro de 2012 12:35 Para: Samuel Lopes Grigolato Cc: 'PHP List' Assunto: Re: RES: RES: [PHP] Re: Need help to understand a code On Sat, 2012-09-22 at 12:12 -0300, Samuel Lopes Grigolato wrote: I disagree with you Ashley, some arguments can be found here: http://sqlblog.com/blogs/aaron_bertrand

[PHP] Re: Need Help in Yaf spreading

2012-08-20 Thread Laruence
CC to php-general. thanks On Mon, Aug 20, 2012 at 4:06 PM, Laruence larue...@php.net wrote: Hi: Yaf (http://pecl.php.net/yaf) is a PHP MVC framework, which is build as a PHP extension. It could be considered as the fastest PHP framework for

[PHP] Re: Need Help resolving the undefined variable and getting property of non-object errors

2009-01-27 Thread Shawn McKenzie
Terion Miller wrote: Hello All, I am having problems resolving errors with some images causing the Undefined variable and getting property of non-object errors, I am trying to make a copy function so that an order can be viewed then resubmitted as a new order with minimal changes if needed.

[PHP] Re: Need help on MySQL query

2008-12-10 Thread Carlos Medina
Rahat Bashir schrieb: Hi Experts, EID Mubarak to all. I need your help on writing a MySQL query. Scenario: CREATE TABLE transaction ( `id` int NOT NULL ATUTO INCREMENT, `date` datetime NOT NULL, `withdrawn` double (12,2) NULL, `deposit` double (12,2) NULL ); SELECT * FROM transaction; id

[PHP] Re: need help,pls

2007-07-26 Thread Dan
While we can point you in the right direction we can't build your project for you. You cover such a wide range of topics it's like you're trying to write a huge project but don't know actually how to use PHP. My recomendation is to go get a good PHP book, there's been a lot of discussion

[PHP] Re: need help

2007-07-02 Thread Colin Guthrie
Sancar Saran wrote: Beatiful web design one of the best webs site design books also this kind of books wery hard to find (because most of them try to teach you html tag by tag). You may look some other photoshop books for generating images. And of course practice makes perfect As a

[PHP] Re: Need help with modifying values

2005-12-18 Thread David Hall
modify_values2.php ++ ?php include(connect.php); $sql = Select * from leaderboard ; $result = mysql_query($sql); You'll want to do something like: $id = mysql_real_escape_string($_GET['id']); $sql = Select *

[PHP] Re: need help finding parsing error please

2005-08-05 Thread Matthew Weier O'Phinney
* Bruce Gilbert [EMAIL PROTECTED]: Hello, I am getting this on the following code, and I am not sure what is causing the error and need some pros to take a look at it for me. the error is: Parse error: parse error, unexpected '{' in

Re: [PHP] Re: need help finding parsing error please

2005-08-05 Thread Jochem Maas
Matthew Weier O'Phinney wrote: * Bruce Gilbert [EMAIL PROTECTED]: Hello, I am getting this on the following code, and I am not sure what is causing the error and need some pros to take a look at it for me. the error is: Parse error: parse error, unexpected '{' in

Re: [PHP] Re: need help finding parsing error please

2005-08-05 Thread Matthew Weier O'Phinney
* Jochem Maas [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: * Bruce Gilbert [EMAIL PROTECTED] : I am getting this on the following code, and I am not sure what is causing the error and need some pros to take a look at it for me. the error is: Parse error: parse error,

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
Linda H [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wrong, though I don't understand

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread kalinga
i recently met samekind of problem, could you pls specify the OS, Apache, Php and MySQL vesrions you are using? vk On 7/18/05, Mark Rees [EMAIL PROTECTED] wrote: Linda H [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I added the following to the top of my script: ?php

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Rick Emery
Quoting Linda H [EMAIL PROTECTED]: I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. In addition to the other excellent suggestions so far, make sure (looking at the phpinfo page, under Configuration File Path) that your

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Linda H
For those who didn't join this thread at the beginning, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I installed in the sequence - MySQL, then Apache, then PHP. MySQL was running when the others were installed (which is what the book I am using seemed to

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
Linda H [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] For those who didn't join this thread at the beginning, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I installed in the sequence - MySQL, then Apache, then PHP. MySQL was running when the others

[PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Thanks for the advice, Matt, but it doesn't seem to solve my problem. php.ini is in the C:Program Files/WINDOWS directory and error_reporting was set to E_ALL. I found php5ts.dll in the WINDOWS/system32 directory. I copied it to WINDOWS/system, just in case. My install instructions said to

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
Try this just for kicks: ? aslkdjfalsd; ? See if this will output errors. It's rather hard to debug without error messages ;) If I remember correctly, isn't php.ini supposed to be in c:/PHP? Linda H wrote: Thanks for the advice, Matt, but it doesn't seem to solve my problem. php.ini is

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Try this just for kicks: ? aslkdjfalsd; ? Nope - nothing :-( See if this will output errors. It's rather hard to debug without error messages ;) No kidding! If I remember correctly, isn't php.ini supposed to be in c:/PHP? It came in c:/php5 as php.ini-recommended. My instructions

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wrong, though I don't understand a lot of it. I ried reinstalling MySQL, Apache, and PHP. No change.

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
You should definitely see a listing for MySQL in phpinfo()... What order did you install MySQL/PHP/Apache? Linda H wrote: I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything

[PHP] Re: need help parsing named.conf file

2005-02-13 Thread M. Sokolewicz
Torsten Rosenberger wrote: Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes'

Re: [PHP] Re: need help parsing named.conf file

2005-02-13 Thread rosenberger
and the named.conf looks like.? options { # The directory statement defines the name server's working directory directory /var/lib/named; # Write dump and statistics file to the log subdirectory. The # pathenames are relative to the chroot jail. dump-file

[PHP] Re: Need Help

2004-12-02 Thread Peter Lauri
Use ?php ? if you are implementing php. I think that you can predefine what scriptlanguage to use, and therefore ? ? can be used. /Peter Suneel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi to all any one Could tell me any diffrence between ?php ? and ? ?. And

[PHP] Re: Need help with a regular expression

2004-09-30 Thread Alex Hogan
Please ignor... I got it... alex On Thu, 30 Sep 2004 16:22:02 -0500, Alex Hogan [EMAIL PROTECTED] wrote: I have a series of questions that are multiple choice. Some of the questions have multiple answers to them. Those questions have answers that are indicated by a checkbox that is

[PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread GH
Also, forgot to ask if there are any specific settings that need to be set within php for it to work. On Thu, 23 Sep 2004 09:55:32 -0400, GH [EMAIL PROTECTED] wrote: I am new to php and xml and would like to know how I can set a variable (i.e $terror_threat_level) equal to the value of

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread John Holmes
From: GH [EMAIL PROTECTED] I am new to php and xml and would like to know how I can set a variable (i.e $terror_threat_level) equal to the value of Threat_Advisory's Condition in the following that is available at http://www.dhs.gov/dhspublic/getAdvisoryCondition ... ?xml version=1.0

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread GH
As John noted at the end... I do not have control over the format of the XML... but thanks I will try... BTW i am using PHP4 is SimpleXML able to be used and if so how? Sorry for the newbie question On Thu, 23 Sep 2004 10:44:31 -0400, John Holmes [EMAIL PROTECTED] wrote: From: GH [EMAIL

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
I am new to php and xml and would like to know how I can set a variable (i.e $terror_threat_level) equal to the value of Threat_Advisory's Condition in the following that is available at http://www.dhs.gov/dhspublic/getAdvisoryCondition ... ?xml version=1.0 encoding=UTF-8 ?

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread John Holmes
From: GH [EMAIL PROTECTED] BTW i am using PHP4 is SimpleXML able to be used and if so how? No, SimpleXML is for PHP5 only. You're probably better off using the regular expression method rather than loading an entire XML solution for such a small bit of code... ---John Holmes... -- PHP General

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread GH
Sounds good... from that RegExpression what exactly is that returning? just the value in the quotes? Thanks Gary On Thu, 23 Sep 2004 11:11:16 -0400, John Holmes [EMAIL PROTECTED] wrote: From: GH [EMAIL PROTECTED] BTW i am using PHP4 is SimpleXML able to be used and if so how? No,

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
As John noted at the end... I do not have control over the format of the XML... but thanks I will try... BTW i am using PHP4 is SimpleXML able to be used and if so how? I would just use John's regex idea, I am guessing (i could be wrong though, I have been many times before) that the

[PHP] Re: Need Help for Session

2004-08-27 Thread S. Kang
Afzal Hussain ) wrote: Sir, I am afzal hussain from bangladesh. Acually i am getting some problem using session in php. This is the sample code that i have written, session_start(); //$vbl=This variable is registered; //session_register('vbl'); $_SESSION['vb1'] = This variable is registered;

Re: [PHP] Re: Need Help for Session

2004-08-27 Thread Pahlevanzadeh Mohsen
1.You must call session_start before making a HTML for client. 2.Please use if (!session_is_registered('vb1')) session_register('vb1'); --- S. Kang [EMAIL PROTECTED] wrote: Afzal Hussain ) wrote: Sir, I am afzal hussain from bangladesh. Acually i am getting

RE: [PHP] Re: Need help

2004-04-14 Thread Ford, Mike [LSS]
On 09 April 2004 16:39, Strogg wrote: [snip original problem for which a fix has been posted] $taxrate = 0.175; //local tax rate in UK is 17.5% You should note that UK VAT is always rounded *down*, so that this: $totalamount = $totalamount * (1 + $taxrate); should be something like:

[PHP] Re: Need help

2004-04-09 Thread Strogg
This the script that is falling over. It calculates everything correct until the amount reaches £1,000, and then it falls over and reads only the 1 before the comma, and then outputs the price to be paid as £1.18 (£1 + the taxrate (0.175 rounded up)) ? echo pOrder Processed at ; echo

[PHP] Re: Need help

2004-04-09 Thread Justin Patrin
Strogg wrote: This the script that is falling over. It calculates everything correct until the amount reaches £1,000, and then it falls over and reads only the 1 before the comma, and then outputs the price to be paid as £1.18 (£1 + the taxrate (0.175 rounded up)) ? echo pOrder Processed at

[PHP] Re: Need help with output from form to .txt file

2004-02-15 Thread Thorben
Kristers Hotmail wrote: Hi!! When i send data from a form and there is some special characters like ' \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it. It is a guestbook I'm using the

[PHP] Re: need help getting one variable

2003-12-23 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... hello all i need help to enter one variable in a cookie and then retreive it back later, i know this probably sounds dumb to most but this is really the first time ive tried working with cookies so please bear with me, thanks for any

[PHP] Re: Need help

2003-12-03 Thread pete M
?php echo $_SERVER['REMOTE_ADDR']; ? Mba wrote: How could I use this php code, ?php print($REMOTE_ADDR); ? in order to show the ip in a web page? thanks - Do you Yahoo!? Free Pop-Up Blocker - Get it now -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
Well, try only the toplevel domain... For example, I have like hns345667dsvdtrt34.telia.com, I doubt that is registred, but telia.com sure is... I hope.. :S -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Dan Anderson [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I

RE: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Jennifer Goodie
I have a section of my script where I call gethostbyname($hostname) . For some host names that are not registered (according to register.com) I am still getting an IP address returned? What is happening? Well, try only the toplevel domain... For example, I have like

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
Ok, I was wrong about top level stuff... My point was that you don't register every box at like register.com, you only register secondlevel.. Register.com only checks second level (I guess), while php queries the name on some dns server, which gives php another dns server and so on, until it finds

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Evan Nemerson
BIND9 isn't the only game in town... Here's something from bugtraq Worth noting (although a bit OT for php-general) that versign mananged to introduce a nice little XSS w/ this- see full-disclosure list for details -Evan -- Forwarded Message -- Subject: Re: Verisign

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Curt Zirzow
* Thus wrote Jennifer Goodie ([EMAIL PROTECTED]): I have a section of my script where I call gethostbyname($hostname) . For some host names that are not registered (according to register.com) I am still getting an IP address returned? What is happening? Well, try only the

[PHP] Re: Need help on screen display error

2003-08-23 Thread Gloria L. McMillan
I see a couple have tried my poll. Please ask and I will send that php file... Gloria Gloria L. McMillan wrote: Hi, all! I have a working database at: http://dakotacom.net/~glomc/forms/CAT.html It does send info to the database, but only shows [ at the upper left of screen when it

Re: [PHP] Re: need help with MySQL full text searching!!!!

2003-07-22 Thread Angelo Zanetti
to do.Could you please give me more advice. thanx in Advance Angelo - Original Message - From: James Rodenkirch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 6:27 PM Subject: [PHP] Re: need help with MySQL full text searching You need to use mysql 4.0.10-gamma for full

Re: [PHP] Re: need help with MySQL full text searching!!!!

2003-07-22 Thread Jason Wong
On Tuesday 22 July 2003 15:46, Angelo Zanetti wrote: Hi James so what you are saying is that if I am not running mysql 4.0.10-gamma then the full text search wont work. Strange because if I run the full text search on both full text indexed fields I get the correct resultset, however I only

[PHP] Re: need help with MySQL full text searching!!!!

2003-07-21 Thread James Rodenkirch
You need to use mysql 4.0.10-gamma for full text searching to work Angelo Zanetti wrote: Hi I have a table which contains 3 fields (ID, Title, Abstract) the title and abstract fields have been fulltext indexes like this: ALTER TABLE biblio ADD FULLTEXT (title,abstract); that worked fine,

[PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Ivo Fokkema
Well, worked nicely for me... Can you tell me where you can fetch this kind of information? -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands Suhas Pharkute [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Peter Clarke
Suhas Pharkute wrote: http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, please click on http://ns1.webhostdns.us and then click on the website link.) which should identify your Country, State, City. Please click on one of the buttons to provide feedback. I'm in London, England and

RE: [PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Brian S. Drexler
All I got was Error -Original Message- From: Peter Clarke [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Need Help: Please click on Test Link Suhas Pharkute wrote: http://sspsoft.com/test/ip2ll.php (in case if you cannot get

[PHP] Re: need help w/ sql query - update and select at once

2003-06-30 Thread Shivanischal A
you probably cant ge this to work in PHP. try creating a temporary table -shiva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi i'm trying to get this sql query to work, i'm trying to update and select at the same time, i'm not even sure if this is even possible update

[PHP] Re: need help w/ sql query - update and select at once

2003-06-30 Thread Shivanischal A
you probably cant ge this to work in MySQL. try creating a temporary table Shivanischal A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] you probably cant ge this to work in PHP. try creating a temporary table -shiva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] Re: need help on coding

2003-06-18 Thread Mark Clarkstone
Shien Hang Low [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Gabor Hojtsy [EMAIL PROTECTED] To: Shien Hang Low [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: need help on coding Date: Sun, 15 Jun 2003 12:26:53 +0200 Please ask support questions at [EMAIL

[PHP] Re: need help on coding

2003-06-15 Thread Thomas Seifert
you need to quote in your code. Thomas On Sun, 15 Jun 2003 17:01:03 + [EMAIL PROTECTED] (Shien Hang Low) wrote: From: Gabor Hojtsy [EMAIL PROTECTED] To: Shien Hang Low [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: need help on coding Date: Sun, 15 Jun 2003 12:26:53 +0200

[PHP] Re: need help on coding

2003-06-15 Thread Hugh Bothwell
Shien Hang Low [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] problem : code : ? $data= message; echo $data; ? output : message --- if i want the output to be : message i try to used the below code but fail: ? $data = message; echo

[PHP] Re: Need help with display of results

2003-06-06 Thread Gloria L. McMillan
I will send my whole php file to anybpody willing to help me display this one long answer question. Some previous helpers added some stuff that isn't being used, but I don't know how to get rid of it. Gloria Gloria L. McMillan wrote: Hi, again! I did not see my question as yet so I will

[PHP] Re: Need help with coding problem

2003-03-19 Thread Tony Burgess
You seem to be missing your last bracket for the while loop that you started to state the end of the block. Ben C. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a subscription service and am trying to not allow the buyer to proceed purchasing another subscription if one of

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Joel Colombo
function make_alphanum($string_val) { return eregi_replace([^[:alnum:]], , $string_val); } strips everything except ALPHA and NUM Chars Joel Kenn Murrah [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings. I'm out of my league here, not knowing enough about regular

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Kenn Murrah
Thanks ... one more thing: is there a way to modify this to allow a period (dot) to included, as well as the alha and num characters? once again, thanks. function make_alphanum($string_val) { return eregi_replace([^[:alnum:]], , $string_val); } strips everything except ALPHA and NUM

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Bobby Patel
eregi_replace([^[:alnum:].], , $string_val); notice the period after the first closing brace. Kenn Murrah [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks ... one more thing: is there a way to modify this to allow a period (dot) to included, as well as the alha and num

[PHP] RE: Need help with ? vs. php?

2003-03-05 Thread LeTortorec, Jean-Louis
That's fixed. Thanks. Now, another problem. The data I capture in a form (web page 1) are not received by the PHP page (web page 2). Is there something different with the previous version of PHP? Thanks to all of you for your help. Jean-Louis -Original Message- From:

Re: [PHP] RE: Need help with ? vs. php?

2003-03-05 Thread R'twick Niceorgaw
set register_globals=on in php.ini or use $_POST/$_GET super global array - Original Message - From: LeTortorec, Jean-Louis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:14 PM Subject: [PHP] RE: Need help with ? vs. php? That's fixed. Thanks. Now, another

RE: [PHP] RE: Need help with ? vs. php?

2003-03-05 Thread John W. Holmes
That's fixed. Thanks. Now, another problem. The data I capture in a form (web page 1) are not received by the PHP page (web page 2). Is there something different with the previous version of PHP? Register_globals ---John W. Holmes... PHP Architect - A monthly magazine for PHP

[PHP] Re: Need help with ? vs. php?

2003-03-05 Thread Clete Rivers Blackwell 2
Don't know if anyone said it, but you do not need to use php?, it's invalid AFAIK... just probably as they said, set short_tags=On in php.ini or something similar... Jean-Louis Letortorec [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everyone, I've installed the Apache v2.0.44

[PHP] Re: Need help storing and displaying html/text!

2003-02-10 Thread Shawn McKenzie
Hmmm... I guess no one is doing this??? Seems fairly common. Thanks! Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a form and I want the user to be able to enter html in a text area. This will then be stored in an array in a

Re: [PHP] Re: Need help storing and displaying html/text!

2003-02-10 Thread Jason Wong
On Tuesday 11 February 2003 07:03, Shawn McKenzie wrote: Hmmm... I guess no one is doing this??? Seems fairly common. Patience. You should allow 1 day to give every list subscriber a chance to read your post. Shawn McKenzie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: Need help.

2003-01-28 Thread cybot
check your sql-statement! Thkiat wrote: Can someone tell me what should I do to solve this problem? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/epcc/public_html/exoops/class/database/mysql.php on line 134 Warning: mysql_fetch_row(): supplied

Re: [PHP] Re: Need help.

2003-01-28 Thread Rick Emery
Show us your code...we can't read your mind. - Original Message - Thkiat wrote: Can someone tell me what should I do to solve this problem? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/epcc/public_html/exoops/class/database/mysql.php on

Re: [PHP] Re: Need help.

2003-01-28 Thread 1LT John W. Holmes
- Original Message - Thkiat wrote: Can someone tell me what should I do to solve this problem? Of course... Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/epcc/public_html/exoops/class/database/mysql.php on line 134 Fix your problem

[PHP] Re: Need Help in escaping and\

2002-11-14 Thread Per
Hi \ is the escape character: $real_path=$real_path.\DefaultFld\SubFld\; should be $real_path=$real_path.\\DefaultFld\\SubFld\\; or $real_path .= \\DefaultFld\\SubFld\\; if you want to shorten it. Ppf wrote: Hi All: I am trying to generate the directory path dynamically to save the Uploaded

Re: [PHP] Re: need help with project

2002-11-03 Thread Kevin Myrick
Check out FFL on Sourceforge.net. Currently, it is still a standalone PHP app, but in the near/coming soon future they are going to have it as a PHPWebsite Module. That is nice for me, since I have just converted to PHPWebsite (would have used nuke, but it pissed me off when it wouldn't let me do

[PHP] Re: need help with project

2002-11-02 Thread David Jackson
Karl -- Before you go reinventing the wheel , you might check http://freshmeat.net ... of course there is nothing actually wrong with reinventing the wheel *grin* David Jackson Karl James wrote: Hello people Im in need help with creating a system where it will let me Add/drop players off a

[PHP] Re: Need help...

2002-10-31 Thread BAROILLER Pierre-Emmanuel
Received fro Yves le duaron : Try this for example ; '.$pattern.([^]*)?(\/)?(?(2)|(.*)?\/.$pattern.)'siU Please notice the U (ungreedy) to enhance the speed. This also match empty tags ... Sorry I have no login to send this to the mailing list, do this for me please ! Baroiller

[PHP] Re: Need help...

2002-10-30 Thread Baroiller Pierre-Emmanuel
Like noone seems to find something usefull to help me.. I've done the work myself :) I've tried this : $eregstr=/style[^]*([^]|[^\/]|\/[^style]|\/style[^])*\/style[^]* /msi; $data=preg_match_all($eregstr,$str,$matches); $str=preg_replace($eregstr,,$str);

RE: [PHP] Re: Need help with HTTP-Authentication

2002-10-18 Thread Davy Obdam
Hi David,. Http authentication is probly not what you would want to use. Especially if you want to program in timeouts, you would be better off using session based login variables. Cookies are even better with an encrypted pasword that has a windows of time that you have to goto other

[PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread BAROILLER
Hi, a simple question.. :) how do you do ? You can use 2 methods : with a .htaccess file on your webserver, updated with your table fields or a direct authentification with http headers and a little bit of php... Tell me more? may be I could help you. Regards, P.E. Baroiller Davy Obdam [EMAIL

Re: [PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread dwalker
. -Original Message- From: BAROILLER [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, October 16, 2002 2:15 AM Subject: [PHP] Re: Need help with HTTP-Authentication Hi, a simple question.. :) how do you

[PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread David P Lenk
Http authentication is probly not what you would want to use. Especially if you want to program in timeouts, you would be better off using session based login variables. Cookies are even better with an encrypted pasword that has a windows of time that you have to goto other pages to renew.

[PHP] Re: need help with a chat code problem

2002-08-30 Thread Erwin
as each one I want to delete will be the smallest ID number (as it grows with each message added to it). I think you mean the lowest ID in the table and I suppose you're looking for a MySQL query. As of MySQL version 4 (currently in development) you can use delete from tablename where id in

[PHP] Re: need help

2002-08-11 Thread B.C. Lance
to do a comparison between two values / variables, you have to use == instead of = = is an assignment while == is a comparison operator if($row['gid'] == 0) { $rat = 110; } elseif($row['gid'] == 1) { $rat = 9.5; } else { $rat = 6.6; } -- PHP General Mailing List

Re: [PHP] Re: need help

2002-08-11 Thread Matt
From: B.C. Lance [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 9:53 AM Subject: [PHP] Re: need help to do a comparison between two values / variables, you have to use == instead of = = is an assignment while == is a comparison operator if($row['gid'] == 0) I write these this way so

Re: [PHP] Re: need help

2002-08-11 Thread Matt
From: B.C. Lance [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 10:17 AM Subject: Re: [PHP] Re: need help snip Matt wrote: if(0 == $row['gid']) /snip ahhh. let the parser do the check. works great if you are not comparing with 2 variables :) in fact, another way to avoid

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-03 Thread Monty
Aug 2002 15:46:57 +1000 To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Re: Need Help with register_globals OFF Anyone want to share any tips on how to deal with form vars passed to a script with register_globals turned off? Do you simply refer to them directly with $_GET

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-03 Thread Monty
Well, I just upgraded a number of PHP scripts to function with register_globals turned off, and now better understand what's required to work with variables more securely. I wanted to share that the extract() command turned out to be a big help. Using it meant I didn't have to put $_POST[' ']

[PHP] Re: Need help to choose hosting!

2002-08-02 Thread JJ Harrison
I would recommend Infinology Smart Consumers: http://smartconsumers.infinology.com/ You should look at them. I use them and I am very pleased with their service. Their servers have very fast response times and the give you plentiful features. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com

[PHP] Re: Need help to choose hosting!

2002-08-02 Thread lallous
have you tried: http://www.hostrix.com ? //Elias Mantas Kriauciunas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey php-general, i want to buy hosting. but i can't find good one for me. maybe someone could point some links. but this is what i need!

Re: [PHP] Re: Need help to choose hosting!

2002-08-02 Thread Andrey Hristov
http://ispcheck.com is the place. Listing of many webhostings. Go and see. Regards, Andrey Hey php-general, i want to buy hosting. but i can't find good one for me. maybe someone could point some links. but this is what i need! Storage up to 100MB normal transfer

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Justin French
on 03/08/02 3:35 PM, Monty ([EMAIL PROTECTED]) wrote: Well, to answer my own question, I found a decent tutorial on using sessions with the new register_globals off here: http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab les.html Anyone want to share any tips

Re[2]: [PHP] Re: need help with uploading images

2002-07-30 Thread Tom Rogers
Hi, Tuesday, July 30, 2002, 1:53:50 PM, you wrote: D This looks good but I just have one question about it if you don't mind, D what if someone was uploading a gif or a PNG file? can it be made to only D detect jpgs? D Thanks in advance D Deadsam Try it this way, it will check if it is a jpeg

  1   2   >