Jump to content

Need help with grabbing data


Recommended Posts


Is it possible to echo a specific record in a MySQL table based on its ID column?


Im newer to all this, using php and mysql.. have table with about 50 rows of data, im trying to pull one field from say row 20 and put it in one section of the website, then trying to grab a field from row 42 and put somwhere else.



Been killing myself trying to echo a certain row or setup querys to let me do such.  Help please!



Link to comment
Share on other sites

mysql_select_db($database_sum_enrich, $sum_enrich);

$query_EventSession1K = "SELECT EventName FROM eventssession1 WHERE GradeK = 'yes' LIMIT 8";

$EventSession1K = mysql_query($query_EventSession1K, $sum_enrich) or die(mysql_error());

$row_EventSession1K = mysql_fetch_assoc($EventSession1K);

$totalRows_EventSession1K = mysql_num_rows($EventSession1K);


heres some of my code...  what would i place in echo to get it to get the output.

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.

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.