[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

SQL

This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Sonstige Module

View previous topic :: View next topic  
Author Message
lexi_
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 07, 2004
Posts: 178

PostPosted: 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
View user's profile Send e-mail
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 03.11.2004 18:04
Post subject: Re: SQL

ORDER BY $id";
=>
ORDER BY id";

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
lexi_
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 07, 2004
Posts: 178

PostPosted: 03.11.2004 19:01
Post subject: Re: SQL

danke Smile
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 Sad
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
View user's profile Send e-mail
lexi_
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 07, 2004
Posts: 178

PostPosted: 07.11.2004 01:07
Post subject: Link

hallo,
ich stecke mal wieder fest :-((
ich brauche den link in der zeile
Array:
."<td>$body_begin</td>"
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
View user's profile Send e-mail
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 07.11.2004 20:25
Post subject: Re: SQL

genauer Wink
problem noch nicht klar

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
lexi_
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 07, 2004
Posts: 178

PostPosted: 08.11.2004 20:52
Post subject: Re: SQL

ok ich veruchs
in der Zeile
Array:
 ."<td>$body_begin</td>"

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
View user's profile Send e-mail
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 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
View user's profile Send e-mail Visit poster's website Photo Gallery
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Sonstige Module
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


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




Interactive software released under GNU GPL, Code Credits, Privacy Policy