Jump to content

Dynamic Drag’n Drop With jQuery And PHP


nbbcj

Recommended Posts

Hi all i downloaded and read the how to from this site

http://www.webresourcesdepot.com/dynamic-dragn-drop-with-jquery-and-php/

 

seems it the main one that comes up on google and its what i need for a backend project iv been working on for about a year now learning as i go but dont get much time now a days, but any way.. lol

 

i cant get it to work get this

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/sites/nbbcj.co.uk/public_html/4291/dnd/index.php on line 67

 

and im stumped

 

this is the part of the code

<div id="container">
  <div id="list">

    <div id="response"> </div>
    <ul>
      <?php
  	 error_reporting(E_ALL);
ini_set('display_errors', '1');
                include("connect.php");
			$query  = "SELECT id, text FROM dragdrop ORDER BY listorder ASC";
			$result = mysql_query($query);
			while($row = mysql_fetch_array($result, MYSQL_ASSOC))
			{

			$id = stripslashes($row['id']);
			$text = stripslashes($row['text']);

			?>
      <li id="arrayorder_<?php echo $id ?>"><?php echo $id?> <?php echo $text; ?>
        <div class="clear"></div>
      </li>
      <?php } ?>
    </ul>
  </div>
</div>

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.