Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

function.inc.php error

General discussions related to php

Moderators: macek, egami, gesf

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
Cuban4904
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Mar 27, 2013 6:13 am

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)){
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT


Return to PHP General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.