Jump to content

406 page


techker

Recommended Posts

hy there guys im making a ringtone site for myself cause i have tons to share.now im finally catching mysql!lol

 

it's like math..

 

but im having a problem with something.im getting a 406 page and i don't know how to bypass it.

 

si this is my script(test script)

 

<?php
   
      include("connect.php");
   
      $dbhost="localhost";
  
      $dbusername="techker_techker";   

      $dbpassword="techker";   

      $dbname="techker_ringtone";

       

       

      // Connect to Mysql

      $connect = mysql_connect($dbhost, $dbusername, $dbpassword);

      //Select the correct database.

      $db = mysql_select_db($dbname,$connect) or die ("Could not select database");

      $file_location = "/home/techker/public_html/Ring/ringtones/";

       

      $name=$_POST['name'];

      $Gender=$_POST['gender'];

      $type=$_POST['type'];

      $file=($_FILES['file']['name']);

       

  

      $data = mysql_query(" SELECT *

      FROM `ringtones`

      LIMIT 0 , 30  ") or die(mysql_error());

      ?>

      <table>

         <tr>

            <th>File</th>

            <th>Name</th>

            <th>Type</th>

            <th>Gender</th>

         </tr>

      <?php while (FALSE !== ($info = mysql_fetch_array($data))) { ?>

         <tr>

            <td><? Echo "<a href=\"/Ring/ringtones/".$info['file'] ."\">".$info['file']."</a><br>";?></td>

            <td><?php echo $info['name'] ?></td>

            <td><?php echo $info['type'] ?></td>

            <td><?php echo $info['Gender'] ?></td>
            
            <td><a href=/Ring/ringtones/><?php echo $info['file'] ?></a> </td>

         </tr>

      <?php } ?>
  
      </table> 

 

now this shows the song and it links to it.suppose to..lol

 

<td><a href=/Ring/ringtones/><?php echo $info['file'] ?></a> </td>

 

cause basically this script move the file uploaded to a folder and record it's info in a database.

 

see it for yourself

 

the first link on the page is with this

Echo "<a href=\"/Ring/ringtones/".$info['file'] ."\">".$info['file']."</a><br>"; works great but 406

 

the second is with the above

 

http://tech-design.info/Ring/html3.php

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/91918-406-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.