• Member Avatar for Bachu
    Bachu

    Created Wordpress custom post type with custom taxonomy slug

    I created custom post type with custom taxonomy. Its working, but i am facing one issue is http://example.com/taxonomy-slug/%term%/post-title this is my custom post type url exg: http://example.com/products/cars/bmw-z4 Here products -> …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Php

    Try this [Click Here](https://www.codexworld.com/bootstrap-modal-dynamic-content-jquery-ajax-php-mysql/)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Rows and columns

    Try this <html> <body> <?php mt_srand((double)microtime()*1000000); //Een bijzondere aanpak voor het vullen function Vullen() { $getallen = array(0,1,2,3,4,5,6,7,8,9); shuffle($getallen); return $getallen; } $getallen = Vullen(); //De functie display is om …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in PHP - Page Pagination

    Try this example [Click Here](http://jsfiddle.net/cse_tushar/6FzSb/)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Session variable update

    > Painful in php as a round trip to server and page reload required each time. > This can be done easily in js. I suggest do this as @diafol …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Bingo script php

    Replace your display Function with this code. You missed to put <tr> tag in your table function display($getallen){ $table = '<table border="1px" cellpadding="1px">'; $bingokaart = array(); for ($row = 1; …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Connect PHP with SQLSERVER 2008

    I did this with the help of below links [Click Here](https://technet.microsoft.com/en-us/library/cc793139(v=sql.90).aspx) [Click Here](https://www.sitepoint.com/sql-server-php/) Why did you still using this 'mysqli_connect_error' ?
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Unslider jquery plugin arrow doesn't display

    Try this [Click Here](http://stackoverflow.com/questions/22545139/using-arrows-in-unslider)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in How to sort data with Jquery

    Check this link [Click Here](http://jsfiddle.net/ENNLn/) You will get some idea ...
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Increase font size in MPDF

    Did you try Inline Styles in your HTML code like <?php $html = ' <h1 style="font-family: DejaVuSansMono, monospaced; font-size: 10pt;"><a name="top"></a>mPDF</h1> '; //============================================================== //============================================================== //============================================================== include("mpdf/mpdf.php"); $mpdf=new mPDF('C','','10'); $mpdf->WriteHTML($html); $mpdf->Output(); …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in how to get facebook user details using php

    Use FB APIs [Click Here](https://developers.facebook.com/docs/php/howto/profilewithgraphapi/4.0.0)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in last insert id not working

    Check this [Click Here](http://php.net/manual/en/mysqli-result.fetch-array.php)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in last insert id not working

    Change this $uid = $connection->insert_id(); To $uid = $connection->insert_id; Check this [Click Here](http://php.net/manual/en/mysqli.insert-id.php)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in hello

    Try this [Click Here](http://jsfiddle.net/MadLittleMods/2LG8f/)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Data cannot Updated on MySql

    Replace $command = "UPDATE ab_staff SET `slot` = '$slot_time' WHERE `id` ='$member_slot_3'"; $result = $wpdb->get_results($command); this code with $wpdb->update('ab_staff', array( 'slot' => $slot_time), array( 'id' => $member_slot_3)); For reference [Click …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Multi User Login and role access

    @fireburner29, You can also redirect it to the same page. check this session value $_SESSION['sess_userrole'], before you print the details. Means that if its value is admin, print the admin …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in PHP check if input has a value

    For Example, [Click Here](http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onkeyup2)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Multi User Login and role access

    Check this link [Click Here](http://www.techyari.in/2014/10/multi-user-role-based-login-in-php-with-mysql.html).
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in textbox color doesn't change with combobox selection in php

    This code is working on my PC. <script> function calculateText(el) { var form = el.form; var idx = form.Selfrating1.selectedIndex; if (idx <= 0) { form.reset(); return; } if (form.Selfrating1.value == …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in textbox color doesn't change with combobox selection in php

    Wrap your code with form (<form></form>) tag.Like <form> <p>a.i.Self Rating(1st Rating): <select name="Selfrating1" onchange="calculateText(this)" value="<?php echo $row['Selfrating1']; ?>"> <option selected>Please select an option</option> <option value=Good <?php if($row['Selfrating1']=='Good') { echo "selected"; …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in unable to save data in php table

    Use Insert query for save data into your DB Table. I couldn't find any insert query in your code. I found a select query only. Select query is for to …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in how we can display records

    Check the below example. In index.php <script src="//code.jquery.com/jquery-1.10.2.js"></script> <?php $numberOfUser= 6; $recordLimit = 5; ?> <select id="userSelect"> <option value="">---Select User---</option> <?php for($i=1;$i<=$numberOfUser;$i++){ echo <<<EOD <option value="$i">User-$i</option> EOD; } ?> </select> …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in mobile sms

    Try this [Click Here](http://www.ozekisms.com/php-sms-api-asp-sms-api/index_p_php_q_ow_page_number_e_327opt.html)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in store checked images

    Plz change if(isset($_POST['submit'])) to if(isset($_POST['s'])). Bcoz your button name is "s" And also check your insert query syntax,
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Codeigniter Limit with SQL

    Check this [Click Here](http://magentohostsolution.com/get-first-row-in-codeigniter-return-database-query/)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in login

    Check this [Click Here](http://www.formget.com/login-form-in-php/)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Need help with cookies

    Check this [Click Here](http://stackoverflow.com/questions/470617/get-current-date-and-time-in-php)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in table sort

    Try this. Plz change the order of JS files, to ... <script src="assets/js/jquery-1.11.1.min.js"></script> <script src="assets/js/jquery.dataTables.min.js"></script>
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in How to save checkbox status after form is submitted

    Try this condition if(isset($_POST['Blocked'])) { $checked = 'checked="checked"'; }
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in redirect url to username with htaccess like facebook does

    <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ profile.php?username=$1 [L] </IfModule>
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in fetching information from database against image clicking

    Check the following example Your listing page <script src="//code.jquery.com/jquery-1.10.2.js"></script> <img class="img_btn" alt="Image 1" rel="1" src="img1.jpg" /><br /> <img class="img_btn" alt="Image 2" rel="2" src="img2.jpg" /><br /> <img class="img_btn" alt="Image 3" rel="3" …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in doing pages like 1, 2 , 3 ,4 etc

    Try This [Click Here](http://jsfiddle.net/gmoulin/dAeyV/15/)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in How would I use two actions?

    Another way is using AJAX.[Click Here](http://stackoverflow.com/questions/14614334/one-form-one-submission-button-but-two-actions)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in how can we add album book in php according to user

    Check this [Click Here](http://www.hotscripts.com/forums/php/45258-solved-pulling-user-specific-data-php-through-mysql.html)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in HTML Form and PHP

    @burt.munn We can print the result with in a php tag, like <?php if(isset($_POST['sbt'])) { echo "<h2>Bill Report</h2>"; if(is_numeric($_POST['txtCustomersNo']) && is_numeric($_POST['txtAmount'])) { if($_POST['txtCustomersNo']>=6) $gratuity = $_POST['txtAmount']*0.18; else $gratuity = $_POST['txtAmount']*0.15; …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in problem with php mysql connection string

    Try this [Click Here](http://www.webinfopedia.com/registration-form-in-php.html)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in HTML Form and PHP

    Try this <form name="calcBill" id="calcBill" action="" method="post"> <label for="txtCustomersNo">Customers Number</label> <input type="text" name="txtCustomersNo" id="txtCustomersNo" value="<?php echo isset($_POST['txtCustomersNo']) ? $_POST['txtCustomersNo'] : "1"; ?>" /> <label for="txtAmount">Amount</label> <input type="text" name="txtAmount" id="txtAmount" value="<?php …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in undefine variable $config

    Check this [Click Here](http://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Error Message in Radio Button

    Please check the below example... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Questions</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> </head> <body> <?php $numberOfQstns = …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in How to attach resume to email without browse option??

    Try this [Click Here](http://xahlee.info/php/send_mail_attachment.html)
  • Member Avatar for Bachu
    Bachu

    Began Watching Problem to start MySQL

    I installed XAMPP for my PHP programming practice but when I run it then MySQL is not starting, while apache is running correctly. Can anyone please tell me the solution?
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Problem to start MySQL

    Please check [Click Here](http://stackoverflow.com/questions/18177148/xampp-mysql-does-not-start)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in how to print serial numbers using fpdf

    Change this foreach($data as $eachResult) { $this->Cell($w[0],6,'SL.NO',1,'LR'); $this->Cell($w[1],6,$eachResult["ac_no"],1,'LR'); $this->Cell($w[2],6,$eachResult["cust_name"],1,'LR'); $this->Cell($w[3],6,$eachResult["installamt"],1,'LR'); $this->Ln(); } To foreach($data as $key=>$eachResult) { $key++; $this->Cell($w[0],6,$key,1,'LR'); $this->Cell($w[1],6,$eachResult["ac_no"],1,'LR'); $this->Cell($w[2],6,$eachResult["cust_name"],1,'LR'); $this->Cell($w[3],6,$eachResult["installamt"],1,'LR'); $this->Ln(); }
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in DATA NOT INSERTED INTO DATABASE

    Since $_POST['Item1'] and $_POST['Item2'] are array, you have to convert it to string before saving to your table. Replace `$TextBox_item1 = ($_POST['Item1']);` with this to `$TextBox_item1 = implode(',', $_POST['Item1']);` And …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in help in jquery &php

    Try this ..[Click Here](http://www.devinrolsen.com/jquery-image-swapping-with-fade-effect/) And change the *click* event to *mouseover*
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in How to Import Excel file into mysql Database using PHP

    Hai; Try this,[Click Here](http://websitedevelopmentind.blogspot.in/2014/01/create-mysql-table-from-csv-file-using.html)
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Use array elements to check/uncheck checkboxes

    Try this $tableArray = array(1,2,3,4,5); $idArray = array(1,6,5); foreach ($idArray as $myId) { $checked = (in_array($myId,$tableArray)) ? 'checked' : ''; echo '<label>'.$myId.'</label><input type="checkbox" '.$checked.' value=""><br />'; }
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Changing int keys in an array to names

    Try this $array_one = array('Champlain Valley TTC(1/31/2015)','Old Shelburne Town School5420 Shelburne RdSherburne, VT 05482','Friday - 6:30 - 10:00PM','Jack Devine802-877-3341','<-----NEXT_CLUB ----->','Green Mountain Table Tennis Club(GMTTC)(6/30/2014)','Knights of Columbus - Boys & Girls …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Variable in img src PHP

    Did you dry just print the value directly like `<img id="imgs" src="../images/verificarimg/img.jpeg" width=700>` ? Then, If you don't get the image, please check the path of image/name of image/type of …
  • Member Avatar for Bachu
    Bachu

    Replied To a Post in Problem with login

    Try this <?php include 'connectMySql.php'; session_start(); if(isset($_POST['login'])) { $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); if($username && $password) { $query = "SELECT * FROM users WHERE username = '$username' AND password …

The End.