Jump to content

[SOLVED] same file remote and local different results


bobinindia

Recommended Posts

I have simple call to a database that is working localyy but not remotely.?

<?php

include('../../../externals/mysql_connect.php');
$thumb_id = $_GET['thumb_id'];
$query = "DELETE FROM  image_thumbs WHERE thumb_id = '$thumb_id' LIMIT 1";
$result = mysql_query($query);
header('Location: myimages.php');
?>

called by a file that just read the contents of the database creating rows of images with links to delete themselves :

 

$query = "SELECT thumb_id, upload_id, thumb_url FROM image_thumbs WHERE user_id = '$user_id' ORDER BY thumb_id LIMIT 5";
$result = mysql_query($query);
if($result){
?>
<h3 align="center">Click on one of your images to put it on a coin.</h3>
<table><tr><td>


<?php

while ($row = mysql_fetch_array($result)) {
    echo "<a href=\"choosecoin.php?upload_id=";
    echo $row['upload_id'];
    echo '"><img src="';
    
    echo $row['thumb_url'];
    echo '"/></a>';
    echo '<br />';
    echo "<a href=\"deleteimage.php?thumb_id=";
    echo $row['thumb_id'];
    echo '">DELETE</>';
    echo '</td><td>';

}

?>

 

Can anyone give me a clue. Locally you click the link and you are back on the same page minus one thumb. Remote nothing. Viewing the source shows the links are correct.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.