Page 6 of 9 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 86

Thread: MySQL Database showing on a page.

  1. #51
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you?
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  2. #52
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    impatient are we?
    Please don't mind me. I am just posting a lot of nonsense.

  3. #53
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ran the script

    this is the output/result/outcome from my end

    HTML Code:
    <table><tr><th>del</th></tr><tr><td></td>
    </tr></table>
    Last edited by jr_yeo; 07-20-2006 at 03:09 AM.
    Please don't mind me. I am just posting a lot of nonsense.

  4. #54
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What EXACCLY is in the request.php or Requests.php file?
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  5. #55
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this
    PHP Code:
    <?php

    $conn 
    mysql_connect('localhost''habbo''habbo');
    mysql_select_db('habbo');
    $tablename 'request';
    $uniquerow 'ID';
    if(isset(
    $_GET['delete']))
      if(!
    is_numeric($_GET['delete'])) die();
      else 
    mysql_query('delete from `' $tablename '` where ' $uniquerow '=\'' $_GET['delete'] . '\';');

    $rs mysql_query('select * from `' $tablename '`;');
    $row mysql_fetch_array($rs);
    $cols = array();
    foreach(
    $row as $k => $v)
      
    array_push($cols$k);
    array_push($cols'del');
    echo(
    '<table><tr>');
    for(
    $i 0$i count($cols); ++$i)
      echo(
    '<th>' $cols[$i] . '</th>');
    echo(
    '</tr>');
    do {
      
    $row['del'] = '<form action="?delete=' $row[$uniquerow] . '" method="get"><input type="submit" value="Delete"></form>';
      echo(
    '<tr>');
      for(
    $i 0$i count($cols); ++$i) {
    ?>
    <td><?php echo($row[$i]); ?></td>
    <?php
      
    }
      echo(
    '</tr>');
    } while(
    $row mysql_fetch_array($rs));
    echo(
    '</table>');
    ?>
    What EXACTLY is in YOUR copy of requests.php?
    Please don't mind me. I am just posting a lot of nonsense.

  6. #56
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Same thing...
    But i STILL GET THE ERRRRRRRRRRRRRRRRRRRRORRRRRRRRRRRRRR!
    Warning: Invalid argument supplied for foreach() in /fpgs/fpgshttpd/smileyoureahabbo/scripts/radiobox/requests.php on line 14
    del
    I guess its telling me that there is something wrong with
    Code:
    foreach($row as $k => $v)
    -sigh- this will never work will it?
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  7. #57
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Same thing...
    are u sure?

    coz i ran the requests.php on WinXP. this is the result :

    HTML Code:
    <table><tr><th>0</th><th>id</th><th>1</th><th>Name</th><th>2</th><th>Song</th><th>3</th><th>Joke</th><th>del</th></tr><tr><td>00001</td>
    <td>Michael Smith</td>
    <td>Trust His Heart</td>
    <td>Joke Joke Joke Joke Joke Joke Joke Joke Joke Joke Joke Joke Joke</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    </tr></table>
    and this is the result of requests.php in Linux :

    HTML Code:
    <table><tr><th>del</th></tr><tr><td></td>
    </tr></table>
    whats ur OS?
    Please don't mind me. I am just posting a lot of nonsense.

  8. #58
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I think your PHP and MySQL versions are more important than your OS. Tell us those, and manually execute the command:
    Code:
    select * from `request`;
    ... on your database. What is the output?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #59
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    PHP Version 5.0.4
    MySql Version 4.1.20

    And HUH?????
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  10. #60
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    :[


    :[
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

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
  •