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>

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.