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
problem with php mysql query
Hi guy's...I'm totally lost here..because don't have any idea how to make a query for grab record using BETWEEN startdate and enddate since existing record are stored using this format
Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a method where it has been thrown.Right now I have this:class myException extends Exception {
how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste it .... not really wanting to use a TEXTAREA box .... any ideas ?
str_replace help
Hey there,I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean up bad html to valid xhtml, I am using:Code: $pee = str_replace('&', '&', $pee);It
Help with echo()
I'm having some problems with this code:Code: echo ' <A
Material Master Update through BAPI - Follow up material not updated
Hi Experts,
PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see when I view source, versus what I want to see … I am having image re-sizing issues that
Allegro crashes when running load_bitmap. Why?
I can not get Allegro to load any BMP images. Here is a section of test code. The picture is in the working directory:BITMAP *my_pic; my_pic = load_bitmap("kirby.bmp", NULL); if(!my_pic)
Regarding accessing SQL query issued by any user in Oracle 10g
Hi all,
Splitting Attributes
SQL> SELECT I_NAME, substr(I_NAME,1,instr(I_NAME,'O')) "First part",