Link to home
Start Free TrialLog in
Avatar of XK8ER
XK8ERFlag for United States of America

asked on

add an and

hello there,
Im using this to check one database but how can I have (db_site1, db_site2, db_site3)
if($database_rec[0] == 'db_site1') continue;

Open in new window

Avatar of Roger Baklund
Roger Baklund
Flag of Norway image

Try this:
if(in_array($database_rec[0],array('db_site1','db_site2','db_site3')) continue;

Open in new window

Avatar of XK8ER

ASKER

I tried this but it didnt work.. is there another way of doing it?
ASKER CERTIFIED SOLUTION
Avatar of Roger Baklund
Roger Baklund
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial