199,114 Archived Topics
Remove Filter ![]() | |
Anybody please help use the below table and tree structure and calculate left and right count. My Table Creation Query: CREATE TABLE `testmlm`.`binary_tree` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT , `name` VARCHAR( 150 ) NOT NULL , `left_id` INT( 11 ) NULL , `right_id` INT( 11 ) NULL … | |
Hi,i used this example for practicing,supposed to be easy one,but,abit confusing. Can you help to solve and point to mistakes i've done. Postman Pat became bored one night at the postal sorting office and to break the monotony of the nightshift, he carried out the following experiment with a row … | |
Hi Team, I understand that there are numerous number of Articles with the following Title and I should have gone through them before posting but believe me, I've done it all. Either way, I'm not getting to a solution. Hope I get some help here.. # So Here is the … | |
I'm using Yii framework while my question is probably intended to PHP expert. I have created a controller to send email from my web application, it works fine. Given that, I intend to use email in several sontrollers in my app, I wanted to created a helper but that does … | |
Hello, I am trying to get all the values (numeric) of the column Bruel_ID from database mpctz_rsform_bruels to display them in a RSForm dropdown box. I'm using this code: //<code> $db = JFactory::getDbo(); $db->setQuery("SELECT Bruel_ID FROM mpctz_rsform_bruels"); return $db->loadResult(); //</code> Howeve, I am only pulling the lowest value of the … ![]() | |
when we create a thread like this class Run implements Runnable{ public void run(){ //You code } } class Helloworld{ public static void main(String args[]){ Thread t1=new Thread(new Run()); Thread t2=new Thread(new Run()); } } in above code thread t1 and thread t2 is creating in `main()` method its mean … | |
Hi, I have this def update_labelain0_val(self): val=get_ain0() self.labelain0_val.set(val) self.labelain0.config(bg="#32CD32") #0-12.9v -> 0-6000N valain0=float(val) valain0_calc=valain0*6000/12.9 valain0_calc=int(valain0_calc) self.labelain0_calc.set(valain0_calc) self.labelain0calc.config(bg="#FF8C00") threading.Timer(0.1, self.update_labelain0_val).start() return This is part of a class which update a label in a window. It is working fine. My problem is : how can i give a variable name o this … | |
well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found some videos by Dr.Andrew N.Harrington from chicago on http://anh.cs.luc.edu/python/hands-on/ .. | |
Hello I was asked to show relations between data in a graph. For example object0 is related to object1 and object2 object1 is related to object 2 object2 is related to object0 and object1 object3 is related to object 1 then the graph will be as shown here [Click Here](http://postimg.org/image/ewn4i6prh/) … | |
I need to change the background image of a button that is declared in xaml, like this: <Button x:Name="btnBorder" Content="Moldura" Width="80" Height="80" Margin="10,6,10,6" Click="btnBorder_Click" > <Button.Background> <ImageBrush ImageSource="/Images/arrow-expand.png" AlignmentX="Center" Stretch="None" x:Name="imgSourceArrow" /> </Button.Background> </Button> and I'm trying to change the ImageSource of the ImageBrush. For that, I'm using this code … | |
view: <?phpforeach($row as $b):?> <?php echo $b->Product_Name ?></h3> <?php echo $b->Price ?></p> </div> <?php if ($b->Option_name):?> <?php echo form_label($b->Option_name, 'option_'.$b->Product_ID ); ?> <?php echo form_dropdown( $b->Option_name, $b->Option_value, NULL, 'Product_ID= " option_' .$b->Product_ID. ' " ' );?> <?php endif; ?> controller: public function product_detail($Product_ID){ $this->load->model('model_products'); $data['row']= $this->model_products->get_detail($Product_ID); $this->load->view('product_detail',$data); } model: function … | |
Greetings im new in laravel and i want to learn how to show the html page in laravel. My laravel's location is: C:/wamp/www/laravel The location of the page that i want to view: C:/wamp/www/laravel/app/views/hello.php I tried localhost/wamp/www/laravel/app/views/hello.php but it only gives me an error: The requested URL /wamp/www/laravel/app/views/hello.php was not … | |
Hello, I cannot tell the difference between material.php and studentmgt.php material.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" … | |
Im having a problem here, i dont know where to start, im just a begginner i already finished my window forms in visual studio and now i want to connect it to my ms access database, i dont know what to do. Please help. | |
Like the title says; Why would you want to make class objects (instances of a class) instead of built in types parameters of a function and in C . E.g. Why do this: class Person { public: void SetAge(Person &Age); instead of this: class Person { public: void SetAge(int iAge);. … | |
In PHP - I'm trying to pass a second item &show_sill via the URL string and keep getting this error: - Parse error: syntax error, unexpected '&' what is the correct syntax when trying to utilize mutliple items via the querystring: header("Location: submit.php?upload_message=image uploaded&upload_message_type=success&show_image=".$_FILES["image_upload_box"]["name"]&show_sill=".$_FILES["imgOrgSrc"]["name"]); exit; | |
update form mysql does not show file value in update page other input text working well. | |
How can you view the values of the registers in Visual Studio? I think they should appear in the Output section at the bottom of the screen. I'm using Visual Studio 2013 for Desktop. | |
I have a simple php code which enters value into MySql database and then retrieves it and displays it. However when retrieving it always return null and Empty Set is echoed everytime. Can someone please help. I am using WAMP Server. Database name is trial and name of table is … ![]() | |
Hello i have a little problem over here im trying to make a mouse listener and on mouse click the ball to come to the mouse pointer... i have maked a small "game" which is not bunch of confusing code... i have maked the ball to be controlled by the … | |
Hello, I would like to create a confirmation box for delete. Do you want to delete this row? [Yes] [No] How? How to create a colorful confirmation box? ok, I find the demo link [demo link](http://myclabs.github.io/jquery.confirm/) NOw, I wonder how to merge php with jquery ? So if someone click … | |
Hi all, I plan on deleting records which are older than one week from my MySQL database.I do not have access to cron on my current server so I plan on using cronless.com to schedule a request on the following php script. <?php $cron_id = $_GET['comm']; if($cron_id == 20){ require_once … | |
I have a problem with my vb payroll project. When I click the Edit Button a msg pop-up saying that "Input string was not in a correct format." and when click the Delete button, msg is "Fatal error encountered during command execution." I tried to change the values of @g … | |
Hi guys, I am looking to develop a web-based chatbot that uses a webcam to capture the user's facial features in order to determine the person's mood for better communication. Like for example a chatbot notices that the user is sad, the chatbot would ask "I noticed you're sad, any … | |
Hi, say I have `<input type="checkbox" id="box1" />` and `<div id="createhere"></div>` and in a javascript file I have: function(){ var box=document.getElementById("box").checked; var s = ""; if(box){ s = "<input type="text" name="text" id="text" />" document.getElementById("createhere").innerHTML = s; }else{ s = ""; document.getElementById("createhere").innerHTML = s; } } Now this works BUT it … | |
Hello guys, I want to know how to convert the JPG file into the WAD file ? the thing is not common as all. its not about to change extension, I need it to convert it as like "HI tag Converter" or "Decal Converter" or "wally" tec... I just google … | |
I have some code that allows one to move an image by clicking links (move left, move right etc) - the code works in IE but not in Google Chrome - therefore I have added to the JavaScript a check for this via g = (document.getElementById) ? 1 : 0; … | |
I have to pass two values to sp first value is nvarchar and second value is Int in SQL server,but i am not getting values, is my code is correct.Please help me out $query = mssql_init("courseofferedbyprof", $dbhandle); mssql_bind($query,"@facultyID",&$facname,SQLVARCHAR,false,false,50); mssql_bind($query,"@count",&$year,SQLINT2,false,false,50); $result=mssql_execute($query); ![]() | |
I have this function and everything works until a and b both equal 1. When that happens the carry bit is going to 2 when its supposed to be only 0 or 1. Is my algorithm wrong for the carry bit carry_bits |= ((a & mask) & (b & mask)) … | |
In my windows forms application, I start a thread to do some work. I need to be able to pause what that thread is doing without having to restart the whole thread or start a new thread. I have some code but somehow it does not look thread safe. It … | |
Hello guys, I really need help with this one. Can you please help me create a program in Python that displays information about a rectangle of any size. Input: two mouse clicks for the opposite corners of a rectangle Output: Draw the rectangle. Print the perimeter and area of the … | |
What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print temp1, temp2 print project_to_distance(2, 7, 4) | |
Right now I'm trying to create an oppish translator. That is, after a consonant or several consonants in a row, you add 'op' to those letters. As an example, cow would become copowop or street which would become stropeetop. This is what I have so far: def oppish(phrase): #with this … | |
What does this mean ? Statement st=con.CreateStatement(); how method of Statement interface is accessed by Connection interface reference con ? please help me to understand the concept... | |
Have the Proscan PLT8802G-2014-0314 Android 4.2.2 Tablet. Just added a 32GB SD card and want to run most apps from the SD. Manual is poor and I seek an informed opinion. I know there is an internal storage in setting... not enough information | |
i have form file delete anybody can help make file clone instead of delete. <?php if(isset($_POST['filed'])){ unlink($_POST['file']); } ?> <form action="delet.php" method="post"> <b>Name of file(on the server):</b><INPUT type='text' Name='file'><Br> <INPUT type='Submit' Name='filed' Value='Delete File'> </form> | |
So, my groupmate designed the look of our website...I was trying to integrate it with the other code....I decided to first do the login form....i dont know but I cant get it to work...-_- 1. lets start from the config.php: <?php ob_start(); session_start(); include('functions.php'); //database credentials define('DBHOST','localhost'); define('DBUSER','root'); define('DBPASS',''); define('DBNAME','sics'); … | |
im trying to get the date diff: <?php $datetime1 = date_create(date('d - M - Y')); $datetime2 = date_create($date); $interval = date_diff($datetime1, $datetime2); $diff = $interval->format('LISTED %R%a DAY(S) AGO'); ?> it works in my localhost host.. but when I upload and run it online it get this error : Fatal error: … | |
**this is the code and it keeps giving me a red line under (z=v2*v1),,please help me finding the mistake :( :( thanks ^_^ #pragma once using std::cout; using std::cin; using std::ostream; using std::istream; class vector{ public: friend ostream& operator<< (ostream&,vector&); friend istream& operator>> (istream&,vector&); friend vector operator*(vector &,vector &); vector(void); … | |
I am trying to learn C++. I wrote a little calculator using class to see if I can do it and give some practice. The following is the code: [CODE]#include <iostream> using namespace std; class Calculator { float a, b; public: float add(float, float); float subtract(float, float); float multiply(float, float); … | |
Hi im just a new here and Im hoping that you can help me. Im having a problem in my project and I cant find any solution in the internet thats why i am hopeful that in this forum somebody will help me. this is my codes Private Sub cmdupdate_Click() … | |
Hello, does anyone know how to read .exe file and put into textbox info from adress 0x61AA04 example? and to allow me to edit in textbox and save? | |
I'm trying to add /home/garrett/bin/libpy/ to my python path so I can import my own libraries, I would also prefer not to overwrite the default python path but rather append my own path to the default. When I try to `echo $PYTHONPATH` or `$PYTHONHOME` I get nothing and even if … | |
Alright, so the following has stumpted me and a few others in the office, and we just can't figure it out. I have develope a program that allows us to go out to a specific database and search one of the fields based on specified values. Now that seems all … ![]() | |
Hi, so i found this topic on forum.jquery [Click Here](https://forum.jquery.com/topic/is-it-possible-to-set-id-to-dynamically-created-div) and there is a way to set and ID for a dynamically created div (copy paste from the forum): var x=3,y=3 for (var i=0; i<x; i++){ var line=$('<div>', {id:"X"+i } ).css({clear:'both',width:'100%'}).appendTo('body'); for(var j=0;j<y;j++){ $('<div>',{id:"X"+i+"_"+j}).css({float:'left',width:10,height:10,border:'2px solid red'}).appendTo(line) } } the question … | |
Hi,i used this example for practicing,supposed to be easy one,but,abit confusing. Can you help to solve and point to mistakes i've done. Postman Pat became bored one night at the postal sorting office and to break the monotony of the nightshift, he carried out the following experiment with a row … | |
# #how can use file extension like .txt,.php,.html for the same script. # anybody can help# <?php if ($_POST['variable'] == '') { $variable = './'; // default folder } else { $variable = $_POST['variable'] ; } $folder = $variable; $uploadpath = "$folder/"; $max_size = 2000; $alwidth = 900; $alheight = … | |
i want the procedure to export .mdb file to sql file move file to server using ftp and import into mysql database using a batch file. | |
Good Evening, Can anyone help me with the mathematical formula for investment. This the problem that I have to workout Write a program to find future value of monthly investments. Start with an initial investment, make a deposit every 30days, calculate interest on principle compounded daily, display a table showing … | |
Windows ViSTA - HP Pavilon Entertainement PC (Under windows XP and 2002 IBM PC, no problem) The problem is I get error 3170 and error 3051 when I define a workspace as I show in the code tested I need a solution I will appreciate very much. |
The End.