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){ $$key=$value;}
}
I don't get the code from the
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){
HI all
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 2008-02-29. Where I am getting wrong.
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
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/
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
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
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
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
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
-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
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
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
: 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
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
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
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
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/ . When I go there, I get an error message
that
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/
: 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
Hello list,
We've been experiencing random crashes on httpd, error_log shows a
bunch of [notice] child pid 12984 exit signal Segmentation fault (11)
PHP 5.2.17:
./configure --with-apxs2=/var/www/bin/apxs --with-gd
--with-jpeg-dir=/usr/local --with-pgsql --with-pdo-pgsql
Hello,
This is my first time to post to the list. I've been working with PHP
for several years as a WordPress user, but I've come upon a problem I
can't solve.
I am trying to call up a specific php function (a plugin that displays
ads) if the page is the home page, another specific function if
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')
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
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
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
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,
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
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
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}
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. Right now I am checking this
using cookies. I want to know
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.
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
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
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
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
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
Hi..
I'm playing around with creating an app to allow users to
add/checkin/checkout docs from a web based app. The backend will tie into
SVN as a repository.
The app is intended to be a php/mysql/linux app.
I'm trying to find a few people that I might get to take a look at the
current doc(s) I
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,
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');
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
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');
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
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
Hi there,
I'm using the BBcode extension(version 1.0.2), and the manual(url: http://www.php.net/manual/en/function.bbcode-create.php)
said the bbcode_initial_tags accepted Object Oriented Notation on
content_handling, but I don't find any document on this notation or
syntax, so could
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.
Here's my code: --could it
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
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
code listing follows;
?php
/* Program: CompanyHome.php
* Desc:Displays a Web page that has four
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
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
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
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
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 date
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,
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,
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
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
-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
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
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:
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=
Hi,
I'm trying to load XML data into my script. That's no problem. The
problem is, that the schema validation fails all time after loading a
new document:
Warning: DOMDocument::schemaValidate()
[function.DOMDocument-schemaValidate]: Element
Hi,
I'm trying to load XML data into my script. That's no problem. The
problem is, that the
schema validation fails all time after loading a new document:
Warning: DOMDocument::schemaValidate()
[function.DOMDocument-schemaValidate]: Element
'{http://www.desktopportal.de/Preferences}user':
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
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
@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
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,
but I don't know how to do this.
Can someone
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,
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
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
- 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
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
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
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
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
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
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
designs, i do know how to create the database but, do not know
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
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
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
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
Team,
I am in need of your help.
I have tried over the years to do this.
But, I am not getting it correct.
What I want to do is build site that has team management
for your roster of players, and display stats in a nut shell.
As far as stats, I have about 5 years worth of data that I want
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
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
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
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
text between two unique and specific tags but I
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
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
# [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
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
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
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
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',
-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
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
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)
{
$row = mysql_fetch_array($result2,MYSQL_ASSOC);
echo a
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
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)
{
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,
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 =
1 - 100 of 551 matches
Mail list logo