Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34

Thread: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

  1. #31
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Instead of use mysql_fetch_array() use mysql_fetch_assoc(). (Could work)

  2. #32
    Join Date
    Apr 2009
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hai chriswattsuk,

    first you delete the code at the starting of your program that is



    <?php
    /* Program: petdisplay.php
    * Desc: Displays all pets in selected category.
    * /
    ?>
    <html>
    <head><title>Pet Catalog</title></head>
    <body>

    why because

    at the starting of the program we have to put the php code ,reason is some browsers do not allow the code.try it

    bye

  3. #33
    Join Date
    Apr 2009
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    remove this code at the starting of the program then you cant get such type of errors/warnings.

    <?php
    /* Program: petdisplay.php
    * Desc: Displays all pets in selected category.
    * /
    ?>
    <html>
    <head><title>Pet Catalog</title></head>
    <body>

  4. #34
    Join Date
    Mar 2009
    Location
    Chennai, India
    Posts
    77
    Thanks
    16
    Thanked 7 Times in 6 Posts

    Default

    Quote Originally Posted by medayn View Post
    after i try wif ur coding..
    im also hav a problem..


    SELECT * FROM kumpulan WHERE group = '-STANDBY-'
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-8\www\e-exam\proses_hapus2_group.php on line 19
    Interesting because, I created a test database according to your query and I ran your code, but I get the same error in the same line...

    I tried all I could, modifying different things, even changing the group '-STANDBY-' to just 'standby' etc...

    What could be really the problem????

    May be somewhere I am failing and I need to learn a lot more SQL

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •