![Show/hide content [x]](themes/dragonfly/images/minus.png) Navigation
Home Community News Search Projekte
![Show/hide content [x]](themes/dragonfly/images/minus.png) Languages
![Show/hide content [x]](themes/dragonfly/images/minus.png) Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.
|
SQL
|
View previous topic :: View next topic |
| Author |
Message |
lexi_ Doppel-Null-Agent


Offline Joined: Jul 07, 2004 Posts: 178
|
Posted: 03.11.2004 15:17 Post subject: SQL |
|
Hallo,
was mach ich hier falsch
Array:
$sql=" Select id, username, username, user_email, subject, body_begin, date
FROM " . groupmail . "
ORDER BY $id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query id', '', __LINE__, __FILE__, $sql);
}
fehlermeldung:
Array:
On /index.php?name=Groupmail
While executing query " Select id, username, username, user_email, subject, body_begin, date
FROM groupmail
ORDER BY "
the following error occured: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
die tabelle ist vorhanden
mfg
lexi
lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
|
| Back to top |
|
 |
lexi_ Doppel-Null-Agent


Offline Joined: Jul 07, 2004 Posts: 178
|
Posted: 03.11.2004 19:01 Post subject: Re: SQL |
|
danke 
hab es jeztz so gebaut:
Array:
$sql=" Select id, username, username, user_email, subject, body_begin, date
FROM (".$prefix."_groupmail)
ORDER BY id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query id', '', __LINE__, __FILE__, $sql);
}
so jetzt fehlt nur noch das array zum ausgeben
ist das jetzt sinnvoll mit templates zu arbeiten wenn ja kann mir jemand nen linkgeben wo ich infos zum aufbau der templates finden kann hab davon leider keine ahnung
mfg
lexi
lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
|
|
| Back to top |
|
 |
lexi_ Doppel-Null-Agent


Offline Joined: Jul 07, 2004 Posts: 178
|
Posted: 07.11.2004 01:07 Post subject: Link |
|
hallo,
ich stecke mal wieder fest :-((
ich brauche den link in der zeile
auf den datenbbank eintrag "body" hab leider keine idee wie es funktionieren würde kann mir jemand tips geben.
Array:
$sql=" Select id, username, user_email, subject, body_begin, date, body
FROM (".$prefix."_groupmail)
ORDER BY id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query id', '', __LINE__, __FILE__, $sql);
} while(list($id ,$username ,$user_email, $subject, $body_begin, $date )=mysql_fetch_row($result)){
echo "<tr>"
//."<td>$id</td>"
."<td>$username</td>"
."<td><a href=\"mailto:$user_email\"> <img src=\"../../images/icon_email.gif\" border=\"0\"></a></td>"
."<td>$subject</td>"
."<td>$body_begin</td>"
."<td>$date</td>"
."</tr>";
}
mfg lexi
lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
|
| Back to top |
|
 |
lexi_ Doppel-Null-Agent


Offline Joined: Jul 07, 2004 Posts: 178
|
Posted: 08.11.2004 20:52 Post subject: Re: SQL |
|
ok ich veruchs
in der Zeile
brauche ich einen Link auf die Datenbank zeile "body"
$body_beginn soll in der übersicht die ersten paar sätze darstellen und bei interesse soll der nutzer über den link den kompletten eintrag lesen können
mfg
lexi
lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
Posted: 13.11.2004 15:29 Post subject: Re: SQL |
|
leider immer noch nicht ganz klar ;-[
_________________ .: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr
Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|