38,020 Topics

Member Avatar for
Member Avatar for saadi06

HI, I am using tcpdf to generate to pdf files in my system. I am using iframe to display the pdf file to the users. I am able to copy paste the content of the pdf in all other browsers except Internet Explorer. Is there any way I can resolve …

Member Avatar for diafol
0
93
Member Avatar for Ventech_IT

Hi guys i have simple problem that i can't seem to solve and has been frustrating me for some time i am a newbie when it comes to Codeigniter so be kind hahah, okay so on to my problem i have form validation on a subscription form that seems to …

Member Avatar for lorenzoDAlipio
0
390
Member Avatar for rpv_sen

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 …

Member Avatar for rpv_sen
0
3K
Member Avatar for Trabelsi

Hi, i am developping an application with php wich contains a checkbox list, i used Editor-PHP-1.4.2 for dataTables wich includes PHP libraries for editor and it worked well but now this version has expired and i can't buy it, if anyone can help me to find a similar library and …

Member Avatar for pritaeas
0
845
Member Avatar for anil14353

I'm trying to implementing faceted search in a Jewellery store, but failed. Problem is when try to filter the attributes table. structure is as follows: Products Table: Id Product_Code Product_Name 1 ABCGOLD1GM 1 gm Gold 2 ABCGOLD2GM 2 gm Gold 3 ABCGOLD394 3.94 gm Gold Attributes Table: Id Attr_Name Alias …

Member Avatar for diafol
0
758
Member Avatar for naazer.hussain

I am getting this "Notice: Undefined index: id" error message for my login system. I have tried several things to fix this but i have had no luck, i have used the most obvious solution, the isset function but i have had no luck. Please help. This is the error …

Member Avatar for bugz313
0
792
Member Avatar for Thevenin

Hi all, I have a problem, I need to automatically get the user latitude and longitude, on page load (no user interaction), is there a way? In my PHP script, I want to populate automatically $lat and $long, everything on page load, so no user intereaction, but I do not …

Member Avatar for chrishea
0
137
Member Avatar for xathlon2

I am using hostip.info API to display country flags for IP's. What I would like to do is when a user hovers over the flag it will display the country name. Has anyone have an idea on how to do this?

Member Avatar for cereal
0
62
Member Avatar for wareez

I have this code in my login.php, from sigin.php page if the user click on signin, it will display wrong username or password but the username and password is in the database named Username and Password. Please i will appreciate if someone can fix this error for me. Your concern …

Member Avatar for wareez
0
2K
Member Avatar for Niloofar24

Hello. This is a part of my script: <table id="table-5"> <thead> <th>ID</th> <th>URL</th> <th>Editor</th> <td>More....</td> </thead> <tbody> <?php include('connection.php'); try { $sql = "SELECT * FROM Data ORDER BY ID DESC"; $result = $conn->query($sql); foreach($result as $key => $row) { echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>" …

Member Avatar for Niloofar24
0
434
Member Avatar for Niloofar24

Hello everybody. There is a row in my db table I have set it's type as "TIMESTAMP". How should I fill in? Should get the current timestamp in php and send it to that row, correct? So how can I do that?

Member Avatar for Niloofar24
0
437
Member Avatar for UK-1991

Hello I have created an attendance system but client requested to include a new fucntion iin it. Like there if employe comes and time in after the set time its should count late for that day means on a table if it is late so it will show 1 and …

Member Avatar for UK-1991
1
712
Member Avatar for infoitmanoj

Here is my Php script redirect into admin page ...this code working fine in localhost but i will go the server is not redirected i dont know ehy its happening right now ... any help guys... if ($this->session->userdata('admin_login') == 1) redirect(base_url() . 'index.php?admin/dashboard', 'refresh');

Member Avatar for infoitmanoj
0
1K
Member Avatar for chineerat

I have a large MYSQL / PHP in a while loop report being run and in many cases the report times out due to the large amount of data being calculated. Is there a way to make have a div displaying "Processing" when the while loops is calculating and if …

Member Avatar for bugz313
0
375
Member Avatar for infoitmanoj

my php code working fine in localhost ...but i have uploaded on server my php administratr login page only validated but not redirect to admin page system browser says error occured ...but other users login page is working fine ...wat can i do >>> wats actually problem ??

Member Avatar for jkon
0
330
Member Avatar for network18

Hi, I have created a test procedure (for the sake of example to get this working) called test_proc like below - DELIMITER $$ CREATE DEFINER=`tloken`@`%` PROCEDURE `test_proc`(In user_id varchar(100), OUT message varchar(1000)) BEGIN set message ='OK'; END and calling it from php test page like below - $sso = $_GET['sso']; …

Member Avatar for cereal
0
4K
Member Avatar for rpv_sen

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; …

Member Avatar for rpv_sen
0
517
Member Avatar for Raadha

my php code is working and is giving an output.. but the pie chart (html part) is not working.. can anyone help me solve this?? <?php $con=mysqli_connect("localhost","root","","test"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } if(isset($_POST['pie1'])) { $to= $_POST['to']; $from= $_POST['from']; $query = mysqli_query($con,"SELECT COUNT(mrd),del …

Member Avatar for Raadha
0
277
Member Avatar for UK-1991

Hello, I was thinking a way to search more then 3 fields using LIKE my sql query i tried this way but its getting all the products not for the one it searched for if(isset($_POST['search_now'])){ if(isset($_GET['go'])){ if(preg_match("/^[ a-zA-Z0-9]+/", $_POST['brand'] || $_POST['model'] || $_POST['new'])) { $new = $_POST['new'];; $brand = $_POST['brand']; …

Member Avatar for UK-1991
0
143
Member Avatar for cristian.stilpeanu.1_1

Hi guys, I struggled for few days to find a php code that work's to this form contact. Please if someone know's help me. Thank you! <form action="index.php#contact" method="post"> <div id="box-message"> </div> <p class="clearfix"> <input type="text" name="name" value="" placeholder="Name" required="required" /> <input type="email" name="email" value="" placeholder="Email" required="required" /> <input type="text" …

Member Avatar for diafol
0
201
Member Avatar for Nkosiyazi
Member Avatar for diafol
0
53
Member Avatar for blueguy777

the success message is not displaying after form submission, still it's displaying error message "Please enter a valid mobile number." it should display Success message. <?php function filterMobileno($field){ // Sanitize mobile number $field = filter_var($field, FILTER_SANITIZE_NUMBER_INT); // Validate mobile number if(filter_var($field, FILTER_VALIDATE_INT)){ return $field; }else{ return FALSE; } } // …

Member Avatar for diafol
0
298
Member Avatar for praba_web

Hi there, I have developed web app with acl(access control list) in php. it will have 5 panels.all panels are working fine .. all letters are showing in lowercase.this thing is happening in company panel.anybody can resolve this issue....

Member Avatar for diafol
0
184
Member Avatar for infoitmanoj

<?php $edit_data = $this->db->get_where('prescription', array('prescription_id' => $param2))->result_array(); foreach ($edit_data as $row): $patient_info = $this->db->get_where('patient' , array('patient_id' => $row['patient_id'] ))->result_array(); ?> <div id="prescription_print"> <table width="100%" border="0"> <tr> <td align="left" valign="top"> <?php foreach ($patient_info as $row2){ ?> <?php echo 'Patient Name: '.$row2['name']; ?><br> <?php echo 'Age: '.$row2['age']; ?><br> <?php echo 'Sex: '.$row2['sex']; …

Member Avatar for pritaeas
0
309
Member Avatar for devianleong

Hi, I just want to share this after I scratching my head for few hours. To integrate Laravel 5 with ckfinder authorization method (So far I only can get the solutions for Laravel 4 but get none for Laravel 5 from google.), simply add these code at the top of …

Member Avatar for diafol
0
736
Member Avatar for berserk

hello everyone, i am in need of some advice. You see i created an application to manage a large user base, this user base has additional hidden data per user that is in the form of a drop down. My problem is that 1k to 5k of users is fine, …

Member Avatar for berserk
0
358
Member Avatar for punji

i have to tables result and total, the result table has two field namely student_code and mark and total table has two field namely student_code and total, the total column should contain total marks of a student. so i have written an sql statement to insert data from result table …

Member Avatar for punji
0
287
Member Avatar for M Irfan

how to convert simple hmlt website template to php.? and how to create that website database on xampp.?

Member Avatar for lps
0
168
Member Avatar for ribrahim

Dear All, I have a dynamic javascrip table for sort and filtering a data which contains 4 rows: Fullname, Companyname, address and email. Everything is working fine with loading the data from mysql database. I have added two actions to the table (view user and delete user). the view user …

Member Avatar for diafol
0
3K
Member Avatar for Vivek_13

<root> <question>What is php ?</question> <ansIndex>0</ansIndex> <ans> <0>Server SIde Lang.</0> <1>client side lang</1> <2>none</2> <3>both</3> </ans> </root> //This is my xml File. // Bt I want When <ansIndex> is 0 then set attribute in <0 true>,<ansIndex> is 1 then <1 true> //how i can do this? //my Php code is …

Member Avatar for Vivek_13
0
201

The End.