199,112 Archived Topics
Remove Filter ![]() | |
I have association table in mysql that I want to translate into doctrine yaml mappings. List_id and user_id are at the same time composite primary and foreign keys. I'm confused weather I should have in listUserTb entity class both $userId and $user ($listId, $list) fields? Or can id_str from users_tb … | |
i couldn't edit my previous post or can't delete. so i open new. sorry again i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 5 6 7 8 9 i want … | |
Hello! I'm trying to do a query from SQL in PHP table. My code is: <?php $table = mysqli_query($mysqli,"SELECT song_id, song_name, janr_name, singers.names FROM `songs` INNER JOIN `singers` ON songs.singer_id = singers.singer_id INNER JOIN `janr_songs` WHERE janr_songs.janr_id = songs.janr_id "); $row = mysqli_fetch_array($table); { echo "<table border='1' >"; echo "<tr><th>№</th><th>Song</th><th>Artist</th><th>Song … | |
![]() | this is my create and read.php files problem is that in read.php file image is not being displayed only its file name is displaying // crate.php <div class="control-group <?php echo !empty($imgError)?'error':'';?>"> <label class="control-label">Image Upload</label> <div class="controls"> <input name="image" type="file" placeholder="image" value="<?php echo !empty($image)?$image:'';?>"> <?php if (!empty($imgError)): ?> <span class="help-inline"><?php echo … ![]() |
I have made a WPF application, it has a button to move some files attached to the column cells from one column to another column. The moment when i press button it shows a nice animation and moves all files to the next column cells. But my real problem is … | |
I am working on a small as2 message passing. Below are my codes. First is the host which will send the header and data to the server. Then the server is suppose to form a reply in this format http://www.edidev.net/edidev-ca/help/Using/Using_AS2/Using_MDN/MDNRequestFromAs2SubjMsg.htm <?php $header = "HTTP/1.0\r\n"; $header.= "CONNECTION: Keep-Alive \r\n\r\n"; // Here … | |
Hi, I have been trying to create a game loop that is paused when a certain key is pressed. This seemed to work ok in Swing but in javafx the loop locks up the UI, even if i create a seperate thread. @FXML public void setPaused(KeyEvent e) { if (e.getCode().compareTo(KeyCode.P) … | |
this is suppose to be infix to postfix converter | |
I have the follow code, with checkboxes. Tried to do an array. I send these checkboxes to my mail-process file. How I do, that I only get these values, from these checkboxes, they are checked? <div class="cpt-item four columns"> <div class="thumb-wrapper"> <img src="/assets/images/custom/bigb002.jpg" alt="The Big Buddha Temple"> </div> <div class="cpt-detail"> … | |
Hi all, I'm wondering if anyone's had experience with the WordPress Importer tool. I'm having trouble importing my WXR file through the tool. It works well for the most part, but when I get to the author assignment section, there are some issues. Under Assign Authors I only see `Import … | |
<Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1 country="england">English</lang1> <lang2 country="france">French</lang2> <lang3 country="china">Chinese</lang3> </Translations> </Article> </Articles> I want to select any attribute in the entire document (no matter the … | |
I have seen these two methods of using ItemListener. I am curios which is better and why. What are the differences? ItemListener a; Choice ce = new Choice(); ce.addItemListener(a); ItemListener itemlistener = new ItemListener(); itemlistener.handle = checkboxmenuitem; checkboxmenuitem.addItemListener(itemlistener); | |
![]() | There is any way to create a program in C which will be able to translate words using google translate or bing translator? I've already downloaded curl library (Ubuntu 14.04), but don't know exactly how to start in pure C. I'm beginner programmer. Thanks for help. |
Hi everyone! I am making a program in C where the user will input a month then the program prints out all the names of files created in that month. Right now I'm having trouble in printing the names of files. Here's a portion of my code. Can you help … | |
do mysql create another table when selecting rows?if this happens it will take up lot more space on hard disk as duplicate entries will be risiding in table formed by "select"... | |
hi there, I need help on replacing url parameter, I am using Zeroclipboard script on my page. When someone click on any coupon code then a new window open with the same page and code can be copied from popup. I have these codes on my page : <div class="btn … | |
How can I find the width of a command line window from a GNU C++-program ? I'll use this information to display a progress bar when copying files, so I need to know the width to be able to display the progress bar correctly. | |
hello guys and happy new year!~ let me be the first to ask a question this 2015.. huehue is it possible to start with the same recordset when going to the next form? i have a textbox for name in form1 when i go to form2 i want to display … | |
Hi, Let's say I have an array of 10 elements. I want user to enter 9 numbers so that they fill arrays 0 to 8 (9 numbers). Now I shift the arrays +1. so array[0] is now array[1] and so on. Now I ask user to enter 10th number (fills … | |
hallo, I would like to create session system: page1.php <?php session_start(); ?> <p><div style="margin: 50px 0 0 240px;"><img src="../../images/<?php echo $_SESSION['$banner']; ?>"></div></p> It already works! After I click the page2.php through the navigation, then: I wonder why the banner that appears different from page1.php, I thought it suppose to be … | |
JMenuItem mItem[] ={copy,paste}; for(int b=0;b<mItem.length;b++) { mItem[b].addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { String mItemCommand = e.getActionCommand(); JTextArea copypaste = new JTextArea(scr.getText()); if(mItemCommand=="Copy"){ copypaste.select(0,scr.getText().length()); copypaste.copy(); } if(mItemCommand=="Paste"){ copypaste.setText(""); copypaste.paste(); String num =copypaste.getText(); try{double n=Double.parseDouble(num); if(num.indexOf(".")!=-1) isDecimal = false; isFirstDigit = false; if( n-((long)n)>0.0) // I just didn't understand codes starting … | |
Hello Everybody, I'm stuck with my little project. I want to select multiple days in a monthcalendar and count the days and display this in a textbox. I looked at different sites, but keep getting the error When converting a string to DateTime, parse the string to take the date … | |
VB.NET 2010 Is there a way to restrict a Masked Text Box to accept only *certain* letters? I know how to restrict for all letters. For example, the user should only input the letters "P", "R" or "N" ( or can be blank) in a particular Masked Text Box. I … | |
Okay, so this is my current code: #include <stdlib.h> #include <stdio.h> #include <stdint.h> struct Display { int width; int height; char **array; }; struct Display *display_create(int width, int height) { struct Display *display = (struct Display *) malloc(sizeof(struct Display)); display->width = width; display->height = height; display->array = (char **) malloc(sizeof(char) … | |
What IDE do you use for C++ development and what is the best in your opinion? I'm using eclipse but sometimes I get errors when there shouldn't be errors. For example: I would have errors on eclipse but when i use code::block, everything works fine. I'm thinking of switching to … | |
i hv 3 different user,user selection is based on radiobuttonlist and then login button,but im having error that "use of unassigned local variable 'sql'.I couldnt figure out the mistake.do help me :) protected void btn_Login_Click(object sender, EventArgs e) { string sql; if (btn_user.SelectedItem.Text == "Admin") { sql = "Select * … | |
Second query not work... <form method="post"> <select name="selected" onChange="MM_jumpMenu('parent',this,1)"> <?php // echo all id in table to options dropdown menu** $sql='SELECT id FROM lekcia1'; $result=mysql_query($sql) or die(mysql_error($db)); $a = 0; while ($recording=mysql_fetch_array($result)){ $a ++; echo '<option value="'.$recording['selected'].'"> '.$a.' </option>'; }; ?> </select> </form> <?php // query NOT WORK $sql1="SELECT * … | |
Hi guys, Could someone please help me with a small problem i am having? I want to display a message if there are no entry's in a table but for some reason i cant get this right. Here is my Controller: ----------------------- <?php if ( ! defined('BASEPATH')) exit('No direct script … | |
Hi friends, Here is my code for selecting datas from myql database with the help of php.All i want to do is i want to pass and display image through intent from Activity 1 to Activity 2.im new in android so please help me. **Activity1** import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import … | |
hi guys Iwant a programm to creat tree and calculate the sum ant count it and max and min | |
hello. I have to use a function in my phonebook program to sort the names alphabitcally here is what i have done so far.but what's wrong with it? void showAllContacts() { char t[40]; list *head; if(head == NULL) { puts("There are no contacts to display!"); } else { printf("\nAll contacts:\n"); … | |
How to read clean data from .docx or .doc file? $file_url="http://www.abc.com/upload/test.docx"; $doc_data = file_get_contents($file_url); it's gives out put like �T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö��� ���(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���� �����PK�����!�‚мú��������[Content_Types].xml how to get clean data like text file?? | |
Hi guys, I need some basic help with my code, I've created a empty list to appending the controls to a list to add the controls when I pressed on the down arrow button of the keyboard. I'm trying to appending another controls to a list to add the controls … | |
Hi, As above, I'm using directshownet for the first time, trying to create a program to perform some real-time video processing. At the moment I'm aiming to create two video renders (in the same window) side by side, one showing the original video and the other showing an edited version. … | |
Please tell me the difference between these three. I know the basic meaning but don't know exact meaning of all of them. Please explain a very good example if possible. Thanks in advance. | |
This programe is made for biggners in c++ to made programe efficently and hide your prevate data form the user of your programe.This programe is made with the use of this pointer and also use the operator overloading. I will share this programme with others to understand it. //this programme … | |
hi below is a switch case that is suppose to go to the next "hep" # and show a message... so if hep is 0 it shows one message, if hep is 1 it shows another, etc. I have it showing a message for 0, and 1, but it ALSO … | |
Hello -- When using the PrintForm component in VB.Net 2010 I would like to change the back color of the form from black to white just prior to printing to preview. Then once the print preview window is closed the back color returns to black. Here is the code I … | |
Hi there, Has anyone know to use voice commands on Android phones? I am developing a clock that is capable of displaying numbers and words. I would like to extend my project and to add GSM module so it is capable of receiving msg. I would like to use Android … | |
<?php $height = 100; for ($i=0; $i<$height; $i++){echo str_repeat(' ',($height-$i)).str_repeat('*',$i).'<br />';} ?> May you Daniweb people Grow Like this one. | |
I am developing a Java application that uses a JTable. I want to allow the user to enter data in a JTable that can later be printed or saved as PDF file. The issues is: Suppose the user has entered some data and the cursor is on the last cell … | |
I am trying to collect my form inputs into a csv file and for some reason the csv file records some of the styling and does not display numbers (phone number and date). I am not sure where I got it wrong. Here is what I have so far. <?php … | |
Hello Everyone, I recently came up with a really nice little piece of code that allows me to merge images quickly (by merging I mean fade in and out). The only problem is, the tests worked fine on small scale (like small images), but once I started to go larger, … | |
Hello everyone, I was looking for a code like to store iframe's id in javascript's variable inside different divs. <div id="player"> <iframe id="SAR7KmiCHto" width="560" height="315" src="http://www.youtube.com/embed/SAR7KmiCHto?enablejsapi=1" frameborder="0" allowfullscreen></iframe> </div> <div id="player2"> <iframe width="560" height="315" src="//www.youtube.com/embed/9P9JSgZwrjc" frameborder="0" allowfullscreen id="9P9JSgZwrjc"></iframe> </div> In above code there are two div ids i.e player and … | |
Hello, I am working on PHPExcel But in there calculation 0.625 we want to coming by dynamical from database. bellow brief description. They all used to be 62.5% of the delivery fees as seen below: `setCellValue('G'.($start_row+2), (($total_delivery/11)*10)*0.625);` all the drivers can have different percentages assigned to them and we need … | |
hello everyone, i am developing a quotation generator application using Java. I am using a JTable to capture user input(this input is taken from a database i.e. each cell of the tale will have a combobox where the user can select an input value). when the user is done he/she … | |
Write a class that implements a vector of integers with the following template: Class IntVector{ private: // all member variables public: IntVector( int n); // create a vector with size n ~IntVector(); // releases any memory allocated by the vector Int getElement(int i); //returns the element i in the vector; … | |
I have an xml structure : <Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> </Articles> i created a method AddRecordByInfoMatch() that attempts to add … |
The End.