function.inc.php error

General discussions related to php

Moderators: macek, egami, gesf

Cuban4904
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Mar 27, 2013 6:13 am

function.inc.php error

Postby Cuban4904 » Wed Mar 27, 2013 6:25 am

Hi

Total novice needing assistance

I have an error in the line

if(!preg_match("<?",$member_db_line)){

Error is Warning: preg_match() [function.preg-match]: No ending match delimiter '>'

it is a check login request that as somehow stopped working (i have not intentionally modified it)

Any help greatly appreciated

Cuban

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: function.inc.php error

Postby egami » Fri Mar 29, 2013 8:14 am

you have to "escape" the < bracket.

ie..

if(!preg_match("\<?",$member_db_line)){


Return to “PHP General”

Who is online

Users browsing this forum: Google [Bot] and 2 guests