The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Get the id to jQuery from the SELECT ?

  • # February 1, 2010 at 8:51 am

    Hi all

    I’m stuck here and I can’t figure this one out.
    I have an <li> and when I hover over it, it appends a div called <div id="popup"></div>. I would like this popup to show the id that has been fetched from my mysql SELECT further down in the body.

    This code shows kinda what I would like to do, but knows that this is never possible.


      < ?php $q = mysql_query("SELECT * FROM text"); while($r = mysql_fetch_assoc($q)){ $id = $r['id']; echo '
    • ‘.$r[‘indhold’].’‘;

    I hope someone understand what I’m trying to do, and can help me out here.

    Thanks in advance.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed