Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 86

Thread: MySQL Database showing on a page.

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

    Default

    Uhh. There is no request.php

    Theres only Requests.php
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

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

    Default

    oic

    have u tried running the REQUESTS.PHP?

  3. #43
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes...

    Well i'm just gona do this...


    Requests.php:


    Code:
    <?php
    
    $conn = mysql_connect('', '', '');
    mysql_select_db('');
    $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>');
    ?>

    Than I have my mysql database...

    I have this NOWARE:
    Code:
    <table border=1><tr><th>0</th><th>ID</th><th>1</th><th>Habbo Name</th><th>2</th><th>Song Request</th><th>3</th><th>ShoutOut/Joke</th><th>del</th></tr><tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    </tr></table>
    I have NO IDEA WHERE THAT IS SUPPOSED TO GO....
    Last edited by jad9321; 07-16-2006 at 02:59 PM.
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  4. #44
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have NO IDEA WHERE THAT IS SUPPOSED TO GO....
    this is the output/result/outcome that i got when i ran the requests.php

    Code:
    <table border=1><tr><th>0</th><th>ID</th><th>1</th><th>Habbo Name</th><th>2</th><th>Song Request</th><th>3</th><th>ShoutOut/Joke</th><th>del</th></tr><tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    </tr></table>
    thought u might want to compare it with what uve got

    if u could just ignore this if this is not the same as what u got when u ran the requests.php, that would be great (for me, at least)
    Please don't mind me. I am just posting a lot of nonsense.

  5. #45
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ohhhhhhhhhhhhh... No I didnt get that...
    I said earlier in this thread I got error:

    Warning: Invalid argument supplied for foreach() in /fpgs/fpgshttpd/smileyoureahabbo/scripts/radiobox/requests.php on line 14
    del



    ok... ok... now were on the same page.......
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  6. #46
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    huh? the script is running smoothly on my end

    no errors whatsoever
    Please don't mind me. I am just posting a lot of nonsense.

  7. #47
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can you tell me EXACCLY WHATS IN YOUR Request.php... Or requests.php... What ever.

    I might be like retarded.

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

  8. #48
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can you tell me EXACCLY WHATS IN YOUR Request.php... Or requests.php
    sorry just formatted my hard disk
    Please don't mind me. I am just posting a lot of nonsense.

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

    Default

    Uhh... Ok can you run it again and see if it works... And if it did send itt?
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  10. #50
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    wait....

    trying to find a copy of the requests.php
    Last edited by jr_yeo; 07-16-2006 at 06:05 PM.
    Please don't mind me. I am just posting a lot of nonsense.

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
  •