Jump to content
php.lv forumi

membera postu skaits @ php fusion


lazda144

Recommended Posts

es esmu apvienojis php-fusion web registraaciju ar ipb forumu peec shiis pamaaciibas un tagad gribu lai webaa raadiitu pie profila cik vinam ir postu!!

ludzu paliidzat!!

 

luuk ko es izneemu no profilu lapas lai neraadiitu postu skaitu no oginaalaa foruma!!

<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u043']."</b></td>
<td class='tbl1'>".number_format(dbcount("(post_id)", "posts", "post_author='".$data['user_id']."'"))."</td>

Link to comment
Share on other sites

nu es dabuju lai vins piesleedzas datubaazei

 

<?php
//////////////
// Required //
//////////////

require "conf_global.php";

//////////////
// Database //
//////////////

$mysql = mysql_connect( $INFO['sql_host'], $INFO['sql_user'], $INFO['sql_pass'] /*, $INFO['sql_driver'] */ );
if ( !$mysql ) {
die( "<b>mysql_connect()</b>: ". mysql_error() );
}

$select_db = mysql_select_db( $INFO['sql_database'], $mysql );
if ( !$select_db ) {
die( "<b>mysql_select_db()</b>: ". mysql_error() );
}



?>

 

un kur man tagad tavs kods jaaliek?

Link to comment
Share on other sites

×
×
  • Create New...