39,326 Topics

Member Avatar for
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
379
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 phoenix254

Hi everyone, my code is here [Click Here](http://codepen.io/anon/pen/XbdBLm) How i can get value of php variable in javascript, i have an div id=windowhead where i want to show username which i clicked <a class='users' href='#' >test</span></a> <a class='users' href='#' >test2</span></a> <a class='users' href='#' >Max</span></a> <a class='users' href='#' >John</span></a> <div id="warp"> …

Member Avatar for Aeonix
0
250
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
519
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 ramsiva

I am getting response as standard id in my project & i need to pass this value to php variable any body help me. My PHP page <div class="checkbox check-success"> <?php $b=mysql_query("select * from standard_names ")or die(mysql_error()); $count = mysql_num_rows($b); $i = 0; $breakafter=5; ?><?php while($row = mysql_fetch_array($b)) { $i++; …

Member Avatar for diafol
0
9K
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
144
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
214
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
301
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
185
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
312
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
739
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
363
Member Avatar for basketmen

Hi, guys this is phpmyadmin search page, for example i want to search keyword1 in few tables that already selected http://freakimage.com/images/525phpmyadmin_search_page.jpg then its go to the result page http://freakimage.com/images/248phpmyadmin_result_page.jpg now how to get back to search page again, that already have the few tables selected? i try push Back button …

Member Avatar for basketmen
0
184
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
288
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
169
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
203
Member Avatar for UK-1991

Hell,, I am trying to send images to he databse but not getting any response the images are not sending in the database can any one help me out function add_watch() { global $connection; $prodimg= $_FILES["prodimg"]['name']; $prodtype=$_FILES["prodimg"]['type']; $prodtemp=$_FILES["prodimg"]['tmp_name']; $target_path = 'Products/'.$prodimg; $id = $_POST["u_id"]; $brand = $_POST["brand"]; $model = $_POST["model"]; …

Member Avatar for diafol
0
249
Member Avatar for Vivek_13

<root> <item0><courseId>133</courseId></item0> <item1><question>What is php?</question></item1> <item2><ansIndex>1</ansIndex></item2> <item3><ans>Sever Side Lang.</ans></item3> <item4><ans>Web Lang.</ans></item4> <item5><ans>NOne</ans></item5> <item6><ans>Both</ans></item6> </root> My Xml Function Give This Type Of Output..Bt i Want <root> <courseId>133</courseId> <question>What is php?</question> <ansIndex>1</ansIndex> <ans>Sever Side Lang.</ans> <ans>Web Lang.</ans> <ans>NOne</ans> <ans>Both</ans> </root> This is my Xml Function .. $array = json_decode($_GET['data'],true); function array_to_xml($array, &$xml_user_info) …

Member Avatar for Vivek_13
0
495
Member Avatar for Kalaivani Nair

Below is my database structure: PostUUID subid pricing Name Poscode abc1 1 100 userA 56000 abc2 2 100 userA 56000 abc3 1 100 userB 56000 abc4 2 100 userB 56000 abc5 1 100 userC 56000 abc6 2 100 userC 56000 Now I want to perform search on this table called …

Member Avatar for Kalaivani Nair
0
339
Member Avatar for Vivek_13

{"courseId":"116","question":"asdasd","ansIndex":"1","ans0":"sadsa","ans1":"dsad","ans2":"sadasd","ans3":"asdasd"} This is my Json String......How to Convert In to Xml File

Member Avatar for diafol
0
312
Member Avatar for Kamal_6

<?php mysql_connect("localhost","root",""); mysql_select_db("test"); $data= mysql_query("select * from tbl_files where sl.no=1"); $rec= mysql_fetch_row ($data) header("content-type:$rec[2]") echo $rec[1]; ?> # error # Parse error: syntax error, unexpected 'header' (T_STRING) in C:\xampp\htdocs\readfromdb.php on line 6

Member Avatar for diafol
0
207
Member Avatar for adebayo.sas

I am looking at printing to an Epson POS printer from a PHP Web application. Due to design of the application, and deployment, printing should be done when a print icon is clicked. User would be able to select Different Printers based on choise REFERENCE POINT: http://stackoverflow.com/questions/25973046/printing-to-pos-printer-from-php I don't know …

Member Avatar for diafol
0
332
Member Avatar for blueguy777

Array ( [0] => Array ( [sn] => 1 [mob_no] => 9602858989 [date] => 06-May-2015 [time] => 12:02:33 PM ) [1] => Array ( [sn] => 2 [mob_no] => 7795055128 [date] => 06-May-2015 [time] => 12:29:44 PM ) ) how to insert these array values in seperate database table fields?

Member Avatar for diafol
0
4K
Member Avatar for paul-lucas

Hello, could you help me to make the submit button work! Thank you so much! <?php class XooWooCommerce { /** * Edited by HTC */ function show_my_schedule() { global $wpdb, $current_user, $xoouserultra; $user_id = get_current_user_id(); $sql = 'SELECT `id`, `member` FROM ab_staff WHERE `wp_user_id` = "' . (int)$user_id. '"'; $msgs …

Member Avatar for paul-lucas
0
462
Member Avatar for younes.keraressi

Hey, i dont know how this is called but i have ideas and if it possilbe that someone can help Help me about this: i have file index.php and 2 folders called: blue, red. in these 2 folders therse a pages that content the same backgroundcolor as the foloders name. …

Member Avatar for younes.keraressi
0
293

The End.