64,152 Solved Topics

Remove Filter
Member Avatar for
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
511
Member Avatar for N kamatchi

i does not know about store the image in database. what is the datatype of picture in oracle?

Member Avatar for erikko
0
135
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
314
Member Avatar for Tcll

what I'm basically trying to do is: x = struct( size=4, order='var0', # <<< struct.__call__( size, order, **vars ) var0 = bu32 # { 'var0': bu32, } ) data = x() # read data from imported file print data.var0 # should return a bu32 int if data.__class__ == x: pass …

Member Avatar for Tcll
0
1K
Member Avatar for cheeseman125

So im extremely new to python. Im teaching it to myself for a school project and i heard that calculators are a good place to start so that's exactly what im doing. I have only been using it for about a day now so like i said im pretty newb. …

Member Avatar for BustACode
0
246
Member Avatar for nhiap6

I have used function write() in a loop to write 2 names in binary mode to a file. Now, when I try to read those 2 names I use this logic : 1) find size of file in bytes; 2) create buffer with that size; 1) read into buffer until …

Member Avatar for David_50
0
297
Member Avatar for Sarkurd

Hi It's been a while i'm learing C++ but still i have some issue with `Move semantics` and some other stuff. I wrote this class but i don't know why the `Copy constructor` is getting called and the output is a little strange to me, shouldn't the `Move Constructor` gets …

Member Avatar for Sarkurd
0
284
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 fonzali

hi , I am trying to first ask the user how many numbers he has ( I have not coded this part yet but assumed number 5 ), then enter the first number , hit enter , enter another number in the same entery widget up until the numbers are …

Member Avatar for fonzali
0
4K
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
348
Member Avatar for klemme

Hi all, I have this function, which should scroll animated to an anchor. Does anyone know how I can activate this only after a form has been submitted? I want to animate the scroll down to either id="error" or id="succes" - depending on the form was submitted with or withour …

Member Avatar for Caio_1
0
7K
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
143
Member Avatar for phoenix254
Member Avatar for phoenix254
0
2K
Member Avatar for Levellous

Hey guys, I'm working on a chat program where a UDP console-based chat program's client sends a message to the server and subsequently the server sends it to all other clients on the network. As of this moment the program is able to: 1. Client send message to server 2. …

Member Avatar for JamesCherrill
0
361
Member Avatar for Navee30

Hello, I need the path (string) of an embedded file in a Console application. I tried "Properties.Resource.file", but I got its content, not the path. Any help is appreciated.

Member Avatar for JerrimePatient
0
9K
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
115
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
349
Member Avatar for Niloofar24

Hello. I'm working on my own CMS. I want to use Bootbox.js which is a small JavaScript library which allows us to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. [And this …

Member Avatar for Niloofar24
0
3K
Member Avatar for Tcll

as the title states, on on linux (Wine32) it works perfectly: http://lh3.ggpht.com/-heB_VObWcwE/VUgfS4bkLkI/AAAAAAAAJAA/tHZzjq2RElw/s642/SIDE_firstPort.png but on windows (synced code) I get this: Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> C:\Documents and Settings\Owner\My …

Member Avatar for Tcll
0
2K
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 ccandillo

I have a tkinter app that has 2 frames. The frame on the left has a bunch of buttons and the frame on the right has a text widget. I use the create_buttons function below to make the buttons. Is there a way to have the button stay sunken when …

Member Avatar for ccandillo
0
769
Member Avatar for S-e-c-r-e-t

I need different source code of digital clock plz exept in graphic forms

Member Avatar for NathanOliver
-1
137
Member Avatar for vulcano224

HI Guys, I am trying to Create a GUI in Python that calculate the average of three numbers. I am having some issues tring to create the three boxes where the user should enter the numbers, so can anybody please give me a hand? Thank you so much!!!!

Member Avatar for minyechil
0
425
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
146
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
318
Member Avatar for scomx

i have a tool strip button for bookmarks like the one in Mozilla fire fox or google chrome, i can add button and i can click it but i cant remove it , because that i added context menu to the tool strip with remove, so i want the code …

Member Avatar for scomx
0
1K
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
172
Member Avatar for lewashby

#include <iostream> #include <string> #include <stdlib.h> #include <cstring> using namespace std; class Fraction { private: int num, den; // numerator & demoninator public: Fraction() { set(0, 1); } Fraction(int n, int d) { set(n, d); } void set(int n, int d) { num = n; den = d; normalize(); } …

Member Avatar for Ion_1
0
493
Member Avatar for mskat02

I am trying to insert a set of attribute rows into a table based on the range of a unique key (product_id) and three passed variables. This is on a MySQL database. The three variables are the start_product_id, the end_product_id and the batch_attr_id. The stored procedure does not return an …

Member Avatar for ryantroop
0
292
Member Avatar for Niloofar24

Hello. In javascript there is a jQuery slideToggle() Method that toggles up-down but i want it to toggles left-right. I found a code from [here](http://jsfiddle.net/abwVd/) and then i copied and pasted and edited it in this way: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $('.nav').click(function() { $('.text p').css({ 'width': $('.text p').width(), 'height': …

Member Avatar for Niloofar24
-1
381
Member Avatar for UK-1991

Hello, I am trying to update my record but nothing is happening please help me out update.php <?php require_once("connection.php"); if(isset($_POST["update"])) { $uid = $_POST["uid"]; $user_name = $_POST["uname"]; $f_name = $_POST["fname"]; $l_name = $_POST["lname"]; $company = $_POST["company"]; $address = $_POST["address"]; $phone = $_POST["phone"]; $fax = $_POST["fax"]; $mobile = $_POST["mobile"]; $email = …

Member Avatar for UK-1991
0
747
Member Avatar for jithinjohny

Hi, Previously I have worked on codeigniter Framework. Since codeigniter developers are not even sure about version 3.0 , I decided to work with a better/new framwork. The problem is, whichever the Framework I choose, it needed Composer to work on. First I choose laravel, then symfony , later cakephp. …

Member Avatar for jithinjohny
0
269
Member Avatar for SimonIoa

hello. I am getting a blank page on localhost/myproject/ i am pretcty sure th.at\ it cant connect to the database because when i am using a simple echo it returns. for example `<?php echo 'DDD'; ?>` THE THING IS THAT I AM USING WOS PORTABLE IS IT POSSIBLE THAT IT …

Member Avatar for SimonIoa
0
316
Member Avatar for Mbusi

I installed Eclipse and it worked for few days and it nolonger openned giving error:- can someone help me (mbusi.ndlovu@gmail.com) Java was started but returned exit code=13 C:\ProgramData\Oracle\Java\javapath\javaw.exe -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmsx512m -jar C:\Program Files\eclipse-java-luna-SR2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.la uncher_1.3.0.v20140415-2008.jar -os win 32 -ws win32 -arch x86_64 -showsplash C:\Program Files\eclipse-java-luna-SR2-win32-x86\\plugins\org.eclipse.platform_4 .4.2v20150204-1700\splsh.bmp -launcher C:\Program Files\eclipse-java-luna-SR2-win32-x86_64\eclipse\eclipse.exe -name …

Member Avatar for Mbusi
0
603
Member Avatar for prahesh

void cAppMath::vregisterFunc(int index, int(*fPtr)(int a, int b)) //Application to register their functions { arrFptr[index] = fPtr; } int main() { appObj.vregisterFunc(EN_ADD, &cAppMath::add); //application that is registering the callbacks. } { Getting follwoing ERROR in vregisterFunc() func call. Error 1 error C2664: 'void cAppMath::vregisterFunc(int,int (__cdecl *)(int,int))' : cannot convert argument 2 …

Member Avatar for deceptikon
0
192
Member Avatar for JerrimePatient
Member Avatar for Vijay_18
0
184
Member Avatar for Spyderbane

I am looking for a way to reboot the system and launch the program with elevated permission without user interaction after the first time the program is launched. The program I am trying to write is for new system. Part of the setup I want to perform system updates then …

Member Avatar for Spyderbane
0
239
Member Avatar for SimonIoa
Member Avatar for SimonIoa
0
87
Member Avatar for donz365

Hi, I am working on a wbsite for a training centre. I am querying a web service for the list of their courses. There are three parametres in the query: centre, coursetype and courselocation. When querying it directly or using SoapUI it can be queried using 1, 2, 3 or …

Member Avatar for donz365
0
929
Member Avatar for Ventech_IT

Hi guys having some trouble here with my date's output currently it reads 2015-05-05 10:05:22 but i would like to have it render as eg. Monday 12 Mei 2013 how would i achieve this in codeigniter? Here is my code for creating the post: (Controller) public function new_post(){ if($_POST){ $data …

Member Avatar for Ventech_IT
0
344
Member Avatar for pars99

I need to fill an image created using a ton of QuadCurves, but they don't fill it all the way using the traditional fill method. Any suggestions? public class MonstercatComponent extends JComponent{ public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; drawGrid(g2); g2.setStroke(new BasicStroke(5)); QuadCurve2D earLeft1 = new QuadCurve2D.Double(145, 155, …

Member Avatar for mKorbel
0
390
Member Avatar for kayecng

I am calling function (i don't know, if this code is really called function.. so please correct me if i'm wrong) to disable the fields except for buttons and other necessary information needed during form load. But my problem is, some fields are not disabled. My application goes like this: …

Member Avatar for kayecng
0
216
Member Avatar for Tcll

so I was trying to think of ways to reduce python's memory usage when you write your code. my logic is telling me your class instances will use less memory if you write your class functions before writing your class: def classfunc( inst, arg ): pass class mainclass: pass inst …

Member Avatar for Tcll
0
233
Member Avatar for Aeonix

Recently I got interested into dynamic execution of scripts. That is, user clicks the button and the JavaScript part (or any other library attached to it) will send a request to a file with `$_GET[]` or `$_POST[]` data. Then PHP (preference) would execute the function or anything that it has …

Member Avatar for Aeonix
0
1K
Member Avatar for sing1006

I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone the whole set of thing. but the problem is it colne in wrong tag. i want some thing like this …

Member Avatar for sing1006
0
333
Member Avatar for SpeakerKeyboard

Hey everyone. I'm currently trying to figure out how to use the StreamReader and ReadAllLines functions of VB.NET to search a text file for keywords and pull the information that follows those keywords. To elaborate more, I have a PDF which I convert to text and once converted, the text …

Member Avatar for SpeakerKeyboard
0
2K
Member Avatar for Metalvoice

Hi All i dynamically created gropbox and dynamically insert inside it listview and button Dim count1 As Integer Dim Listvcounter As Integer Dim flashCounter As Integer Private Panel As New System.Windows.Forms.GroupBox Private ListV As New System.Windows.Forms.ListView Private Btn As New System.Windows.Forms.Button Private PancLeft As Integer = Me.Controls.OfType(Of GroupBox)().ToList().Count Private cLeft …

Member Avatar for Santanu.Das
0
997
Member Avatar for punji

I have three tables namely student, result and subject but whenever i try to join them i get this error message in the browser Database query failed: Unknown column 'student.student_code' in 'field list' here is my query $query = "SELECT student.student_code, student.firstname, student.middlename, student.lastname, student.gender, result.student_code, result.subject_code, result.mark, subject.subject_code, subject.subject_name …

Member Avatar for punji
0
274
Member Avatar for usiyalla

Can any one send me the config setting for jdbc and mysql using apache server setting in netbean. i wanna use jsp with xampp and jdbc

Member Avatar for hemeneugene
0
821
Member Avatar for JerrimePatient

[Autorize] I want to set the page if the user is not currently login in MVC. How can I do it? I want to set it in "User/Login"

Member Avatar for JerrimePatient
0
175

The End.