Re: [PHP-DB] IF statement in WHILE statement

2007-02-13 Thread Matthew Ferry
Thanks Chris... added the extra = and its working fine... Have a nice day everyone Matt - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Matthew Ferry" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, February 13, 2007 11:53 PM Subject: Re

Re: [PHP-DB] IF statement in WHILE statement

2007-02-13 Thread Chris
Matthew Ferry wrote: Hello Everyone, Got another simple problem here I am trying to do a if statement inside a while (mysql_fetch_array) Here is my code: if ($link = mysql_tech_array($links)) { do { if ($_GET['page'] = "$link[file]") { You're assigning $_GET['page'] to whatever is

[PHP-DB] IF statement in WHILE statement

2007-02-13 Thread Matthew Ferry
Hello Everyone, Got another simple problem here I am trying to do a if statement inside a while (mysql_fetch_array) Here is my code: if ($link = mysql_tech_array($links)) { do { if ($_GET['page'] = "$link[file]") { $status = 'reg_button.php'; } else { $status = 'push_button.php';

Re: [PHP-DB] if statement

2005-01-28 Thread Balwant Singh
i may be wrong but as i understand that you want to check whether a array holds any value or not --> for this u can use COUNT function of array which will count the values of the array. with best wishes balwant On Sat, 2005-01-29 at 06:29, Craig Hoffman wrote: > Hi There, > I am trying to write

Re: [PHP-DB] if statement

2005-01-28 Thread Jochem Maas
Craig Hoffman wrote: Hi There, I am trying to write an if statement to see if an array has any values in it and if it does do something. for example: $ticklist2 = array("'$values") if (array_values(empty($ticklist2))){ empty() is used to check whether a var isset and is not null, "" or false

[PHP-DB] if statement

2005-01-28 Thread Craig Hoffman
Hi There, I am trying to write an if statement to see if an array has any values in it and if it does do something. for example: $ticklist2 = array("'$values") if (array_values(empty($ticklist2))){ do something } else { do something else } I just can't get this to work. Any help would be gre

[PHP-DB] If statement or something else?

2004-03-31 Thread JeRRy
Hi, Okay here is a sniplet of some code... ', '' ) FROM round2 where username = \"$sidarray[0]\""); $result = mysql_query($qr); $row = mysql_fetch_array($qr); echo $row['0']; ?> Okay what I am trying to do is this, if a person has tipped misc = y if not it's blank. Now if y I want to div

[PHP-DB] If Statement thanks

2003-02-26 Thread Chris Payne
Hi there everyone, Thank you all for your answer - DOH I can't believe I missed something so simple :-) Regards Chris

Re: [PHP-DB] If statement for sql statement

2002-04-09 Thread Jason Wong
On Wednesday 10 April 2002 12:32, jas wrote: > Ok here is my question... I have a form that reads the contents of a > directory, places the resulting files into a select box within a form for > further processing, code is as follows: [snip] > What I need to know is if there is a way to create an

[PHP-DB] If statement for sql statement

2002-04-09 Thread jas
Ok here is my question... I have a form that reads the contents of a directory, places the resulting files into a select box within a form for further processing, code is as follows: --"; while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name !="..")) { $file_lis

RE: [PHP-DB] If Statement that makes me cry

2002-02-11 Thread B Richards
works but I say start there. -Original Message- From: Todd Williamsen [mailto:[EMAIL PROTECTED]] Sent: February 11, 2002 1:05 PM To: 'DL Neil' Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DB] If Statement that makes me cry DL, I don't know what crawled up your ass a

RE: [PHP-DB] If Statement that makes me cry

2002-02-10 Thread Peter Lovatt
eturned Zero Records"; hth Peter --- Excellence in internet and open source software --- Sunmaia www.sunmaia.net [EMAIL PROTECTED] tel. 0121-242-1473 --- > -Original

[PHP-DB] If Statement that makes me cry

2002-02-10 Thread Todd Williamsen
This script is confusing the hell out of me... What its suppose to do is do a search on documents, and then is it finds something say who and where it is, but it repeats the message for every hit. Same goes with the message when there is no results, it repeats it for every record. All I want it