How to use function view in Drupal -


hi guys new drupal bare me :) .

i trying lear how create own module , stuck. created text.module, text.install , text.info . it's basic module inputing text.

so have next scenario iput text in textbox saves table in database can display table in :

http://img33.imageshack.us/img33/5815/textyi.jpg

now question can , how can use function view in picture "ttt" becomes link can see title , text "ttt" ?

edit :

i figure out need :

in table have 3 columns (test_id, title, text)

now use

$result = db_query("select title,text {text} "); 

now how can turn title link . let in row 1 col1 of title stands house. how can turn house link. need sometning

$result= db_query ("select n.title, n.text form {text} n n.title = :title", array (":title" => ???? )) 

i think looking for

<?php l(t('link text'), 'about-us', array('attributes' => array('class' => 'about-link'))); ?> 

http://api.drupal.org/api/drupal/includes%21common.inc/function/l/7 might u..


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

How to call a javascript function after the page loads with a chrome extension? -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -