পোস্টগুলি

জানুয়ারি, ২০২২ থেকে পোস্টগুলি দেখানো হচ্ছে

Get tex

<?php // Set language to German putenv ( 'LC_ALL=de_DE' ); setlocale ( LC_ALL ,  'de_DE' ); // Specify location of translation tables bindtextdomain ( "myPHPApp" ,  "./locale" ); // Choose domain textdomain ( "myPHPApp" ); // Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now // Print a test message echo  gettext ( "Welcome to My PHP Application" ); // Or use the alias _() for gettext() echo  _ ( "Have a nice day" ); ?>

Num rows

<?php $link  =  mysql_connect ( "localhost" ,  "mysql_user" ,  "mysql_password" ); mysql_select_db ( "database" ,  $link ); $result  =  mysql_query ( "SELECT * FROM table1" ,  $link ); $num_rows  =  mysql_num_rows ( $result ); echo  " $num_rows  Rows\n" ; ?>

Pagination php

< html > < head > < title > Pagination </ title > <!-- Bootstrap CDN --> < link rel = " stylesheet " href = " https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css " > < script src = " https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js " > </ script > < script src = " https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js " > </ script > </ head > < body > <?php if ( isset ( $_GET [ 'pageno' ] ) ) { $pageno = $_GET [ 'pageno' ] ; } else { $pageno = 1 ; } $no_of_records_per_page = 10 ; $offset = ( $pageno - 1 ) * $no_of_records_per_page ; $conn = mysqli_connect ( "localhost" , "my_user" , "my_password" , "my_db" ) ; // Check connection ...