- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 27
- Posts with Upvotes
- 27
- Upvoting Members
- 18
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
199 Posted Topics
Re: Thank you for sharing such usefull information | |
Re: Hi The Code is working fine in my system, i have not changed your code, Please check your DB connecting | |
Hi i am trying to view my blog or post in detail description at that time my browser title shows %page_title%, But it has to show my blog or post title in that place. please help me to solve this issue. **My permalink settings as below** /%category%/%postname%/ **Note:** i have … | |
Hi I am trying to create a login page from my existing Wordpress Database with custom php file. can any one please help me. | |
Re: can you able to access the database without any issue using your php code | |
Re: Hi if you want in JS use the below code [CODE]<SCRIPT language = JavaScript> function calculate() { document.getElementById("total").value = parseFloat(document.getElementById("one").value) + parseFloat(document.getElementById("two").value); } </SCRIPT> <input name="one" type="text" value ="" size="5"> <input name="two" type="text" value ="" size="5" onChange="calculate()"> <P> Total: <input name="total" type="text" value ="" size="5"> <P> [/CODE] | |
Re: Hi [CODE]while($row = mysqli_fetch_array($result_1))[/CODE] change the above as [CODE]while($row = mysqli_fetch_array($result_1, MYSQLI_ASSOC))[/CODE] pls refer the below link [URL="http://php.net/manual/en/mysqli-result.fetch-array.php"]http://php.net/manual/en/mysqli-result.fetch-array.php[/URL] | |
Re: Hi ibrsbk Can you replace the code and try. it will work <?php $DBServer = 'localhost'; $DBUser = 'root'; $DBPass = ''; $DBName = 'world'; $conn = new mysqli($DBServer, $DBUser, $DBPass, $DBName); $sql = "SELECT Id, Name, CountryCode, District, Population FROM city WHERE CountryCode = 'USA'"; $result = $conn->query($sql); echo … | |
Hi friends i am working for an shopping cart using php script, i placed a drop down option to display currency rate as per user selection(INR and USD). By default it will display all the price in INR, if any user select USD, then it has to show all the … | |
Hi i am having 3rd party csv file. i am having php uploading script to upload the datas into my table. while uploading datas into my mysql Table mean while it has to remove duplicate entries rows from CSV file. Please help me | |
Hi Friends, I have some dynamic text box in my screen, i have entered only one text field of the screen, after submitting the form all the values of the dynamic text box field is getting added in the database as 0 except the value i entered. i have used … | |
Re: Hi can you test line 24. just for test replace 24 as below $sql = "SELECT user_id, studentno, username, CONCAT(last_name, ', ', first_name) AS name, posname, course, gender FROM view_onse_officers $limit, 10"; | |
Hi I am trying to populate textbox value based on releated textbox value like that of (Country and State) using dynamic row formate. I can able to populate a value for only first row, if i tried ti for second row its again overwrite the first row and also i … | |
Hi I am trying to get count based on the select query using prepare. But i am unable to get the count. Please help to fix the issue. **PDO function** public function getDistictCountRows($filname,$tablen,$condition){ echo $sql = "select $filname FROM $this->db_name.$tablen where $condition" ; $query = $this->conn->prepare($sql); try { $query->execute(); }catch(PDOException … | |
Hi Friends. i am working on my internal work. i am having n dynamic rows, Each and every row contain total. i want to sum all the rows total. i have attached the screen shot for the reference ![]() | |
Hi can any one please help me with some sample for multiple textbox value in php search. all the fields in the search are in one table. I have attached screen for the reference.  | |
Hi I am working on displaying json data in ul li with href, i can able to print only  but my expected output should be as below  <script type="text/javascript"> var data= {"query":{"simple_query_string":{"query":"A*"}}}; $.ajax({ type: 'POST', //url: 'data.json', url: 'urllink', dataType: 'json', success: function (data) { arr= … | |
Hi i am working on contact form using SMTP. I am unable to send a mail. Please help me to fix the issue. **index.html** <div id="frmContact" class="w-form"> <div id="mail-status"></div> <!-- <form action="contact.php" method="post">--> <label for="name">Name:</label> <input class="w-input" type="text" placeholder="Enter your name" id="cf_name" name="cf_name"> <label for="email"><p class="info">*</p>Email Address: <span id="cf_email-info" class="info"></span></label> … | |
Hi i am trying to display the username with their daily activity with count. i am getting the output for the last row reset is showing 0 in all the name. please help me to resolve. **connection.php** <?php class Database{ //specify your own databse credentials private $host = "odbc:DRIVER={SQL Server};SERVER=servername;DATABASE=DB"; … | |
Hi I am trying to insert to database. I am facing an issue in getting relavent radio button value. suppose if i select 1 or 2 or 3 radio button, by default it display 1 radio button value. please help me to fix the issue. **index.php** <div id="message"></div> <form class="form-horizontal" … | |
Hi I am trying to create a service in c#, if i click start in service it has to execute the run.bat file. if i click stop in service it has to execute the stop.bat file can any one please help me to fix the code. using System; using System.Collections.Generic; … | |
Hi I am trying to update the ON / OFF status through the below code. If i change the OFF status to ON, its getting a value is OFF. can any one please help to fix the issue. **toggle.php** <div id="setQuickVar1"> <input type="checkbox" data-switchery <?php if($SCYQ64EV01=='Y') echo 'checked'; ?> /> … | |
Hi i want to display runtime server load using php code. I find the below code from other website but i dont know i am going on the correct way. Pleae help me. function get_server_load() { $load=array(); if (stristr(PHP_OS, 'win')) { $wmi = new COM("Winmgmts://"); $server = $wmi->execquery("SELECT LoadPercentage FROM … | |
Hi I am working on windows services. i can bale to run the service for every 1 min. I creating multi thread. but i required the service to run in single thread. can any one please help me to fix my issue. **Code** using System; using System.Collections.Generic; using System.ComponentModel; using … | |
Hi I am trying to send a reminder mail with the HTML Table format. But the details is not getting displayed. Please help me to fix. i am using class file to send the email. include ('config.php'); date_default_timezone_set('Asia/Calcutta'); require "classemail.php"; $mail = new EMail; $mail->Username = 'emailid'; $mail->Password = 'password'; … | |
Re: I think the below example will help. $text = "How I can display \"content\" in the <b>textarea</b>? "; echo $output = html_entity_decode($text); ![]() | |
Re: **searchform.php** <form method="POST" action="proc_search.php"> //your code </form> **proc_search.php** use % as below $query = "select * from asset_ict where " .$searchtype." like %".$searchterm."% " | |
Hi i am trying to execute .java file through php. please any one help. | |
Re: Hi Pls check it Run command-->type msconfig --> select Boot Tab there you can able to see what are the OS installed in ur system and also check time out by default it should be 30 sec | |
Hi I want to stop direct download of videos file from my webiste folder. .htaccess is not working in godaddy windows server Please help me. eg: http://www.domain.com/folder/video.mp4 If paste the URL in the browser. it should not download the file from the server. | |
Re: I think **php_mssql.dll** file is missing. Are you using XAMPP server? or Some other | |
Hi I am trying to create a update function. But it not updating in the database. Please help me to fix. **Test-2.php** $whereString = ''; $bind = NULL; if(isset($_POST['Submit'])) { if($_POST) { $SCYQ64UKID = $_GET['SCYQ64UKID']; $SCYQ64AVGP = $_POST['SCYQ64AVGP']*100; $searchFields = array('SCYQ64EMAL'=>$_POST['SCYQ64EMAL'],'SCYQ64EV01'=>$_POST['SCYQ64EV01'],'SCYQ64EV02'=>$_POST['SCYQ64EV02'],'SCYQ64EV03'=>$_POST['SCYQ64EV03'],'SCYQ64EV04'=>$_POST['SCYQ64EV04'],'SCYQ64EV05'=>$_POST['SCYQ64EV05'],'SCYQ64EV06'=>$_POST['SCYQ64EV06'],'SCUSER'=>$_POST['SCUSER'],'SCYQ64AVGP'=>$SCYQ64AVGP,'SCYQ64TZ'=>$_POST['SCYQ64TZ'],'SCJOBN'=>gethostname(),'SCPID'=>'SSWEB','SCUPMJ'=>$_POST['SCUPMJ'],'SCUPMT'=>$_POST['SCUPMT']); if($post = array_filter($_POST)) { if($fields = array_intersect_key($searchFields, $post)) { … | |
Hi I am trying to display count of a row using function with get values. Please help me to fix the issue **class** class Users { private $conn; private $db_name= "DATABASE"; public function __construct($db) { $this->conn = $db; } /*Join Two Tables with where condition and order by*/ public function … | |
Re: Hi can you replace $sql to $query in line 39 while ($row = $sql->fetch()) into while ($row = $query->fetch()) | |
Re: Hi You have declare $count in line 63, where is the value of count. So try to use below line after 62. $count = count($checkbox); | |
Re: if(isset($_POST['submit'])) { $chkbox = $_POST['boxes']; $txtbox = $_POST['boxes1']; foreach($txtbox as $a => $b) echo "$chkbox[$a] - $txtbox[$a] <br />"; //insert query insert into table name(field1,field2)values($chkbox[$a],$txtbox[$a]); } | |
I have created a function. if i provide correct username and password. i am getting a error message as **Sorry, that username / password is invalid !** can any one please help me to fix the issue. **login.php** <?php require 'include/init.php'; $general->logged_in_protect(); if(empty($_POST) === false) { $username = trim($_POST['username']); $password … | |
Hi I am trying to connection my database ODBC using function. I am getting an error **Connection error: could not find driver** **mycode is** <?php class Database{ // specify your own database credentials private $host = "servername"; private $db_name = "databsename.schemaname"; private $username = "username"; private $password = "password"; public … | |
Hi friends i am trying to display dynamic dropdown using php. but it is not fetching the second dropdown value. I collected the below code from internet. please help me to fix it. <?php $dbc = mysqli_connect("localhost","root","escape123","tsheet"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " … | |
Hi I am trying to clone a row with dependent dropdown. first row is working fine. Once i click add row button, if i select the project option its not working on client select option. can anyone please help me to fix. Note: I used trying using id="client[]" and id="project[]" … ![]() | |
HI I need a information for the below, If i send a mail to ticket@domainname from gmail or other mail providers, it has to generate the ticket number and update in the ticket system. Please guide me on this. | |
Hi Friends I am facing an issue in update query using PDO Prepare method. Please help me to fix the issue. $consql = "UPDATE $database.$constant_application SET SCYQ64EMAL=:SCYQ64EMAL, SCYQ64EV01=:SCYQ64EV01, SCYQ64EV02=:SCYQ64EV02, SCYQ64EV03=:SCYQ64EV03,SCYQ64EV04=:SCYQ64EV04, SCYQ64EV05=:SCYQ64EV05, SCYQ64EV06=:SCYQ64EV06, SCUSER=:SCUSER, SCJOBN=:SCJOBN, SCPID=:SCPID, SCYQ64AVGP=:SCYQ64AVGP, SCYQ64TZ=:SCYQ64TZ, SCUPMJ=:SCUPMJ, SCUPMT=:SCUPMT where SCYQ64CID=:SCYQ64CID"; $row = $dbh->prepare($consql); $row->bindParam(":SCYQ64EMAL",$SCYQ64EMAL); $row->bindParam(":SCYQ64EV01",$SCYQ64EV01); $row->bindParam(":SCYQ64EV02",$SCYQ64EV02); $row->bindParam(":SCYQ64EV03",$SCYQ64EV03); $row->bindParam(":SCYQ64EV04",$SCYQ64EV04); $row->bindParam(":SCYQ64EV05",$SCYQ64EV05); … ![]() | |
Re: I think value of **id** is missing. in line 37 $ida = $record['id']; in line 54 <a href='coupon.php?id=$id&code=$coupen&page=$last'> | |
Hi friends i am facing some url redirection issue in my .htaccess. please help me to fix it. **my url is** domainname.com/article.php?url=test.html **my expected URL is** domainname.com/test.html **.htaccess** Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9-/]+).html$ article.php?url=$1 RewriteRule ^([a-zA-Z0-9-/]+).html/$ article.php?url=$1 **Server** nginx | |
Re: Hi I think the below query will help you SELECT SUM(COALESCE(test_salary.salary,0) + COALESCE(test_bonus.bonus,0)), test_salary.name FROM ( SELECT DISTINCT(name) FROM ( SELECT name FROM test_bonus UNION SELECT name FROM test_salary ) tmp ) names LEFT JOIN test_bonus ON test_bonus.name = names.name LEFT JOIN test_salary ON test_salary.name = names.name GROUP BY test_salary.name | |
Hi I am trying to read the datas from mysql using php in json. but i am not getting my expected output. Please help me to fix the issue. **code** <?php include('../config.php'); //mysql_query("SET NAMES 'utf8'"); $tdate = date('d-m-Y'); $url = 'url'; $sql = "SELECT * FROM pimage where date<='$tdate' and … | |
Hi I have written a json file using php. But i am unable to display the css style. can any please help me to fix the issue. **my json code** <?php require_once('config.php'); function jde_date_conv($jde_date) { $ct = substr($jde_date,0,1); $yr = substr($jde_date,1,2); $dy = substr($jde_date,3,3); if($ct == 0)$yr_pfx=19; if($ct == 1)$yr_pfx=20; … | |
Re: Hi can you check line 13 <p class="info_dynamic"><input type="text" class="field" name="coname" value="<?php echo $company; ?>" /></p> replace the name as company or replace $company = $_POST['coname']; |
The End.