This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

tablesort_sql and pager with query from form

I have a form with name, personalcode, fiscalcode and city. When the users write in the form I build the query and I make a pager. In the first step is ok, i have my data in the table with pager and the form.... but when user click in the pager or in the link to order the table, I lost the data in the form because the links are not correct.
The code is this:
[.....]
case t('search'):

$condition = '';
if ($edit['name']) {
if ($condition == '') $condition = ' name like \'%'.$edit['name'].'%\'';
else $condition .= ' AND name like \'%'.$edit['name'].'%\'';
}

if ($edit['fiscalcode']) {
if ($condition == '') $condition = ' fiscalcode like \'%'.$edit['fiscalcode'].'%\'';
else $condition .= ' AND fiscalcode like \'%'.$edit['fiscalcode'].'%\'';
}
if ($edit['personalcode']) {
if ($condition == '') $condition = ' personalcode like \'%'.$edit['personalcode'].'%\'';
else $condition .= ' AND personalcode like \'%'.$edit['personalcode'].'%\'';
}

if ($condition != '') $condition = ' WHERE '.$condition;

// Build the query
$sql = 'SELECT
id,
name,
city,
fiscalcode,
personalcode
FROM {gest_subject}
'.$condition;

// Title of table
$header = array(
array('data' => t('Nome/Ragione Sociale'), 'field' => 'name', 'sort' => 'desc'),
array('data' => t('Citta\''), 'field' => 'city'),

a problem of showing a png picture!

hi,all

I use GD lib for implementation of png picture showing and my simplified code is:

function show_image(){
        $bgpng = "png";
        $bg = imagecreatefrompng($bgpng);
        header("Content-Type: image/png");
        imagepng($bg);
        imagedestroy($bg);
}
show_image();

but the function "header()" cause an error:

Gallery Module Problem

Hope I am doing this right...am a newb... I have installed Drupal and Gallery2 and both work independently. Installed Galley module for Drupal and tried to setup. I may have screwed up either in not having Gallery in the Drupal directory OR not setting up the path correctly. In any case I have only totally blank Drupal pages unless I remove the Gallery Module from the Modules Directory. I tried re-installing and still no good. Just blank pages. I have tripped something up with the Galley module.

How Do i get Natural language search,breadcrumbs in search be displayed in tree view with search module capabilities?

hi,

I'm not getting functionalities like

1)Natural language search

2) breadcrumbs in search be displayed in tree view instead of linear with search module.

if we get these functionalities with existing search module please give me instuctions to achieve these.otherwise give me suggetions to get these type of functionalities.Do i need to extend the search module to get my features?

PM change in terminology suggestion...

The designation "Private Messages" is somewhat misleading, since anyone with access to the database can read the contents of those messages--they are thus not really private.

I would not change the ability of administrator(s) to read the PMs, since one occasionally encounters allegations of threats or abuse via PMs.

But I would urge PM module developer(s) to consider changing the references from "Private Message" to "Personal Message."

Classifieds?

Anyone still working on a classifieds module? I think this is the one major thing that drupal is lacking.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions