38,023 Topics

Member Avatar for
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
239
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
408
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
309
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
315
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
Member Avatar for Ritesh_4

Hello Is there an equivalent for the following java code in php: `URI uri = URIUtils.createURI("http", serveur, -1, makeCall, URLEncodedUtils.format(qparams, "UTF-8"), null);` Cheers...

Member Avatar for Ritesh_4
0
168
Member Avatar for Niloofar24

Hello friends:) I have put this in my script to echo the current date and time: <?php print strftime('%c'); ?> And with this code: <?php $p = $_SERVER['PHP_SELF']; $sec = "0.01"; header("Refresh: $sec; url=$p"); ?> tried to refresh the page in order to show a real clock, i mean a …

Member Avatar for diafol
0
134
Member Avatar for salimmejdoub

hello i'm beginner at programming and i want to connec to my database with PHP PDO with SQL SERVER 2008 R2 the problem at the begining it appears to me an error with this message "could not find driver" after a little searching about this i found how to download …

Member Avatar for diafol
0
293
Member Avatar for Sophia_1

Hi, i have 2 tabs in one form. After inserting records in tabs-1 for quarter 1 progress, user then updates records in tabs-2 for quarter 2 progress, which is of the same row in the progress table. However when i click submit button or update button, no records are being …

Member Avatar for diafol
0
220
Member Avatar for abhi10kumar

The End.