vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v2.0 Support > "How Do I..." Questions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-12-2010, 02:42 PM
ArowanaMan ArowanaMan is offline
Member
 
Join Date: Feb 2009
Posts: 34
Default Creating Custom Widget

This is what I got so far. I want to have the title of the custom fields show up and then put the last result entered by the user.


Code:
$host = 'localhost';
$dbUser = 'user';
$dbPass = 'password';
$db = 'database';

mysql_connect("$host", "$dbUser", "$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());

ob_start();

$result = mysql_query("SELECT id,title FROM adv_dyna_cfields ORDER BY id DESC" ) or die(mysql_error());

mysql_query("SELECT eid,field1,field2,field3,field4 FROM adv_dyna_cfields_entries ORDER BY id DESC" ) or die(mysql_error());


while($row = mysql_fetch_array( $result )) {
print"<div align=\"center\">";
print "<br />" . $row['title'] ." ";
print"</div>";
}                                                                                 $output .= ob_get_contents();
ob_end_clean();
Of course this was to out put the titles only so far but I keep getting errors.

Can someone help me finish this please?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Mod Request - Random Links Widget on vB CMS Home NashChristian "How Do I..." Questions 17 02-26-2012 06:30 PM
Creating this Hub Page Widget to work in module mdelcour2000 "How Do I..." Questions 2 02-25-2009 12:36 PM
Creating custom modules talenak "How Do I..." Questions 1 02-07-2007 01:22 AM
Adding/Creating a custom PHP Module? whodah "How Do I..." Questions 3 04-12-2006 12:39 PM


All times are GMT -4. The time now is 12:02 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.