lazda144 Posted December 3, 2007 Report Share Posted December 3, 2007 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 More sharing options...
Delfins Posted December 3, 2007 Report Share Posted December 3, 2007 (edited) ko tieši palīdzēt? Kods ta tev ir... Edited December 3, 2007 by Delfins Link to comment Share on other sites More sharing options...
lazda144 Posted December 3, 2007 Author Report Share Posted December 3, 2007 tas ir no php fusion orginaalaa forume bet es gribu lai postu skaits naaak no ipb foruma!! Link to comment Share on other sites More sharing options...
andrisp Posted December 3, 2007 Report Share Posted December 3, 2007 !!! Ar to es gribēju pateikt, ka beidz lietot tik daudz izsaukuma zīmes! Sameklē ipb foruma datubāzē, kur glabājās tas cipars un pierprasi ar kveriju vai arī izrēķini pats no postu tabulas. Link to comment Share on other sites More sharing options...
lazda144 Posted December 3, 2007 Author Report Share Posted December 3, 2007 (edited) ja divi ir daudz.... kas ir kverijs ?? nu ja man ir tabula ibf_members un rindina kur ir postu skaits posts Edited December 3, 2007 by lazda144 Link to comment Share on other sites More sharing options...
andrisp Posted December 3, 2007 Report Share Posted December 3, 2007 Ja tu izsaukuma zīmes liec katra teikuma galā kur vajag, un kur nevajag, tad jā - divi ir daudz. Kverijs ir "latviskojums" query jeb sql query. SELECT postu_skaids FROm ibf_members WHERE user_id = 123 Link to comment Share on other sites More sharing options...
lazda144 Posted December 3, 2007 Author Report Share Posted December 3, 2007 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 More sharing options...
andrisp Posted December 3, 2007 Report Share Posted December 3, 2007 http://www.google.lv/search?hl=lv&q=mysql+php+tutorial Link to comment Share on other sites More sharing options...
Recommended Posts