Re: [PHP] Need help to understand a code

2012-09-22 Thread Stefan Wixfort
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] Need help on increment date

2012-05-24 Thread Stuart Dallas
On 24 May 2012, at 08:18, Md Ashickur Rahman Noor wrote: I need help to increment date in php. I found this code helpful $date = strtotime(+1 day, strtotime(2007-02-28)); echo date(Y-m-d, $date); But when My date is 2008-02-28 this code give output 2012-03-01. But it should be

Re: [PHP] Need help on increment date

2012-05-24 Thread Md Ashickur Rahman Noor
Get this from herehttp://stackoverflow.com/questions/660501/simplest-way-to-increment-a-date-in-php -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Volunteer, FOSS Bangladesh http://fossbd.org/

Re: [PHP] Need help on increment date

2012-05-24 Thread shiplu
It works for me too. I tell you two things, a) make sure there is a space after +1 day. So it should look like +1 day . This ensures that the unix time is not concatenated with day. b) calling strtotime 2 times is not a great solution. You can all it once only. Like this, $date = strtotime

Re: [PHP] Need help on increment date

2012-05-24 Thread Md Ashickur Rahman Noor
It works. Thanks you two. Thanks Shiplu bro for the advice. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Volunteer, FOSS Bangladesh http://fossbd.org/ Mozilla Repshttp://reps.mozilla.org

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Lester Caine
Rod Lindgren wrote: Thanks for the link. I am now wondering if Wordpress is available on my server. If it's not, you can add it yourself in much the same way you uploaded the 'profile' for the wordpress site ... http://wordpress.org/download/ Essentially it is just another PHP application, but

RE: [PHP] Need help Wth PHP

2011-10-10 Thread Rod Lindgren
to have lost the original page. Thanks, Rod -Original Message- From: Lester Caine [mailto:les...@lsces.co.uk] Sent: Sunday, October 09, 2011 11:31 PM To: php-general@lists.php.net Subject: Re: [PHP] Need help Wth PHP Rod Lindgren wrote: Thanks for the link. I am now wondering

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Lester Caine
Rod Lindgren wrote: I was able to install Wordpress, but how do I identify the database from the original site? Do I need to change some settings in it somewhere with the authorizations from the new install on the new server? Right now, if you go to the website, a generic page created by the

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Jeffrin Jose
-general@lists.php.net Sent: Monday, 10 October 2011 1:37 PM Subject: RE: [PHP] Need help Wth PHP I was able to install Wordpress, but how do I identify the database from the original site? Do I need to change some settings in it somewhere with the authorizations from the new install on the new server

RE: [PHP] Need help Wth PHP

2011-10-10 Thread Jen Rasmussen
for me. Jen -Original Message- From: Rod Lindgren [mailto:r...@okinawa-te.info] Sent: Monday, October 10, 2011 3:08 AM To: 'Lester Caine'; php-general@lists.php.net Subject: RE: [PHP] Need help Wth PHP I was able to install Wordpress, but how do I identify the database from

RE: [PHP] Need help Wth PHP

2011-10-10 Thread Jen Rasmussen
Subject: RE: [PHP] Need help Wth PHP If I remember this correctly ... The database information can be setup/modified only with the install/reinstall. If the DB's are moving to a new server, You have to copy out the databases directly from the DB manager and then do a fresh install of WP. You

RE: [PHP] Need help Wth PHP

2011-10-10 Thread Rod Lindgren
: Monday, October 10, 2011 6:37 AM To: r...@okinawa-te.info; php-general@lists.php.net Subject: RE: [PHP] Need help Wth PHP Ok, scratch the db info can only be setup/modified with install/reinstall.. Forgot about wp-config.php ...doh! Otherwise, you still need to backup the DBs from old server

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Paul M Foster
On Mon, Oct 10, 2011 at 03:58:31PM -0700, Rod Lindgren wrote: Thanks for the info. Very helpful. I am working on it. What is it that makes Wordpress valuable? The website in question is really pretty basic. I am trying to figure out the reason Wordpress was used. It allows the site owner

RE: [PHP] Need help Wth PHP

2011-10-10 Thread Rod Lindgren
Subject: Re: [PHP] Need help Wth PHP On Mon, Oct 10, 2011 at 03:58:31PM -0700, Rod Lindgren wrote: Thanks for the info. Very helpful. I am working on it. What is it that makes Wordpress valuable? The website in question is really pretty basic. I am trying to figure out the reason Wordpress

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Govinda
I see. There are other ways to do this. If I knew how it works, maybe I could get this site working. I am missing some essential concept here. Rod, this list is about/using PHP especially. There are better lists/forums for getting help with frameworks built from PHP, like e.g. wordpress. I

Re: [PHP] Need help Wth PHP

2011-10-09 Thread James Yerge
On 10/09/2011 08:41 PM, Rod Lindgren wrote: I have a hosting account and am trying to get a friend's website up and running. We downloaded his existing site from his current host and uploaded it to my host. It is currently under a subdomain, www.egypt.aragren.com http://www.egypt.aragren.com/

RE: [PHP] Need help Wth PHP

2011-10-09 Thread Rod Lindgren
: James Yerge [mailto:ja...@nixsecurity.org] Sent: Sunday, October 09, 2011 5:46 PM To: r...@okinawa-te.info Cc: php-general@lists.php.net Subject: Re: [PHP] Need help Wth PHP On 10/09/2011 08:41 PM, Rod Lindgren wrote: I have a hosting account and am trying to get a friend's website up and running

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Jason Pruim
Hi Vince, On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: ?php if (is_home(?php wpads('728leaderboard'); ?) (is_page(42)(?php wpads('leaderboard1'); ? (is_page(10)(php? wpads('leaderboard5);?) ? Try: ?php if (is_home(wpads('728leaderboard');) (is_page(42)( wpads('leaderboard1')

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Vince Leibowitz
That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all instances, which is the same issue I was having with the original code

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Jason Pruim
On Jul 31, 2010, at 3:34 PM, Vince Leibowitz wrote: That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all instances, which is

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Peter Lind
On 31 July 2010 21:34, Vince Leibowitz vince.leibow...@gmail.com wrote: That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Vince Leibowitz
Peter, That works like a dream! Thanks very much for your help and pointing me to those pages. I've already noticed something over there that will fix another problem I've been having. You folks are great for offering the assistance. Have a good weekend. Vince On Sat, Jul 31, 2010 at 2:50 PM,

Re: [PHP] need help w/ unfamiliar syntax

2010-04-11 Thread Daniel Egeberg
On Sun, Apr 11, 2010 at 20:30, lala l...@mail.theorb.net wrote: Hi all, I've wasted two days trying to find this in the documentation.  Google is no help here either; they only index text. While looking at some code using objects I came across this:    $this-{$spec} The example works

Re: [PHP] need help w/ unfamiliar syntax

2010-04-11 Thread kranthi
guess you are looking for http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help w/ unfamiliar syntax

2010-04-11 Thread Robert Cummings
Daniel Egeberg wrote: On Sun, Apr 11, 2010 at 20:30, lala l...@mail.theorb.net wrote: Hi all, I've wasted two days trying to find this in the documentation. Google is no help here either; they only index text. While looking at some code using objects I came across this: $this-{$spec}

Re: [PHP] Need Help.

2009-07-14 Thread Ashley Sheridan
On Tue, 2009-07-14 at 11:59 +0530, Girish Padia wrote: Dear Sir, I am facing two problem while developing my site in php. 1) I want to delete browser history whenever i migrate from one page to another. so that user can never press Back button. 2) I have 20 users who have access to my site.

Re: [PHP] Need Help.

2009-07-14 Thread Carlos Medina
Hi Girish, You can save the SEssion id in a Cookie to make it available over requests and over days too. If you use Sessions stored on DB, you can get more security, when the SEssion Cookie is stored Encrypted. Other Option is to send the Session id, most know as PHPSESSIONID, as GET

Re: [PHP] Need Help.

2009-07-14 Thread kranthi
Hi Girish, 1. You cannot modify the browser Back button (any thing on the client's computer for that matter). 2. I strongly oppose the use of Cookies for tracking the user login, due to security reasons. Cookies are saved on the client's computer and he/she can easily modify the information

Re: [PHP] Need Help.

2009-07-14 Thread Martin Scotta
hahahahahaha How are you to delete my history? The fact that you develop a website does not allow you to take the control of my browser. But you can avoid the history to be populated by using javascript a href=lalalal.html onclick=document.location.replace(this.href) Click to lalalal /a

RE: [PHP] Need Help.

2009-07-14 Thread Bob McConnell
From: Martin Scotta hahahahahaha How are you to delete my history? The fact that you develop a website does not allow you to take the control of my browser. But you can avoid the history to be populated by using javascript a href=lalalal.html

Re: [PHP] Need Help.

2009-07-14 Thread Martin Scotta
I know... this is not for a php thread... but... If you look at the HTML the a tag is made completely unobtrusive. The link will still working without javascript. This is the original tag (with javascript) a href=lalalal.html onclick=document.location.replace(this.href) Click to lalalal

Re: [PHP] need help with code

2009-03-22 Thread VamVan
Code without proper indentation and is very hard to comprehend. You have unnecessary spacing and line breaks that makes it difficult to debug. I suggest you few things as a good practice: 1) Until you learn perfectly to code use some nice GUI editors that have syntax highlighting (aptana,

Re: [PHP] need help with code

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:42, Chris Westbrook westbch...@gmail.com wrote: I hate asking for help with simple code like this because I can usually figure it out, but I'm stumped on this one.  I'm getting a parser error on line 13, whether I comment out the require_once line or not.   Can you

Re: [PHP] need help with code

2009-03-21 Thread Virgilio Quilario
I hate asking for help with simple code like this because I can usually figure it out, but I'm stumped on this one.  I'm getting a parser error on line 13, whether I comment out the require_once line or not.   Can you help? ?php require_once('twitterlib.php');

Re: [PHP] need help with code

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:54, Virgilio Quilario virgilio.quila...@gmail.com wrote: hi Chris, basing on the code you posted, you're missing the closing brace for if ($accessToken===NULL) { there should be 3 closing braces before the last ? That'll be the next error, but that error

Re: [PHP] need help with code

2009-03-21 Thread Virgilio Quilario
hi Chris, basing on the code you posted, you're missing the closing brace for if ($accessToken===NULL) { there should be 3 closing braces before the last ?    That'll be the next error, but that error would print unexpected $end on line xxx. well, if you're getting the parse error

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

2009-01-27 Thread Stuart
2009/1/27 Terion Miller webdev.ter...@gmail.com: 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

Re: [PHP] Need Help

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 2:39 PM, dlinden dlin...@springtidepartners.com wrote: I am getting this error and can't resolve; Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /home5/camfulco/public_html/CompanyHome.php on line 132 I'm not going to read all

Re: [PHP] Need Help

2008-12-29 Thread John Corry
1. It's generally considered poor etiquette to send that much code to a mailing list. How about snipping the relevant section next time? 2. the error says: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result. There's your clue. Is the query good? Is the connection good? I'm getting a

Re: [PHP] Need Help - apology

2008-12-29 Thread John Corry
That was too heavy handed. I'm sorry. Please forgive my harshness. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Help - apology

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 3:18 PM, John Corry jco...@gmail.com wrote: That was too heavy handed. I'm sorry. Please forgive my harshness. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Having a bad day at work? ;) -- PHP

Re: [PHP] Need help on MySQL query

2008-12-10 Thread German Geek
On Thu, Dec 11, 2008 at 4:52 PM, Rahat Bashir [EMAIL PROTECTED]wrote: 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,

Re: [PHP] Need help on MySQL query

2008-12-10 Thread Andrew Ballard
On Wed, Dec 10, 2008 at 10:52 PM, Rahat Bashir [EMAIL PROTECTED] wrote: 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,

Re: [PHP] Need help on MySQL query

2008-12-10 Thread clive
Rahat Bashir wrote: I need your help on writing a MySQL query. I see nothing php related in your question, try a mysql list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help with regular expression

2008-07-10 Thread Maxim Antonov
Hello. But I need no td and tr inside regular expression It is a part of my templater. In real code it looks like: if(strlen($item[$key])1){ return preg_replace('#\{%%%.*?\{%'.$key.'%\}.*?%%%\}#is','',$tpl); } if one of $key inside {%%% %%%} points to

RE: [PHP] Need help with regular expression

2008-07-10 Thread Boyd, Todd M.
-Original Message- From: Maxim Antonov [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 4:24 AM To: php-general@lists.php.net; Daniel Brown Subject: Re: [PHP] Need help with regular expression Hello. But I need no td and tr inside regular expression It is a part of my

Re: [PHP] Need help with regular expression

2008-07-10 Thread Al
Your description of the problem is confusing. Do you simply want to delete a table row if it contains a variable, e.g., $var='bigfoto' and append ==REPLACEMENT== ? Where $var can be anything you assign. Maxim Antonov wrote: Hello. But I need no td and tr inside regular expression It is a

Re: [PHP] Need help with regular expression

2008-07-10 Thread Eric Butera
On Wed, Jul 9, 2008 at 5:21 AM, Maxim Antonov [EMAIL PROTECTED] wrote: Hi, all! I try to use folowing regular expression: $out = preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str); It not work as I need. Please tell me - what I do wrong? I have string:

Re: [PHP] Need help with regular expression

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 5:21 AM, Maxim Antonov [EMAIL PROTECTED] wrote: Hi, all! I try to use folowing regular expression: $out = preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str); [snip!] I need result as: trtdNAME:/tdtdinput type=text name=name value=

Re: [PHP] Need help adding dBase support to PHP

2007-10-12 Thread Jon Westcot
General Sent: Thursday, October 11, 2007 6:06 PM Subject: Re: [PHP] Need help adding dBase support to PHP On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi again: Thanks for the info. From what I can see, GoDaddy does NOT provide access to ssh. Any other thoughts? Or is there some

Re: [PHP] Need help adding dBase support to PHP

2007-10-12 Thread Nathan Nobbe
On 10/12/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: The page you referenced in the PHP documentation is exactly what I saw that indicated that the dBase functions needed to be compiled in with the --enable-dbase directive. What I need to know is HOW to do this, even in general

Re: [PHP] Need help adding dBase support to PHP

2007-10-12 Thread Jon Westcot
@lists.php.net Sent: Friday, October 12, 2007 12:27 AM Subject: Re: [PHP] Need help adding dBase support to PHP On 10/12/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: The page you referenced in the PHP documentation is exactly what I saw that indicated that the dBase functions

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: I'm not versed at all with Linux, and I need some help in configuring PHP to allow me to use the dBase-related functions. From what I read in the help files, it seems that I need to recompile PHP with the --enable-dbase command,

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi Nathan: I have no idea. Where would I look to find this out? Will phpinfo() give me this? And, if so, where would I find it? Jon - Original Message - From: Nathan Nobbe To: Jon Westcot Cc: PHP General Sent: Thursday, October 11, 2007 5:00 PM Subject: Re: [PHP] Need

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: I have no idea. Where would I look to find this out? Will phpinfo() give me this? And, if so, where would I find it? you might try uname -a from the command line; but theres no guarantee it will show the distribution. it

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
- Original Message - From: Nathan Nobbe To: Jon Westcot Cc: PHP General Sent: Thursday, October 11, 2007 5:08 PM Subject: Re: [PHP] Need help adding dBase support to PHP On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: I have no idea. Where would I look to find

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi again, Nathan: I'm not certain how to get to a command line. The server is a shared server provided by GoDaddy, if that's any help. They told me that I needed to change something in the .htaccess file, but that didn't sound right at

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
To: Jon Westcot Cc: PHP General Sent: Thursday, October 11, 2007 5:34 PM Subject: Re: [PHP] Need help adding dBase support to PHP On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi again, Nathan: I'm not certain how to get to a command line. The server is a shared server provided

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi again: Thanks for the info. From what I can see, GoDaddy does NOT provide access to ssh. Any other thoughts? Or is there some way to tell me, in general terms, how to configure PHP to allow the dbase functions to be used? if

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi again: Thanks for the info. From what I can see, GoDaddy does NOT provide access to ssh. Any other thoughts? Or is there some way to tell me, in general terms, how to

Re: [PHP] need help,pls

2007-07-26 Thread Alan Milnes
On 26/07/07, esimaje juan toritseju [EMAIL PROTECTED] wrote: hi, My name is Juan, i need help from you and i will be greatful if you could assist me,i have got an academic project to create a website .Within the page i should create a login session for users ,i will have a database to save

Re: [PHP] need help

2007-07-02 Thread Davide Bernard
I've found http://php.net/ to be very helpful. Especially in troubleshooting. Muhammad Hassan Samee [EMAIL PROTECTED] 7/2/2007 8:38 AM hay i m a C++ programmer and new to web development with basic knowledge of HTML, CSS and j.script now i want to start learning PHP anybody can direct me to

Re: [PHP] need help

2007-07-02 Thread Mohamed Yusuf
checkout this site http://www.w3schools.com/php/default.asp On 7/2/07, Davide Bernard [EMAIL PROTECTED] wrote: I've found http://php.net/ to be very helpful. Especially in troubleshooting. Muhammad Hassan Samee [EMAIL PROTECTED] 7/2/2007 8:38 AM hay i m a C++ programmer and new to web

Re: [PHP] need help

2007-07-02 Thread Sancar Saran
On Monday 02 July 2007 16:38:10 Muhammad Hassan Samee wrote: hay i m a C++ programmer and new to web development with basic knowledge of HTML, CSS and j.script now i want to start learning PHP anybody can direct me to some good/fast track tutorials \ books for getting start Hi, good/fast

RE: [PHP] Need help with RegEx

2006-12-15 Thread Richard Lynch
appreciated, B -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:59 AM To: Anthony Papillion Cc: php-general@lists.php.net Subject: Re: [PHP] Need help with RegEx At 01:02 AM 12/11/2006 , Anthony Papillion wrote: Hello Everyone, I am having

RE: [PHP] Need help with RegEx

2006-12-12 Thread Ford, Mike
On 11 December 2006 19:43, Michael wrote: At 08:29 AM 12/11/2006 , Brad Fuller wrote: The example provided didn't work for me. It gave me the same string without anything modified. You are absolutely correct, this is what I get for not testing it explicitly :( My most sincere

RE: [PHP] Need help with RegEx

2006-12-12 Thread Michael
At 04:56 AM 12/12/2006 , Ford, Mike wrote: On 11 December 2006 19:43, Michael wrote: At 08:29 AM 12/11/2006 , Brad Fuller wrote: The example provided didn't work for me. It gave me the same string without anything modified. You are absolutely correct, this is what I get for not

Re: [PHP] Need help with RegEx

2006-12-11 Thread Børge Holen
explode it I'm having quite the difficulty to comprehend the regexp myself, but as a training, go ahead. On Monday 11 December 2006 09:02, Anthony Papillion wrote: Hello Everyone, I am having a bit of problems wrapping my head around regular expressions. I thought I had a good grip on them

Re: [PHP] Need help with RegEx

2006-12-11 Thread T . Lensselink
I'm no regex guru but something goes wrong here. First of you miss the second parameter in preg_match int preg_match ( string pattern, string subject [, array matches [, int flags [, int offset]]] ) If you need the text from two unique tags it should not be to hard: $test = tag lang='ttt'THIS

Re: [PHP] Need help with RegEx

2006-12-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-11 02:02:46 -0600: I am having a bit of problems wrapping my head around regular expressions. I thought I had a good grip on them but, for some reason, the expression I've created below simply doesn't work! Basically, I need to retreive all of the text between

Re: [PHP] Need help with RegEx

2006-12-11 Thread Michael
At 01:02 AM 12/11/2006 , Anthony Papillion wrote: Hello Everyone, I am having a bit of problems wrapping my head around regular expressions. I thought I had a good grip on them but, for some reason, the expression I've created below simply doesn't work! Basically, I need to retreive all of the

Re: [PHP] Need help with RegEx

2006-12-11 Thread Michael
I just realized I neglected to explain a couple of things here, sorry... My method will only work for the FIRST occurrence of the div tag pair in $source_html. The reason this method works is that you are telling preg_replace to replace everything that matches the match pattern, with just what

RE: [PHP] Need help with RegEx

2006-12-11 Thread Brad Fuller
have a working solution how we can get the text from inside these tags using regex? Much appreciated, B -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:59 AM To: Anthony Papillion Cc: php-general@lists.php.net Subject: Re: [PHP] Need help

RE: [PHP] Need help with RegEx

2006-12-11 Thread tg-php
If you didn't say using regex this is how I'd do it (untested, forgive typos and such..ripped from some code I actively use and stripped down): ?PHP $_XML_RESPONSE_PARSER = xml_parser_create(); xml_set_element_handler($_XML_RESPONSE_PARSER, 'xml_response_open_element_function',

RE: [PHP] Need help with RegEx

2006-12-11 Thread Brad Fuller
-general@lists.php.net Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Need help with RegEx If you didn't say using regex this is how I'd do it (untested, forgive typos and such..ripped from some code I actively use and stripped down): ?PHP $_XML_RESPONSE_PARSER = xml_parser_create

RE: [PHP] Need help with RegEx

2006-12-11 Thread Michael
regex? Much appreciated, B -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:59 AM To: Anthony Papillion Cc: php-general@lists.php.net Subject: Re: [PHP] Need help with RegEx At 01:02 AM 12/11/2006 , Anthony Papillion wrote: Hello Everyone

Re: [PHP] need help with foreach

2006-10-31 Thread Dave Hamber
Its not very clear what you want to achieve with that code snippet. If you are pulling database rows out of your database with mysql_fetch_array(), then you do not need a foreach loop. I think you may want something like this, but without knowing your database table structure and the query

Re: [PHP] need help with foreach

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 4:09 am, [EMAIL PROTECTED] wrote: I want to tell the server to do 2 things when I click on the jobType link. This is the code that I have now which displays the art when I click on jobType foreach($row as $jobType) {

Re: [PHP] need help to build a query

2006-10-11 Thread Ivo F.A.C. Fokkema
On Tue, 10 Oct 2006 14:22:54 -0500, Richard Lynch wrote: On Mon, October 9, 2006 2:58 pm, John Wells wrote: On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: but I know there must be much better solution then this one. You're right: Simply JOIN your queries... SELECT order_id,

Re: [PHP] need help to build a query

2006-10-10 Thread Richard Lynch
On Mon, October 9, 2006 2:44 pm, [EMAIL PROTECTED] wrote: I have table orders with primary key order_id. I have table uploaded_files with primary key ufid and uploaded files are linked to orders by order_id column. I have to list all orders and uploaded files. this works fine: $query =

Re: [PHP] need help to build a query

2006-10-10 Thread Richard Lynch
On Mon, October 9, 2006 2:58 pm, John Wells wrote: On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: but I know there must be much better solution then this one. You're right: Simply JOIN your queries... SELECT order_id, order_date, order_status, file_name FROM orders JOIN

Re: [PHP] need help to build a query

2006-10-10 Thread Richard Lynch
On Mon, October 9, 2006 3:09 pm, [EMAIL PROTECTED] wrote: But, in this case I will have repeating order_date and order_status info? idorder_datestatusfile_name 122006-10-09live file1.jpg 122006-10-09live file2.jpg 122006-10-09live

Re: [PHP] need help to build a query

2006-10-10 Thread afan
sure it is! ;) On Mon, October 9, 2006 2:58 pm, John Wells wrote: On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: but I know there must be much better solution then this one. You're right: Simply JOIN your queries... SELECT order_id, order_date, order_status, file_name FROM

Re: [PHP] need help to build a query

2006-10-10 Thread afan
ok. got the point. On Mon, October 9, 2006 3:09 pm, [EMAIL PROTECTED] wrote: But, in this case I will have repeating order_date and order_status info? idorder_datestatusfile_name 122006-10-09live file1.jpg 122006-10-09live file2.jpg 12

Re: [PHP] need help to build a query

2006-10-10 Thread Richard Lynch
In MySQL, you can do explain $query to see what MySQL estimates will be the workload. Interpreting that output is more art than science, but with practice, you can at least avoid SOME querie that will drive your server to its knees. I did work on a PostgreSQL search engine once where we did a

Re: [PHP] need help to build a query

2006-10-10 Thread John Wells
On 10/10/06, Richard Lynch [EMAIL PROTECTED] wrote: This is a lot more subtle problem than it seems at first glance, eh? Yup, sure is. Thanks for the detailed response, so helpful as always. -John W -- Some people have a gift link here. Know what I want? I want you to buy a CD from some

Re: [PHP] need help to build a query

2006-10-09 Thread John Wells
On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: but I know there must be much better solution then this one. You're right: Simply JOIN your queries... SELECT order_id, order_date, order_status, file_name FROM orders JOIN uploaded_files AS uf ON orders.order_id = uf.order_id

Re: [PHP] need help to build a query

2006-10-09 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: hi to all, I have table orders with primary key order_id. I have table uploaded_files with primary key ufid and uploaded files are linked to orders by order_id column. I have to list all orders and uploaded files. this works fine: $query = mysql_query( select

Re: [PHP] need help to build a query

2006-10-09 Thread afan
But, in this case I will have repeating order_date and order_status info? idorder_datestatusfile_name 122006-10-09live file1.jpg 122006-10-09live file2.jpg 122006-10-09live file3.jpg 132006-10-09live file1.jpg 142006-10-09

Re: [PHP] need help to build a query

2006-10-09 Thread afan
while I was trying again I did something wrong (?) and my server is now busy and looks like it went down?!? The qestion is how can I check first query before I apply it to be sure I'm not goig to read every record in my DB or get into loop? thanks. -afan On 10/9/06, [EMAIL PROTECTED] [EMAIL

Re: [PHP] need help to build a query

2006-10-09 Thread John Wells
Yes you are right, but I guess you can decide which is worse: sending extra data in one query or send extra queries. I guess it depends on how many records we're talking about... Brad also brings up a good point I hadn't considered. I do think an OUTER join is possible, perhaps depending on

Re: [PHP] need help to build a query

2006-10-09 Thread Larry Garfield
On Monday 09 October 2006 16:50, John Wells wrote: Yes you are right, but I guess you can decide which is worse: sending extra data in one query or send extra queries. I guess it depends on how many records we're talking about... It will vary with your problem, but in general, fewer queries

RE: [PHP] Need help with PEAR Quickform

2006-06-22 Thread Chris Boget
I am busy working on a form using QuickForm. I would like to make use of a confirmation page where the user must eitheir select to change the details or continue. Does anyone know how to achieve this? On POST, you could redisplay the form in a Frozen state. If the form is frozen, you

RE: [PHP] Need Help Please

2006-05-23 Thread Jay Blanchard
[snip] While tabindex is a neat thing to use it does not necessarily give focus to the first element of the form, it merely dictates the order in which form elements will be given focus when the tab key is pressed. The action may vary from browser to browser. Likely, when going to a form with

RE: [PHP] Need Help Please

2006-05-22 Thread Jay Blanchard
[snip] Although someone else has suggested you use JavaScript to set the focus on a particular form field, I urge you instead to use HTML tabindex property: pUser Name: input tabindex=1 type=text name=username /p br pPassword: input tabindex=2 type=password name=password /p br pinput tabindex=3

Re: [PHP] Need Help Please

2006-05-21 Thread Wolf
Sure we can... Go back and read your manual. Then surf Google. Then tell us where you are getting the certificate from since some of us might be wasting our time taking a class some place that teaches you so poorly. Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Need Help Please

2006-05-21 Thread Chris
marvin hunkin wrote: Hi. doing an assignment, for my Certificate Four In Website Administration. Wow someone doing an assignment has written some code :) Good stuff! $_POST['username']; $_POST['password']; if ('username'='username') ('password'='password') This little bit of code is your

Re: [PHP] Need Help Please

2006-05-21 Thread Chris
Wolf wrote: Sure we can... Go back and read your manual. Then surf Google. Then tell us where you are getting the certificate from since some of us might be wasting our time taking a class some place that teaches you so poorly. At least there were attempts at code which makes a nice

Re: [PHP] Need Help Please

2006-05-21 Thread John Nichel
marvin hunkin wrote: Hi. doing an assignment, for my Certificate Four In Website Administration. The tutor list is down the hall. now got a couple of problems. will explain what i have to do. create a html form, which i have done. in textpad. now, when i open the form, it does not set focus

Re: [PHP] Need Help Please

2006-05-21 Thread Paul Novitski
At 07:38 PM 5/21/2006, marvin hunkin wrote: now, when i open the form, it does not set focus to the first form field which is the user name. goes to the login button. why is this? Marvin, Although someone else has suggested you use JavaScript to set the focus on a particular form field, I

  1   2   3   4   >