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
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
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';
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
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
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
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
Hi there everyone,
Thank you all for your answer - DOH I can't believe I missed something so simple :-)
Regards
Chris
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
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
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
eturned Zero Records";
hth
Peter
---
Excellence in internet and open source software
---
Sunmaia
www.sunmaia.net
[EMAIL PROTECTED]
tel. 0121-242-1473
---
> -Original
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
13 matches
Mail list logo