Simple AND question


Posted on 16th Feb 2014 07:03 pm by admin

Hello,

I've got following code:

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
Code: AND ($media=="mp3")
Can someone advice me how to do please?

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

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

No comments posted yet

Your Answer:

Login to answer
345 Like 43 Dislike
Previous forums Next forums
Other forums

Struct/union and scope problem!
HI all , I have
Code: in header.h typedef struct Node Link; /* ---------

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

quotes changing
hi all

in my content

opening quotes " changes to “

close qu

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

single page with referrer to show correct page
I have a simple website with a couple of different pages. I would like to be able to in a div tag w

paginate search result
Hi, I have a paginations script to display data from my database but i would like to paginate someon

UDP Multicast question
Hey,

Im not really in the know when it comes to network related programming and activitie

Content-Disposition: attachment; filename=... not working as i thought it should
taken the following code from the php.net site the script is not working.

what is not happeni

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

How can use this array as a key?
Say I have this array for example:


print_r($array);

Prints:
Code: [Select]Array

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash