#16 (permalink)  
Old 08.04.2010, 19:41
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
Ja dass ist nicht korrekt und führt zu Fehlern.

Zeig doch mal den Inhalt deines jetzigen Moduls.
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #17 (permalink)  
Old 08.04.2010, 20:08
Benutzer
 
Join Date: 06.2005
Posts: 61
Rep Power: 7
Mike_K is on a distinguished road
Das ist der genutzte code

PHP Code:
<?php
$host 
'xxx';
$dbUser 'xxx';
$dbPass 'xxx';
$db 'xxxx';
mysql_connect("$host""$dbUser""$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());

$result mysql_query("SELECT id,cat,bigimage FROM cp_products order by rand() LIMIT 1" ) or die(mysql_error());
while(
$row mysql_fetch_array$result )) {
print
"<center>";
print 
"<a href=\"http://www.domain.de/shop/showproduct.php?product=" $row['id'] . "&cat=" $row['cat'] . "\"><img src=\"http://www.domain.de/shop/data/" $row['cat'] . "/thumbs/" $row['bigimage'] . "\" border=\"0\"></a>";
print 
"</center>";
}
?>
Dieser Code lief als Widget im VB4 CMS einwandfrei

PHP Code:



$host 
'xxxxx';
$dbUser 'xxxx';
$dbPass 'xxxxx';
$db 'xxxxx';
mysql_connect("$host""$dbUser""$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());

ob_start();

$result mysql_query("SELECT id,cat,bigimage FROM cp_products order by rand() LIMIT 1" ) or die(mysql_error());
while(
$row mysql_fetch_array$result )) {
print
"<center>";
print 
"<a href=\"http://www.domain.de/shop/showproduct.php?product=" $row['id'] . "&cat=" $row['cat'] . "\"><img src=\"http://www.domain.de/shop/data/" $row['cat'] . "/thumbs/" $row['bigimage'] . "\" border=\"0\"></a>";
print 
"</center>";
}

$output .= ob_get_contents();
ob_end_clean(); 

Last edited by Christian : 08.04.2010 at 20:21.
Reply With Quote
  #18 (permalink)  
Old 08.04.2010, 20:22
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
Dateiausgabe Puffern im Modul auf Ja gesetzt? Ich hab dein Beitrag mal entschärft und die Passwörter etc. entfernt.
__________________
Meine kleinen Engel ... Die Rabauken ...

Last edited by Christian : 08.04.2010 at 20:34.
Reply With Quote
  #19 (permalink)  
Old 08.04.2010, 20:40
Benutzer
 
Join Date: 06.2005
Posts: 61
Rep Power: 7
Mike_K is on a distinguished road
Dateiausgabe puffern ist auf "ja" gesetzt.

Vielen Dank für die Veränderung... aber natürlich waren es nicht die Originaldaten!


Wenn der obige Code aktiv ist und im Forum angezeigt werden soll, lädt dieses überhaupt nicht.
Einstellung "Einbindung im Forum" deaktiviert und VBCMS aufgerufen, erscheint dieser "Fatal Error".
Reply With Quote
Reply

Lesezeichen

Thread Tools
Display Modes

Posting Rules
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist On.
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Copyright © 2006, Reuter & Bloeß GbR.
| Datenschutz | Sitemap | Unsere Partner | Top |
Home Products Forum Über uns Support & FAQs
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Tipp: Fussball | Heilerde
Shopsystem, Shop System, CMS, Webkatalog mit vBCMS CMS