Re: [PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread Richard Quadling
2011/3/4 Nisse Engström news.nospam.0ixbt...@luden.se: On Fri, 11 Feb 2011 14:42:18 -0800, Brian Dunning wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a good example). Maybe there is a

Re: [PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread David Hutto
Maybe I missed something here, but aren't the cc's held by the merchant account provider, and just an id by you to recharge(recurring or once), which can be disputed. I ask because it's been a while since I had to look at this. So let the OP's question take precedence, and mine secondary if

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: At that time, I registered almost 30 names. Fortunately, all of my names passed and I was permitted to keep them. Unfortunately, all browser manufactures (except Safari) negated some of the work done by the IDNS WG and as a result PUNYCODE is shown instead of the actual

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread tedd
At 11:54 AM +0100 1/11/11, Per Jessen wrote: tedd wrote: At that time, I registered almost 30 names. Fortunately, all of my names passed and I was permitted to keep them. Unfortunately, all browser manufactures (except Safari) negated some of the work done by the IDNS WG and as a result

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: At 11:54 AM +0100 1/11/11, Per Jessen wrote: tedd wrote: At that time, I registered almost 30 names. Fortunately, all of my names passed and I was permitted to keep them. Unfortunately, all browser manufactures (except Safari) negated some of the work done by the IDNS WG

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
Michelle Konzack wrote: Hello Ashley Sheridan, Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: Also, each label is checked to ensure it doesn't run over 63 characters, and the whole thing isn't over 253 characters. Lastly, each label is checked to ensure it doesn't completely

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Steve Staples
On Tue, 2011-01-11 at 19:00 +, Ashley Sheridan wrote: On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: Hello Ashley Sheridan, Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: Also, each label is checked to ensure it doesn't run over 63 characters, and the whole

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Ashley Sheridan
On Tue, 2011-01-11 at 14:44 -0500, Steve Staples wrote: On Tue, 2011-01-11 at 19:00 +, Ashley Sheridan wrote: On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: Hello Ashley Sheridan, Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: Also, each label is

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread tedd
At 12:23 PM -0500 1/9/11, Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, tedd tedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as –.com Not

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread tedd
At 11:41 AM -0600 1/9/11, Donovan Brooke wrote: Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, teddtedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari... but yes, the actual square root character appears in safari

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread Steve Staples
On Mon, 2011-01-10 at 11:39 -0500, tedd wrote: At 11:41 AM -0600 1/9/11, Donovan Brooke wrote: Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, teddtedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari... but yes,

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread tedd
At 11:57 AM -0500 1/10/11, Steve Staples wrote: On Mon, 2011-01-10 at 11:39 -0500, tedd wrote: For example -- http://xn--19g.com -- is square-root dot com. on my Ubuntu box, I can copy and past the ˆ (square-root) character and it displays properly in he address bar on google chome,

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Per Jessen
Tamara Temple wrote: On Jan 8, 2011, at 2:22 PM, Al wrote: On 1/8/2011 3:55 AM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z]

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread tedd
At 12:15 PM +0100 1/9/11, Per Jessen wrote: Tamara Temple wrote: I'm wondering what mods to make for this now that unicode chars are allowed in domain names You're talking about IDNs ? The actual domain name is still US-ASCII, only when you decode punycode do you get UTF8 characters.

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Daniel Brown
On Sun, Jan 9, 2011 at 11:58, tedd tedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as ˆ.com Not sure if that's a typo or an issue in translation

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Daniel Brown
On Sun, Jan 9, 2011 at 12:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote: ^ is to the power of, not square root, which is √, which does translate to Tedds domain Thanks for the math lesson, professor, but I already knew that. ;-P My point is, and as you can see in the quoted

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Donovan Brooke
Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, teddtedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as ˆ.com Not sure if that's a typo or an

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 12:23 -0500, Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, tedd tedd.sperl...@gmail.com wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 12:38 -0500, Daniel Brown wrote: On Sun, Jan 9, 2011 at 12:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote: ^ is to the power of, not square root, which is √, which does translate to Tedds domain Thanks for the math lesson, professor, but I already knew

Re: [PHP] Re: Help with exec.

2010-03-03 Thread Paul Halliday
and its that easy! it took me a minute to figure out; but all I had to do was: if (is_resource($process)) { for ($i = 0; $i sizeof($src_ip); $i++) { fwrite($pipes[0], $sig_desc[$i],$src_ip[$i],$dst_ip[$i]\n); } fclose($pipes[0]); fclose($pipes[1]);

Re: [PHP] Re: help, please, understanding my problem

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 05:55 -0600, Stan wrote: It works like it is ... once. What I don't understand is why the client browser(s I have tried it with Firefox and IE 6) can't find the Javascript function the second time. I've had a look, but I'm not sure what you're trying to achieve

Re: [PHP] Re: help, please, understanding my problem

2010-02-23 Thread Rene Veerman
On Tue, Feb 23, 2010 at 1:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Are you maybe modifying it in a way that breaks the javascript? that would be my guess too... firefox + firebug will often give accurate error messages for badly formed js. the error itself is known to be caused

Re: [PHP] RE: Help with my first recursion menu

2009-10-31 Thread Lex Braun
Hi, On Wed, Oct 28, 2009 at 5:22 PM, MEM tal...@gmail.com wrote: I've been told that stack is the way to go, so I'm trying to understand the following code: http://pastebin.com/m5616c88f I've commented every line so that any of you could see if I'm interpreting something wrong: I have

Re: [PHP] Re: Help: PHP version not up to date after apt-get install php5-dev

2009-06-19 Thread Thodoris
Why not just compile it yourself? Why not let the ports system compile it for you and then have the choice to remove it as package whenever you like... You get it compiled and packaged the same time... :-) I guess BSD is the way to make your life easier... -- Thodoris -- PHP

Re: [PHP] Re: Help: PHP version not up to date after apt-get install php5-dev

2009-06-17 Thread Eddie Drapkin
Why not just compile it yourself? On Wed, Jun 17, 2009 at 3:34 PM, Shawn McKenzienos...@mckenzies.net wrote: Philipp Schaffner wrote: Dear PHP [hard]core expert After  apt-get install php5-dev on Linux (Debian, Ubuntu, Hardy Heron) with an already existing and functioning PHP5 interpreter

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Jan G.B.
2009/4/26 Nathan Rixham nrix...@gmail.com: Deivys Delgado Hernandez wrote: Hi, I'm having problems when i try to use the function scandir()  in a Novell Netware Volumen or a Windows Shared Folder they both are mapped as a windows network drive, so i suppose i could access them as local

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Simon
I lack experience with windows, but my experience in linux tells me this *might* be related to the permissions the PHP or webserver has to access that remote drive? Ie. like the drives might be mapped just for your user? Not sure, but you might want to check this, permissions are common problems

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread tedd
At 11:58 AM -0600 1/30/09, Adam Williams wrote: yeah just a second ago a big lightbulb went off in my head Try a bigger light-bulb and store the email addresses in a database. Then you can use them as you want regardless if the user hit return or not. Cheers, tedd -- ---

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread Jim Lucas
tedd wrote: At 11:58 AM -0600 1/30/09, Adam Williams wrote: yeah just a second ago a big lightbulb went off in my head Try a bigger light-bulb and store the email addresses in a database. Then you can use them as you want regardless if the user hit return or not. Cheers, tedd I

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Adam Williams
Shawn McKenzie wrote: This may be best handled in your sorting code. What does it look like? yeah just a second ago a big lightbulb went off in my head and i fixed my code to add a \r\n on saving, and strip it on viewing. I sort on viewing, not sort on saving. The viewing code looks

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Konstantin S. Kurilov
Hello Adam! $list2 = explode(\n, $list); // \n not \r\n $list = implode(\r\n, $list2); foreach ... - not need with the best regards - Konstantin Kurilov Shawn McKenzie wrote: Adam Williams wrote: I have staff inputting email addresses into a textarea named $list on a form and when they

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Jim Lucas
Adam Williams wrote: Shawn McKenzie wrote: This may be best handled in your sorting code. What does it look like? yeah just a second ago a big lightbulb went off in my head and i fixed my code to add a \r\n on saving, and strip it on viewing. I sort on viewing, not sort on saving.

Re: [PHP] Re: -help

2008-10-22 Thread Yeti
-help: invalid argument I like the way you handle input errors in your php-general subroutines David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: -help

2008-10-22 Thread Jay Moore
Yeti wrote: -help: invalid argument I like the way you handle input errors in your php-general subroutines David. I don't. It says nothing about what a valid argument is. Horrible newsgroup coding, imo. I wouldn't be surprised if he has register_globals on. -- PHP General Mailing List

Re: [PHP] Re: -help

2008-10-22 Thread Yeti
Well maybe it is because he has register_globals on why he is not printing a list of valid arguments. imagine something like this .. @php-generals$ [PHP] -help List of valid arguments: -c, --make-me-forget erases the built-in mainframe's short term memory -f, --flush-me erases the entire memory

Re: [PHP] Re: -help

2008-10-22 Thread Nathan Rixham
Yeti wrote: Well maybe it is because he has register_globals on why he is not printing a list of valid arguments. imagine something like this .. @php-generals$ [PHP] -help List of valid arguments: -c, --make-me-forget erases the built-in mainframe's short term memory -f, --flush-me erases the

Re: [PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Richard Heyes
The thing that would help here is if I could get a reliable way to extract the working 'path' (from an http:// pov) from the $_SERVER array somehow. Each of them gives a result tantalizingly close to the base, but they get it wrong in various ways. You can use $_SERVER['PHP_SELF'] which will

Re: [PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Donn
On Tuesday, 18 March 2008 12:02:14 Richard Heyes wrote: You can use $_SERVER['PHP_SELF'] which will give you the path to the script or $_SERVER['REQUEST_URI'] (you will probably have to remove the query string with this), along with either dirname(). The problem is that the URL does not stay

Re: [PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Richard Heyes
A link a href=index.php/use1 causes 'index.php/use1' to be appended to the full url [http://localhost/~donn/template-dev/routertest/] and at first, it's fine but after a few clicks, it keeps appending. Amazingly things still work, but the URL is out of control! Links that don't start with a /

Re: [PHP] Re: Help with preg_replace

2007-11-08 Thread Robin Vickery
On 08/11/2007, Jochem Maas [EMAIL PROTECTED] wrote: Al wrote: Delimiters needed. Can use about anything not already in your pattern. / is very commonly used; but I like # or % generally; but, you can't use % because your pattern has it. $html = preg_replace(#%ResID#,$bookid,$html);

Re: [PHP] Re: Help with preg_replace

2007-11-07 Thread Jochem Maas
Al wrote: Delimiters needed. Can use about anything not already in your pattern. / is very commonly used; but I like # or % generally; but, you can't use % because your pattern has it. $html = preg_replace(#%ResID#,$bookid,$html); wont a str_replace() do just fine in this case? // and we

Re: [PHP] Re: Help with OOPHP (SOLVED)

2007-11-01 Thread Andrew Peterson
I've figured it out :) Thanks for the help, I just need to walk away for a minute and come back to it. all I need to do is this: myClass.php -- ?PHP require mySecondClass.php; class myClass { /* Now I can create/edit/maninpulate/etc new and old instances of

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Jochem Maas
Colin Guthrie wrote: LKSunny wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? You can do: eval(echo $a;); you realise Sunny stopped reading

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Jochem Maas [EMAIL PROTECTED] wrote: Colin Guthrie wrote: LKSunny wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? You

Re: [PHP] Re: help curl followlocation

2007-07-03 Thread Richard Lynch
When your PHP script does curl it does not interact in any way, shape, or form with the Location bar of the browser... That's kinda the whole POINT of curl, to be able to snarf down content from inside your script, instead of pushing the user off to some other site. If you just want to send the

Re: [PHP] Re: help curl followlocation

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 16:33 +0530, Gowranga wrote: Hello, I have the following installed on a Redhat ES4 system: curl 7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 Protocols: ftp gopher telnet dict ldap http file https ftps Features: GSS-Negotiate

Re: [PHP] Re: help with multi dimensional arrays

2007-05-25 Thread Navid Yar
Hello Everyone, I have a problem with GET strings. I use $_SERVER[REDIRECT_QUERY_STRING] to get the value-pairs in the URL. The problem is that there is a cID variable that keeps amending itself to the string continuously everytime someone clicks on a different category link on the website. For

RE: [PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes

Re: [PHP] Re: Help with matching numbers 0-100

2007-02-07 Thread Jochem Maas
frank wrote: better make a switch statement: with case such as switch($x): that should be : switch (true) { // bla } otherwise you would be testing the boolean cast of the value of $x against the result of the expression given in the case statement ... in practice it would probably do

Re: [PHP] Re: Help with some clever bit operations

2006-07-21 Thread Paul Novitski
Niels schrieb: The problem: A function tries to update an existing value, but is only allowed to write certain bits. There are 3 variables: A: the existing value, eg. 10110101 B: what the function wants to write, eg. 01011100 C: which bits the function is allowed to write, eg. With

RE: [PHP] Re: Help with query

2006-02-21 Thread Duffy, Scott E
SELECT * FROM exams LEFT JOIN results ON exams.id_test=results.id_test WHERE results.id_test IS NULL AND id_student=.$user exams.id_test=results.id_test results.id_test IS NULL think those are preventing this from happening. Wouldn't you want this Results.id_student IS NULL Since if the

Re: [PHP] Re: help avoid multiple login

2005-11-30 Thread Jochem Maas
Mark Rees wrote: the normal way of doing session 'closing' is by way of 'garbage collection' - every now and then a script/process/function is run that 'closes' any sessions which are (according to your criteria) inactive. php has stuff built it that will do this for you to a degree. -

Re: [PHP] Re: Help with a regular expression for 0,1 or 2 decimal places

2005-10-25 Thread Florent Monnier
Phillip Oertel a écrit : hi, i'm not a regex guru myself, but the following regex should work - tabke a look at my regex test setup ... ?php $test = array( 1, 1., 1.2, 1.23, 1.234, 1234, 1234., 1234.5, 1234.56, 1234.567 ); // if

Re: [PHP] Re: Help with a regular expression for 0,1 or 2 decimal places

2005-10-25 Thread John Nichel
Phillip Oertel wrote: hi, i'm not a regex guru myself, but the following regex should work - tabke a look at my regex test setup ... ?php $test = array( 1, 1., 1.2, 1.23, 1.234, 1234, 1234., 1234.5, 1234.56, 1234.567 ); // if there's a dot, we want

Re: [PHP] Re: Help recognizing bots?

2005-06-24 Thread Dotan Cohen
On 6/24/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, June 23, 2005 3:37 am, JamesBenson said: http://www.funender.com/phpBB2/about18577.html Call me crazy, but... A) Doesn't robots.txt have to be in public_html? How the hell can the robots read it if it's in the root folder, as

Re: [PHP] Re: Help recognizing bots?

2005-06-23 Thread Richard Lynch
On Thu, June 23, 2005 3:37 am, JamesBenson said: http://www.funender.com/phpBB2/about18577.html Call me crazy, but... A) Doesn't robots.txt have to be in public_html? How the hell can the robots read it if it's in the root folder, as they suggest in that forum? B) Are the Bad Bots really

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Mattias Thorslund
M. Sokolewicz wrote: well, you can simply use the unix timestamp, since the amount of days / seconds since 0 AD/BC will be a constant (it won't change, trust me), you can simply add it to that, and add a wrapper function to php's time(). You'll be working with VERY big numbers in that case, so

[suspicious - maybe spam] [PHP] Re: [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Kevin
Greetings Mr Mattias, I wish it was so simple. Because the dates that may need calculating can be before 1970. THis function I have.. and it's semi-working, but I've noticed irregularities during the conversion. Thanks for your suggestion!! Yours, Kevin Mattias Thorslund [EMAIL PROTECTED]

Re: [PHP] Re: help with adding

2005-02-26 Thread Guillermo Rauch
You really don't have to put the index in a single dimension input array. Just put qty[] And you'll get it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
I think I'm almost there :) Only right now I'm getting an error message: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 ?php $where = array(); $Ind = ; $Ind = $_POST['Ind']; if

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
Sorry, I fixed Ind , since the element is named Ind[]. Now I get a different error: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '','','Array)' at line 3 ?php $where = array(); $Ind[] = ;

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 20:41, Stuart Felenstein wrote: Sorry, I fixed Ind , since the element is named Ind[]. Now I get a different error: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Uhmm, you could try some debugging of your own instead of relying on the list. Liberally douse your code with print_r() and var_dump() of all your important variables. Do they contain what you expected? If not try and figure out why not. --

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 21:10, Stuart Felenstein wrote: Okay, took your advice, but it seems to be a sql error as the message says. Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Yes, that was apparent from your previous post. So did you print out your query and examine it for any obvious mistakes? And if you couldn't spot any obvious mistakes then the least you could have done was to copy and paste the full query in your

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 21:31, Stuart Felenstein wrote: It was not apparent whatsoever. Let me show the code again , but I'll include the print_r returns inline code. ?php $where = array(); $Ind[] = ; Not sure why you're adding an empty element to $Ind? print_r($Ind); //Array (

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread James Kaufman
Stuart, On Sat, Nov 13, 2004 at 05:31:06AM -0800, Stuart Felenstein wrote: It was not apparent whatsoever. Let me show the code again , but I'll include the print_r returns inline code. ?php $sql = 'SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: See the Array (also missing a single-quote), that's element [30] mentioned above. Summary: the missing single-quotes are the show-stopper. I see that , but I'm not sure how that is happening. Here is the sql: $sql = 'SELECT PostStart,

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- James Kaufman [EMAIL PROTECTED] wrote: Right here, print the contents of $sql. That is the most important thing to know right now. SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs WHERE VendorJobs.Industry

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 22:14, Stuart Felenstein wrote: Summary: the missing single-quotes are the show-stopper. I see that , but I'm not sure how that is happening. Here is the sql: $sql = 'SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Graham Cossey
: Re: [PHP] Re: Help: Database Search --- Jason Wong [EMAIL PROTECTED] wrote: Yes, that was apparent from your previous post. So did you print out your query and examine it for any obvious mistakes? And if you couldn't spot any obvious mistakes then the least you could have done

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Graham Cossey [EMAIL PROTECTED] wrote: Hi Stuart Not sure what's happening with the $Ind variable, maybe check the $_POST array as you enter the script to ensure that the form is passing the data correctly. It is almost as if you are appending it to itself at some point. You don't

Re: [PHP] Re: Help: Database Search

2004-11-12 Thread Stuart Felenstein
--- Sebastian Mendel [EMAIL PROTECTED] wrote: $where = array(); if ( isset($_POST['Ind']) ) { $where[] = 'vendorjobs.Industry = ' . (int) $_POST['Ind']; } if ( isset($_POST['Days']) ) { $where[] = 'Date_Sub(Curdate(), interval ' . (int) $_POST['Days'] . ' day) =

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Graham Cossey
Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 12 November 2004 12:42 To: Sebastian Mendel; [EMAIL PROTECTED] Subject: Re: [PHP] Re: Help: Database Search --- Sebastian Mendel [EMAIL PROTECTED] wrote: $where = array(); if ( isset($_POST

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Stuart Felenstein
--- Graham Cossey [EMAIL PROTECTED] wrote: This should result in: WHERE vendorjobs.Industry IN (2,3,5) OR WHERE vendorjobs.Industry = 2 HTH Graham Not sure what you mean by the above ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Graham Cossey
as well. Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 12 November 2004 14:13 To: Graham Cossey; Sebastian Mendel; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Help: Database Search --- Graham Cossey [EMAIL PROTECTED] wrote: This should result

Re: [PHP] Re: Help with Regular Expressions

2004-08-15 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Hi all, I am working on a small php script which should do the following. I want all the links in the page to be preceded by first character and first two characters of the link.Please look into the example below for more clarification. eg. a href=/code.htmllink

RE: [PHP] Re: Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
Hi Frank, Thanks, you got me started. I modified your function a bit. I'm testing for 3 cases now and the appearance of http://, https://, or ftp:// in front of the string. Let me know if you advise any changes. ?php function FormatUrl($url) { $url = trim($url); if

Re: [PHP] Re: help with mysql

2004-01-27 Thread Martin Luethi
line 16: mysql_connect(tflood, thomas91); I think you mean: mysql_connect(localhost, tflood, thomas91); otherwise mysql_connect takes tflood as Server and thomas91 as Username (if so, its better to replace passwords with * before posting) - http://ch.php.net/mysql_connect after connecting you

Re: [PHP] Re: help with mysql

2004-01-27 Thread Tom Flood
Martin, Thank you for the insight when I ran the php file you suggested, nothing appeared to be related to mysql. I installed both the php and mysql packages onto my Linux box through a rpm installer. Where can I obtain mysql support for php? Tom Martin Luethi [EMAIL PROTECTED] wrote in

Re: [PHP] Re: help with mysql

2004-01-27 Thread daniel
My honest advice, dont use rpm's, you need to compile php via source if you want to do anything out of the ordinary like adding extensions, yes adding mysql is out of the ordinary for a standard rpm lol. Thats just my experience anyway. so ./configure --with-mysql=/usr/local/mysql or whereever

Re: [PHP] Re: help with mysql

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:01:40 -0500 Tom Flood [EMAIL PROTECTED] wrote: Martin, Thank you for the insight when I ran the php file you suggested, nothing appeared to be related to mysql. I installed both the php and mysql packages onto my Linux box through a rpm installer. Where can I

Re: [PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread John W. Holmes
Astron of BrOnX wrote: Hi, here is the steps, 1 . Copy all php_*.dll from extentions dir to c:\windows\system32 2 . Copy phpsapi.dll to c:\windows\system32 3 . Copy php4ts.dll to c:\windows\system32 4 . Copy php.ini to c:\windows\system32 5. go ISAPI Filters and add .php

Re: [PHP] Re: Help! the Error_Reporting doesn't work

2003-09-25 Thread Curt Zirzow
* Thus wrote Raquel Rice ([EMAIL PROTECTED]): On Thu, 25 Sep 2003 08:32:03 -0500 Shawn McKenzie [EMAIL PROTECTED] wrote: Luckyeagle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have set the PHP.INI as follow: error_reporting = E_ALL ~E_NOTICE display_errors = On

RE: [PHP] Re: help with php

2003-07-29 Thread Chris W. Parker
DvDmanDT mailto:[EMAIL PROTECTED] on Tuesday, July 29, 2003 5:06 PM said: I agree to Parker's post, but I think I understand you... Whoops... I should apologize. I missed the keyword email and read it as another page. Sorry Billy. Chris. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] RE: help with explode.....

2003-07-25 Thread Ford, Mike [LSS]
-Original Message- From: Joe Harman [mailto:[EMAIL PROTECTED] Sent: 25 July 2003 06:12 The name of the set of radio buttons is the QuestionID (so it's a number)... And the options are the AnswerID (they are also numbers)... This is technically invalid for PHP -- all your form

Re: [PHP] RE: help with explode.....

2003-07-25 Thread John W. Holmes
The threading is messed up on this message, so sorry for the top post. Actually, the method that Shaunak gave is the best method to use. If you took your questions and had them formatted from this: pWhat color are you eyes?br blockquote input type=radio name=9 value=5Bluebr input

Re: [PHP] Re: Help?

2003-07-22 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): I want to warn you though, PHP depricates the use of register_globals = On, so it would be recommendable to use your modified script and keep coding using $_POST, $_GET and

Re: [PHP] Re: Help?

2003-07-21 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): I want to warn you though, PHP depricates the use of register_globals = On, so it would be recommendable to use your modified script and keep coding using $_POST, $_GET and these kind of global variables. So php is removing that feature? Curt

Re: [PHP] Re: Help needed

2003-06-30 Thread Nirmala P
Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = ?php LangItem(FieldName,LangName)?'); document.write(test); } and moreover the

Re: [PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Where does thejavascript fit ? Nirmala P wrote: Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = ?php

Re: [PHP] Re: Help please!

2003-06-26 Thread Nadim Attari
We always send the mail to [EMAIL PROTECTED], and not using reply to group function,I think there's no easy way to do this.If you really have problems with PHP,sending mail is not the important thing,the more important thing is to get a good reply!Sorry,it's my own opinion:) - Yea for

Re: [PHP] Re: Help with my code

2003-06-18 Thread Lars Torben Wilson
On Wed, 2003-06-18 at 08:23, Terje Torkelsen wrote: To echo multiple lines you have to write echo END html headtitle ... .. END; No offense, but this is completely false. Double-quotes will work just fine. -- Torben Wilson [EMAIL PROTECTED]

Re: [PHP] Re: Help with my code

2003-06-18 Thread Terje Torkelsen
1.2.3 Content-type: text/plain Content-transfer-encoding: 7BIT References: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [PHP] Re: Help with my code From: [EMAIL PROTECTED] (Lars Torben Wilson) On Wed, 2003-06-18 at 08:23, Terje Torkelsen wrote: To echo multiple lines you have to write

Re: [PHP] Re: Help with a UBB Code style parser...

2003-06-11 Thread Leif K-Brooks
Even better, try my BBCode class. Much more flexible. http://www.phpclasses.org/browse.html/package/951.html Manuel Lemos wrote: Hello, You may want to try this class: Class: UBBCode http://www.phpclasses.org/ubb -- The above message is encrypted with double rot13 encoding. Any unauthorized

Re: [PHP] Re: Help Needed

2003-02-04 Thread Pushpinder Singh Garcha
Hello All: Thanks again... I tried to use this and it is working fine for me. Please comment: ? session_start(); if (session_is_registered(valid_user)) include 'guest.html'; else include 'not_logged_in.php'; ? Many Thanks -Pushpinder On Tuesday, February 4, 2003, at 12:32 PM,

RE: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form.

2002-12-11 Thread Ford, Mike [LSS]
- Original Message - From: Victor [EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 1:49 PM Subject: RE: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form. Why are you using $_POST[]? I thought you had to use $_POST

RE: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form.

2002-12-10 Thread Craig Thomas
Using $_REQUEST[] works because the vars are in the http request, but $_POST[] contains nothing as the other poster noted: mehtod=post -Original Message- From: David Scott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Help

Re: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form.

2002-12-10 Thread David Scott
I have corrected the typo and had hoped this was a simple solution, yet $_POST still doesn't work. Any ideas? Craig Thomas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Using $_REQUEST[] works because the vars are in the http request, but $_POST[] contains

Re: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form.

2002-12-10 Thread Rick Emery
, regardless of version. - Original Message - From: David Scott [EMAIL PROTECTED] To: Sent: Tuesday, December 10, 2002 12:54 PM Subject: Re: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form. I have corrected the typo and had hoped this was a simple solution, yet $_POST

  1   2   >