# New guy question

**URL:** <https://www.ruby-forum.com/t/new-guy-question/80017>\
**Category:** Ruby\
**Created:** [December 20, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/new-guy-question/80017 "2006-12-20T21:46:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeyP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@JoeyP](https://www.ruby-forum.com/u/JoeyP)\
**Post date:** [December 20, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/new-guy-question/80017/1 "2006-12-20T21:46:02Z")

</div>

I have been assigned the task of making our website interactive. (AJAX)  
I have the web pages doing what I want them to do. The DB is mysql on  
Linux.

I want to use the html to query and update the DB tables.

I am going to use Ruby.

Does anyone have any starter code out there for the CGI?

I don’t know how to pass my variable in my HTML/JavaScript to the CGI  
and then how do I access my DB and query under the passed value.

How will I pass the query back to the HTML/JavaScript.
