h, the replacement string gets inserted
at the matched position.
I hope that made at least a little bit of sense :) If you're doing a lot of
regex work, I would strongly recommend reading the book Mastering Regular
Expressions by Jeffrey Friedl... it's very well written and very helpful.
-
o hear any comments on that regex's efficiency.
-Brian Rue
Dotan Cohen wrote:
> On 27/08/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> On Sun, August 26, 2007 3:41 pm, Dotan Cohen wrote:
>> > I have a string with some HTML paragraphs, like so:
>> > $text="Firs
ally helpful
for me; give it a try if you haven't already.
Good luck...
-Brian Rue
Bruce Steinback wrote:
> Hi all,
>
> First thanks to the people that corrected my dumb mistake on XML parsing a
> few weeks ago, and let's hope that this is as dumb.
>
> I've got
In this case $_POST would be the appropriate array, since your form is
using the POST method:
Goltsios Theodore wrote:
>
> I thought I just did a comment and suggested that it is a lame solution
> to use $_REQUEST plus I did not know witch of the two method (POST or
> GET) would be appropriat
Hi,
I need to link a url like this:
www.mysite.com/?id=5
to a folder like this:
www.mysite.com/5
(so that I can access it from the subdomain 5.mysite.com)
I'm assuming that symlinks are the best way to do this, but I really don't
know how to do it.
Any help is greatly appreciated.
Thanks
>>Can anyone show me how to split() each line and parse to see if $user
exists?<<
// get contents of a file into a string
$filename = "./users.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
// seperate the string into an array of lines
$linebreak
Add a column to your messages table called "views". Whenever you read the
message (SELECT message FROM messages_table WHERE messageid='id';),
increment the column for that row (UPDATE messages_table SET views = views +
1 WHERE messageid='id';).
- Original Message -
From: "Thomas Edison Jr.
"'";
$result = mysql_query($query,$conn);
if (mysql_num_rows($result) != 0) { //*this is the line that returns the
error*
return true;
} else {
return false;
}
}
I've checked that the connection works, and that the query is what it should
be, and the query works when I t
table names, database names, also your result
lines, I've found i get that error by not calling a result or calling the
incorrect table/database
>
> Peter
>
> -Original Message-
> From: Brian Rue [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 10:28 AM
> To: [
etting a result back from
MySQL... and it keeps trying to get it.
Any help?
Thanks,
Brian Rue
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
10 matches
Mail list logo