Jump to content

[SOLVED] Simple AND question


djtozz

Recommended Posts

Hello,

 

I've got following code:

 

			if(strpos($row[13],"http://")!==false) $info['results'][$num]['player']="PREVIEW";
		else $info['results'][$num]['player']="NO PREVIEW";

 

and would like to add following AND statement

 AND ($media=="mp3") 

 

Can someone advice me how to do please?

 

I'm getting following error: "unexpected T_LOGICAL_AND" in my code below.

 

			if(strpos($row[13],"http://")!==false) AND ($media=="mp3") $info['results'][$num]['player']="PREVIEW";
		else $info['results'][$num]['player']="NO PREVIEW";

 

Thank you

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/178326-solved-simple-and-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.