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

CHECK A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of

Syntax Help
Code:


im having trouble with that code snipped
Parse error: syntax error, unexpec

problems with contact forms that are only protected against SQL injections
What could be a potential problem with contact forms that are only protected against SQL injections

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

How to make a mail Form secure?
I want to create an email Form on my web site. How can I make the Form secure so the submitted info

cURL and Sessions
Ohai.

So, I'm trying to cURL a bunch of things off of a page, and put them into a session. I'

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