199,113 Archived Topics
Remove Filter ![]() | |
Hi i have a problem with the output to show the images horizontal in have the folowing code [CODE] $connn1 = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die('Could not connect to MySQL database. ' . mysql_error()); mysql_select_db(SQL_DB,$connn1); $image=mysql_query("SELECT * FROM $weinachtfeier"); if (mysql_num_rows($image)<=0) echo "<br>Album does not exist or you are not … | |
In C++, extern "C" { __declspec(dllexport) int test(char* data); } __declspec(dllexport) int test(char* data) { string str = "wassup"; strcpy(data, str.c_str()); return 1; } In C# [DllImport(dll, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] static extern int test(StringBuilder faceData); static public void testDll() { try { StringBuilder ASMData = new StringBuilder(500); … | |
I have a query that collects multple ID numbers and stores them into a php Array. I then want to make a mysql query for every result in the php Array. I believe I am on the right track but am getting an error saying the `join()` method has invalid … | |
Dear all, I cant get any result set back, when issuing a simple Select statement through VB.Net and MYSql Data provider, to a Mysql table searching for some Greek string. MYSQL Ver:5.5.32 VB.Net: 2010 Do I need any special encoding for the passed string? Thanx | |
Hi Team, I have been trying to understand the concept of RMI by writing a simple classes for 1. RMIInterface 2. RMIServer 3. RMI Client I have written three classes in eclipse and started RMIRegistry by running start rmiregistry command. When i tried to compile RMI server class im getting … | |
The following is my homework assigment. I have it more or less complete. I would like feedback from the community on what I can improve in the program. Basically, before I hand it in to my professor, I want a fresh pair eyes to take a look at it. There's … | |
Write a program that clear the difference b/w increment & decrement operators using binary & unary operators. can anyone help me out in this program ??? | |
I NEED HELP! (please and thank you). I have an assignmet for extra points. I'm lost. Out profesor is not explaining anything and the assignments are NOT what we covered so far (which isn't much). I could use any help I can get. I've been trying to google it and … | |
I've been assig to do the class rectangle, the class has two instance variables: length and width of the rectangle, and the methods methods setLength(), getLength(), setWidth(), getWidth() and computeArea(). Do you have any idea to do this. Anyway i'm to to python. | |
Good Morning All, I need some help and guidance on a project I'm working on, I am having problems with the following code below, I have been trying to figure it out for days and cannot see anything wrong with it, I am getting the following error when processing the … | |
Good morning, Can someone help me code this instruction? Place student names and final mark into two, one- dimensional arrays. One array will be of String (for names), the other will be an array for real numbers (for marks) Use the array to display: Class Average The number of students … | |
Hi, I would like to load the data from a SOAP response XML file to a MySQL table. Sample SOAP XML would be http://data.gov.in/sites/default/files/Ashgourd_2012.xml. I have to write a program to populate the data. I'm not very familiar with Java Web Services. I've worked with Struts2 and basics of Spring. … | |
Hi all,please help me out,how to find occureces and scale in this situation?And what is wrong with diplay option,once it displays,the numbers are not in the same column. Thank you kindy. #include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int list[12]; cout<<"Enter 12 values:\n"; for(int i =0;i<12;i++) … | |
I have a String which has been splitted like this String companyinforstring ="Company name.:Company profile no 1.:Company profile no 2.:Company profile no3.:---------------------------------------------------------------:Company address, :Street number, :Area,Area no2, :City. "; for (String retval: companyinforstring.split(":")) { System.out.println(retval); graphics.drawString(retval.toUpperCase(), 250, 200); } The Problem is that String which has been splitted, overlaping each … | |
Hi When I tried to compile like g++ -std=c++11 -W -Wall it gives this error error: ‘stoi’ is not a member of ‘std’ #include <string> #include <iostream> #include <fstream> class Grade { public: // Default Constructor Grade() {}; // Functors // If the given course and the score matches the … | |
Hi... I got the following: function solution($A) { if (is_array($A)) { if ($b = preg_grep("/\-1/", $A)) { foreach ($b as $key => $value) { $A_count = count($A); $remove = ($A_count-1) - $key; $v = $A[$key]; unset($A[$key]); for($i = $key+1; $i < $A_count; $i++){ unset($A[$i]); // to remove the element after … | |
how to bind a datagridview to a list of custom classes?? pls i need your help guys, tnx. | |
Greetings People of Daniweb! I'm trying to add a 3rd party control to a form and I'm getting the following message: **Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.SyntheticConfigSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.ContainerModel.ITypeRegistrationsProvider' ** Does anyone have any idea why this could happen? Any searches I tried on google brings back nothing … | |
Hello everyone ! How to make conditional messagebox in PHP? How do I do it? Like for example, in deleting record inside the database. The user will be asked to input costumer_ID (there should be a button named "search") if the user pressed the button search, it will search through … | |
Good Day Guys So im having this issue with this site that i develop which is running 24/7 that eats a huge amount of bandwidth every time the page reload every 10sec using META TAG that is affecting our operations specifically our net connection. What i wanna know is if … | |
hi, i dont know how to solve it can you help me please??? Create a java program that will do the following: # read 3 inputs from the keyboard # • two input numbers each being a single digit (0…9) • one character representing one of five operations : + … | |
hi i want the selecte columns count in datagrid for ex if i select the first column than i want that first columns count i tried it datagrid selection change event but i can't able to get the particular column count. if anyone knows how to do it give some … | |
Parse error: syntax error, unexpected end of file in D:\xampp\htdocs\metrimon\sections\searchbox.php on line 80 | |
I tried using a solution to a very similar question here but it doesnt work for large files like the one I'm using. http://www.daniweb.com/software-development/vbnet/threads/320160/visual-basic-reading-text-file-into-array The code from that question: Dim OpenAnswerFile As New OpenFileDialog Dim strFileName() As String '// String Array. Dim tempStr As String = "" '// temp String … | |
I'm wanting to develop some simple tables for my newspaper to cover an upcoming election. I would like to be able to easily enter in precinct data in a form, have the table show precinct-by-precinct data as well as total and the show the percentage of votes for a certain … | |
I am completely lost in my C# class and need some help. Here are the program specs, i just don't even know where to start. Thanks Create an application containing a large wide List box control, a Read button, and an Exit button. Selecting the Read button shall cause the … | |
Hello, i'm currently trying to write some code to find the integral of exp(-x*x). I have been given code for one trapezium rule (trap0) which is imperfect, and a second set of code for a new trapezium rule (trap1), which uses the old code and some new conditions to 'perfect' … | |
I have to fix programme where the programme asks the user for an input of a random text. When the text is written in the programme will change specific letters like a to be c so I am a man would be I cm c mcn public static void main(String[] … | |
Hello, guys I'm hoping that you can help me. I'm having a problem coding w/ this problem. I find it hard to do this bcoz when I run the program the result always be like this. #include "stdafx.h" #include <string> #include <iostream> using namespace std; int main() { for (int … | |
Hello members.. I needed to implement dynamic graph solution in PhP and got this wonderful article which serves my purpose. [URL="http://www.kidslovepc.com/php-tutorial/php-dynamic-chart-plot.php"]http://www.kidslovepc.com/php-tutorial/php-dynamic-chart-plot.php[/URL] I played with it as they told me to but did not get any output from the samples :'( I tried the installation test and its showing that everything … | |
Hello. I have an old access data project. I need to convert it to sql and .net. How can I do that? | |
Hello, I am trying something new and I do not know how to do it. I have table that list all the expenses claim, which these expenses needs to multiple approvals from different managers, where it will be like this: <?php $connect = mysql_connect("localhost","root","***") or die ("Could not connect"); mysql_select_db("expenses") … | |
I have 7 textbox entries and I would like to add them to a listbox and when I close my application it would save them, I have the code for the 7 texboxes and everything like that has been done, but I just dont know how to add multiple textboxs … | |
[CODE]dim H, M, S, AMPM as strings DTPicker1.Hour = H DTPicker1.Minute = M DTPicker1.Second = S DTPicker1.?????? = AMPM [/CODE] im having a problem on how i can change the DTpickers AM/PM in codes im trying to load a time from a database to DTPicker, ive Split the (field loaded … | |
hello there. in order to gain experience I started a small python project. it is an more or less simple, collaborative address book (Snow Leo and Python 2.6.1). the final step is to create a standalone programm. to create the address book I used PyQt4 and MySQLdb. since py2app chokes … | |
I'm not able to get the printout. here is the code public class Billing extends Frame implements ActionListener,Printable { JButton printbtn = new JButton("Print"); } public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException { if (pageIndex > 0) { return NO_SUCH_PAGE; } // User (0,0) is typically outside … | |
controllers/admin/clogin.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login controller class */ class Clogin extends CI_Controller{ function __construct(){ parent::__construct(); } public function index(){ // Load our view to be displayed // to the user $this->data['assets'] = array('logincss' => base_url().'assets/css/login.css', 'logo2' => … | |
I would like some help with my connect class.This class is created by me it is my way of thinking so i would like to know why this class dossent get my variables and connect proprely to mysql. the code <?php /** * Exp:Connect to database in oop style @params … | |
I have a table (employees) like this ID Name Group Email 1 Bob Buckland Marketing b@example.com 2 George Alaz Engineering g@example.com 3 Tom Grady Marketing t@example.com 4 Mary Jane Engineering m@example.com Im going to use this in a email form. First a combobox should load all the groups possible. This … | |
$rowA=array("-1","1","2","-2","3","-3","4"); $rowA['charge']= preg_replace("\-\1", " ", $rowA); How do i make this such that all numbers show up without negative signs on them? I also want "1" to be omitted from all results. So my results should only be 2,3 & 4 if i access the array. | |
I have created an uninstall list that is populated when a form loads. I want to add the ability to right click on the item and have an uninstall option. Below is the code that I'm using to show my Uninstall Manager so far. [CODE] Private Sub UninstallMgr_Load(ByVal sender As … | |
I am new to Joomla. i have to select one theme from these two themes. Rocket theme - http://demo.rockettheme.com/?template=acacia Nemo White Premium Joomla Template - http://themeforest.net/item/nemo-white-premium-joomla-template/5507845?WT.ac=category_item&WT.seg_1=category_item&WT.z_author=ThemeRox but exactly i don't know which parameters i have to consider for selecting theme like Framework. I am not sure how to check which … | |
I have been trying to do this and i dont know why exactly its not working.. Here's the idea. I want to receive the name and age of a person via POST method and then put it in an array dynamically, so that as more names and ages are added, … | |
Hi All, I want to develop an application in which I want to record a video in **silverlight** and send it to the server. I have the following questions in my mind. 1. In which format the video will be record in silverlight using Webcam ? (Raw format OR WMV … | |
hi in my application i want the user to select only time from the datepicker i don't know how to display only time in datetime picker if any one have any idea give some code sample | |
I have an issue with some code im writing. I have a Datagridview object that always has two columns, but could have any amount of rows depending on many different scenarios. I would like to be able to take the values from the DatagridView and put them into an array, … | |
I need a lost password script for my existing login script. I need one that sends an email to the person once they enter their username. It is in a database with other things but the tables name is "profiles". The rows in that table are "id" "email" "username" "password". … | |
I' sorry but i need some help, i cant find the error. I want to add a new record to the database (access 2010), but although the dataset is updated, the added information does not save do DB. THe code bellow is the code that i run when press the … | |
Hi.here is a question I got for assignment.I am stuck in this for hours and couldnt com up with any logic.Any help will be highly appreciated.Thanks Depth-First-Search Q.No.1 The undirected unweighted graph with one selected vertex is given. Find the number of vertices in the connected component where the selected … |
The End.