#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    norcross
    Posts
    1
    Rep Power
    0
    This gets stuck on the first record and goes into an infinate loop.

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    while ($myrow = mysql_fetch_array($result)) {

    if ($owner) == '') {

    $owner = "M";
    echo $id;
    echo "* - Updated!<br>";
    $update = "UPDATE test SET owner = '$owner'";

    } else {

    echo $id;
    echo "* - Already set, or failed insertion<br>";
    }

    }

    [/code]

    [This message has been edited by anothernewbie (edited September 18, 2000).]
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Newark, DE, USA
    Posts
    39
    Rep Power
    15
    your conditional statement is missing a (
    it should be"

    if ( ($owner) == '') {

Similar Threads

  1. simple home network problem
    By geo315 in forum Networking Help
    Replies: 1
    Last Post: February 13th, 2004, 04:03 AM
  2. simple problem, please help...
    By poncenby in forum Apache Development
    Replies: 2
    Last Post: February 6th, 2004, 02:59 AM
  3. A simple problem?
    By adavidso in forum Python Programming
    Replies: 1
    Last Post: February 3rd, 2004, 01:38 PM
  4. Mod Rewrite (hopefully simple) problem!
    By bu22 in forum Apache Development
    Replies: 0
    Last Post: January 26th, 2004, 01:13 PM
  5. simple MYSQL_FETCH_ROW problem
    By doctacrazy in forum PHP Development
    Replies: 12
    Last Post: January 24th, 2004, 02:42 AM

IMN logo majestic logo threadwatch logo seochat tools logo