Content Management System - CMS : eXV2 
Home
News
Forum
Downloads
Download Module
Sitemap
Partnerseiten
RSS News
Kontakt/Info
Sprache
EnglishFrench
Suchen
Login
Nickname
Passwort

Registrieren?
Passwort?
Navigation
 Home News  Forum Neueste Beiträge  Downloads Download Module eXV² Themes  Weblinks Tutorial Changelog 2.3.1 Jobcenter Gebrauchtmarkt OSMap  Sponsor Kalendersystem Sitemap Partnerseiten RSS News Kontakt/Info Webseiten Wetter
Willkommen im Free Web CMS : eXV² Forum!
  Forenarchiv
     eXV2 Module
  ecal function search

Forum : eXV2 Module

Titel : ecal function search

© 2004-2012 www.exv2.de
http://www.exv2.de

URL dieser Diskussion
http://www.exv2.de/modules/newbb_plus/viewtopic.php?topic_id=3211&forum=7


 funkyfree :

02.03.2006 20:17
 I have been working on my family site and would like to incorporate the search function to ecal, which I have not yet found anywhere. I changed the include/search.in.php file but does not work. Thanks for any help......

Here is the following

$sql = "
SELECT
id,
cid,
subject,
LEFT(description, 95) AS description
FROM ".$db->prefix("ecal")."
WHERE
status > 0";

if ( $userid != 0 ) {
$sql .= " AND userid=".$userid." ";
}

// because count() returns 1 even if a supplied variable
// is not an array, we must check if $querryarray is really an array
$count = count($queryarray);
if ( $count > 0 && is_array($queryarray) ) {
$sql .= " AND ((subject LIKE '%$queryarray[0]%' OR description LIKE '%$queryarray[0]%')";
for ($i=1; $i<$count; $i++) {
$sql .= " $andor ";
$sql .= "(subject LIKE '%$queryarray[$i]%' OR description LIKE '%$queryarray[$i]%')";
}
$sql .= ") ";
}

$sql .= " ORDER BY stamp DESC";
$result = $db->query($sql, $limit, $offset);

$i = 0;
if ($result) {
while ($myrow = $db->fetch_array($result)) {
$ret[$i]['image'] = "images/content.gif";
$ret[$i]['link'] = "display.php?day=$Cjour&month=$Cmoi&year=$Cann";
$ret[$i]['subject'] = $myrow['subject'];
$ret[$i]['description'] = $myrow['description'];
$ret[$i]['stamp'] = $myrow['stamp'];
$ret[$i]['cid'] = $myrow['cid'];
$i++;
}
}
return $ret;
}

 Nobse :

03.03.2006 20:48
 Download ecal
http://www.exoops.de/modules/mydownloads/viewcat.php?cid=36

search works
Partnerseiten
http://www.fr.exv2.eu/

Vote für eXV2
php
Kontakt/Info
  Kontakt
  Impressum
  Link zu uns
  AGB
  Datenschutzhinweis
Downloads
  eXV² Core
  Core Sprachfiles
eXV² Filecenter
  Downloads
  Download Module
  eXV² Themes
  Multilanguage Module
  Sprachfiles eXV² Module
eXV² Support
  France