39,316 Topics

Member Avatar for
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
310
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
737
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
359
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
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
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
248
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
461
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
334
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
206
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
328
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
461
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
292
Member Avatar for mangel.murti

I have created a sp little bit confuse about it. how to count result set if data availabe then show it and if not then retun ResultStatus is zero. did not work much with sp. thanks for any help suggestions. CREATE DEFINER=`root`@`localhost` PROCEDURE `usp_GetProduct`(IN `iProductCategoryId` INT) BEGIN DECLARE ResultStatus INT …

Member Avatar for ryantroop
0
347
Member Avatar for UK-1991

Hello, I was wondering if any one help me ouut guide me or let me know how do i filter records using php like it is done in property listings product listings etc I am stuck up can anypne help me out with that. Thank You <form action="" method="POST"> <div …

Member Avatar for diafol
0
149
Member Avatar for UK-1991

Hello, I made a search option using php every thing is working ine but when i enter 123 in search it does not pull up my any records is it a problem with my code can anyone help me out if(isset($_POST['search_now'])){ if(isset($_GET['go'])){ if(preg_match("/^[ a-zA-Z]+/", $_POST['search'])){ $name=$_POST['search']; $sql ="SELECT * FROM …

Member Avatar for UK-1991
0
140
Member Avatar for phoenix254
Member Avatar for phoenix254
0
2K
Member Avatar for Fongsiev

Can all of u help me? I can not solve this: <DOCTYPE html> <html<!> <head> </head> <body> <h3>PHP Conditional Operator</h3> <?php $a=100; $b=200; $c=300; $d=500; $e=600; ............................................. how can I do it in order to find the maximize and minimize of this. Reguard!!! Fongsiev

Member Avatar for Aeonix
0
112
Member Avatar for Fongsiev

$Attendence="5"; $Quiz="7"; $Test="5"; $Midterm="15"; $Assignmet="10"; $Final="20"; Calculate in PHP Calculate Total score, average, and Grade Regard!

Member Avatar for diafol
-1
263
Member Avatar for Vivek_13

Array ( [0] => 116 [1] => asdasd [2] => 1 [3] => asdsadas [4] => dasdasd [5] => sadasdsad [6] => asdasdasd ) i want to convert this aaray in to xml

Member Avatar for diafol
0
347
Member Avatar for Niloofar24

Hi. With `$u_agent = $_SERVER['HTTP_USER_AGENT'];` i can get the users information but i just want to echo the OS that users use, something like: Linux,Ubuntu How can i get this out from the $u_agent variable?

Member Avatar for Niloofar24
0
5K
Member Avatar for izham_1

how to make this kind of round function 1.10 =>1.10 1.11 =>1.10 1.12 =>1.10 1.13 =>1.15 1.14 =>1.15 1.15 =>1.15 1.16 =>1.15 1.17 =>1.15 1.18 =>1.20 1.19=>1.20 1.20 =>1.20

Member Avatar for lps
0
88
Member Avatar for paulo.guedes1992

Hi, I want to create a dynamic form, relative with the table i'm working with. I'm selecting the columns from a certain table: <?php $tableColumns = $dbConnect->query("SHOW COLUMNS FROM projects WHERE Field NOT IN ('ID');"); ?> Then i want to get each result's value (according to the ID selected) and …

Member Avatar for jstfsklh211
0
212
Member Avatar for jamesl22

Hi, I am trying to use the mysqlnd_ms plugin on my php installation but when I run any code trying to utilise the "myapp" variable I have set up as per the tutorial it just gives the error: PHP Warning: mysql_connect(): Unknown MySQL server host 'myapp' (1) in /var/www/settings/database.php on …

Member Avatar for Neeraj_6
0
387
Member Avatar for UK-1991

Hello I was wondering if it is posible to show the user profile along with the products information let suppose if I had shown th the produtcs information can i show the information of the user who uploaded this prodcut. $query2 = "SELECT * FROM users, products; $get_user = mysqli_query($connection, …

Member Avatar for UK-1991
0
143
Member Avatar for blueguy777

my json decode script throwing error i.e. Error : DATA FETCH My code: <?php $api_url = '{"msg":"SUCCESS","msg_text":"DATA FETCH","data":[{"sn":1,"mob_no":"9602858989","date":"06-May-2015","time":"12:02:33 PM"},{"sn":2,"mob_no":"7795055128","date":"06-May-2015","time":"12:29:44 PM"}]}'; $output = file_get_contents($api_url); if($output=="") { echo "No output received"; } else { $arr_output = json_decode($output, true); if(isset($arr_output['msg'])) { $msg = $arr_output['msg']; $msg_text = $arr_output['msg_text']; if($msg == "success") { if(isset($arr_output['data'])) { …

Member Avatar for blueguy777
0
315

The End.