199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kiail

Hello, currently I am trying to send a byte array to a wireless device I have setup on my network. I'm having issues however and it's not working properly. I can send data to it while I have it interfaced usb, but over the network has been unsuccesful. This is …

Member Avatar for kiail
0
327
Member Avatar for adishardis

Hi, I would like to loop the data-attribute to contain all column names and values from a mysql table. This is what it looks like today: while ($row = $result->fetch()) { echo "<div id='{$row['namn']}' data-column1='{$row['column1']}' data-column2='{$row['column2']}'... So some kind of magic :) loop inside there so I don't have to …

Member Avatar for adishardis
0
259
Member Avatar for DJBirdi

Out of curiousity, if any of you have ever done image watermarking with PHP, I'd love to hear some ideas. PHP's official documentation on watermarking with alpha channels isn't bad but I'm curious about the existence of other libraries that some of you might have used.

Member Avatar for DJBirdi
0
220
Member Avatar for jlieu.ww

Design a C++ program by considering the following conditions; 1. User must keyed-in “start” to start the program and “stop” to end the program. . 2. If the user keyed-in “choice1”, print out PATTERN A. 3. If the user keyed-in “choice2”, print out PATTERN B. Use if else statement, while …

Member Avatar for NathanOliver
0
220
Member Avatar for computer1

i am working on a small gallery website(project) and i want to give users provision to upload multiple photos and it should appear on the same page...Thanks in advance.

Member Avatar for rpv_sen
0
54
Member Avatar for Tensigh

Hello, The code below works almost perfectly except for two flaws: 1. It provides the full name of the file (workbook.xls) instead of just "workbook" 2. If there is more than 1 worksheet then the loop appends the previous worksheet to the filename. For example, Workbook1 has 1 worksheet Workbook2 …

Member Avatar for Tensigh
0
398
Member Avatar for surya32

Hi, I've contacted some website administrators for their API, inreturn, they have asked for source IP to whitelist it so that only requests from that IP will be considered as legit (its ok even if its shared IP). So, now the problem is how do i get ip of site. …

Member Avatar for JorgeM
0
223
Member Avatar for TonSingle

**hi guy recently i created one AbstracttableModel and one class named Veiculo, and i created a vector to hold Veiculo's data, i copied veiculo's data to text file named "UniVeiculo.txt", now i want read and show some data from UniVeiculo.txt to AbstractTableModel. i tryed use this code: String cod="",mark="",year="",color="",model="",plate="",owner="", List<Veiculo> …

Member Avatar for mKorbel
0
109
Member Avatar for Netherblood

So I've been working on this project of mine and I want to refactor it. What I have is a couple of cases that change my JButttons' icons. These cases are in a method that is in my public GUI class that extends JFrame. What I want to do is …

Member Avatar for mKorbel
0
312
Member Avatar for sandhya1202

[QUOTE]I would like to search for more than one word in a text file and if the word found i would like to save it to a group in which i have files belonging to English,Entertainment etc.The thing is Im unable to search for more than one string in a …

Member Avatar for Vikram Kolla
0
343
Member Avatar for bolfescu

hy i have this collums and what i'm trying to do is to 1.make a search form that can show me the total of the values table q1(the sum) for example that i whant to chose a category wich it have same name at collum but different id, this is …

Member Avatar for bolfescu
0
280
Member Avatar for Rake$h

Hello Friend's, step 1: I trying textbox data 1st insert in grid. it's clear but step 2 : Grid data not insert in data base. it's code here protected void btnsavedata_Click(object sender, EventArgs e) { foreach (GridViewRow g1 in gvloan.Rows) { SqlConnection con = new SqlConnection(conString); SqlCommand com = new …

Member Avatar for Rake$h
0
134
Member Avatar for Rake$h

hi friend here soved code for textbox data display in Gridview <form id="form1" runat="server"> <asp:TextBox ID="txtAdd1" runat="server"></asp:TextBox> <asp:TextBox ID="txtAdd2" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="show in gridview" onclick="Button1_Click" /><br /> <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkbox" runat="server"></asp:CheckBox> <br /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Remark"> <ItemTemplate> <asp:Label ID="lblremark" runat="server"></asp:Label> </ItemTemplate> …

0
115
Member Avatar for maxpaine69

Hi all, I have a asp:radiobuttonlist, that the data to create it comes from the Database, one of the option must turn visible, a text box, i have that done in codebehind in .net, but i think its lagging to much. the problem is how can i do thins in …

Member Avatar for maxpaine69
0
219
Member Avatar for makan007

I want count the elements in a srand generated array. The array is char array. Can anyone advise me on my void countElements (char* a, int size) function as it don't work? TIA. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; …

Member Avatar for TalhaMoazSarwar
0
888
Member Avatar for david.roun.7

So, when I run this code on xampp, it works and I can see the variables, without the header. <html> <head> </head> <body> <?php $user=""; $server=""; $db=""; $pass=""; $con=mysqli_connect($server,$user,$pass,$db); $id=$_POST['loginid']; $password=md5($_POST['password']); $result=mysqli_query($con,"SELECT * FROM passwords WHERE userid='$id' AND password='$password'"); session_start(); if($row=mysqli_fetch_array($result)){ require('../connect/registerdb.php'); $rresult=mysqli_query($rcon,"SELECT * FROM registration WHERE userid='$id'"); while($rrow=mysqli_fetch_array($rresult)){ $_SESSION['name']=$rrow['name']; …

Member Avatar for DJBirdi
0
324
Member Avatar for Masood_786

Hi All, I have demodulated two AM files (I/Q) succesfully but for one of the I/Q files which was Gnuradio (USRP) file i had to scale down I and Q components before demodulation by multiplying by 0.0001 (experimental value) to get the value that can be demodulated and heard on …

Member Avatar for rubberman
0
306
Member Avatar for pizzaaaa

I can't go back to a submenu. Using continue or break will make me go back to the main menu. Can you get what I'm saying? New to Python. Thanks!

Member Avatar for rubberman
0
151
Member Avatar for Suresh_6

Hi i'm new to python, i want to generate results by comparing two files(txt/xls)line by line as Pass or Fail. i was able to achieve this using difflib and htmldiff(). comparison works fine but not able to add third column as results which should return pass/fail for corresponding line. can …

Member Avatar for Suresh_6
0
168
Member Avatar for Shakeylfc

Hi, Basically im looking to create a basic C# compiler or parser if you like that will allow users to create simple programs that can declare variables, assign variable values etc. Ive began with the main functionality within the application, this being the parser which shall pass in user code …

Member Avatar for arronlee
0
318
Member Avatar for mangopearapples
Member Avatar for Namibnat

I am still trying to get a grasp on the php/mysql interaction. Why does something like this not work and without all the error catching, can one do something like this? [CODE] $result = mysql_query("SELECT * FROM stadium WHERE gametime = `$_z`;"); $row = mysql_fetch_row($result); $bababa[name] = $row[0]; $bababa[town] = …

Member Avatar for guruparthi
0
728
Member Avatar for suman_4

I was learning about the static class and static method.Then i came across the following line: Only one copy of static member exists regardless of any no of instance of a class. what does it actually mean? It is in the msdn document http://msdn.microsoft.com/en-us/library/79b3xss3.aspx achfcssswwws follows: A non-static class can …

Member Avatar for hericles
0
154
Member Avatar for PM312

There is no **"Microsoft Outlook 14.0 Object Library"** in my **visual studio 2008 reference COM** List how can i update it. Thanks

Member Avatar for PM312
0
1K
Member Avatar for rjusman90

<td>Upload your pic</td> <td><input type="file" name="1234" value=""></td> <?php $img =$_POST['1234']; $sql="UPDATE users SET FirstName='$FirstName' , LastName='$LastName', UserName='$UserName' $sql_pass,Email='$Email' , Gender='$Gender',PicUrl='$img' WHERE UserId='$User_ID'"; ?> want to save in image folder also

Member Avatar for david.roun.7
0
171
Member Avatar for mbowenitj

Hi guys, I've created a login form which works fine, i need assistance in comparing uppercase and lowercase input from a login form. Whenever the password is entered, the system has to compare uppercase and lowercase characters stored in the data..following is my code: 'Logic for login... Dim conn As …

Member Avatar for mbowenitj
0
2K
Member Avatar for 24minutes

Greeting, I'm working on a VB.NET program. Currently I'm facing difficulty of filtering data of the parent and the child. I use GridControl from DevExpress through :)/> This is the code of how I populate my TreeView : Public Sub fillTreeView(ByVal Key As String, ByVal Txt As String, ByVal N …

0
113
Member Avatar for jaspertan

here is my code. it only retrieve last inputted data. How can i populate all data in a htnl table. <html> <?php $id =new Register(); $test=Register::selecthey(); foreach($test as $t=>$sid){ } ?> <table> <thead> <tr> <th>Document ID</th> <th>Personnel ID</th> <th>Docs Name</th> <th>Docs Num</th> <th>Docs Date</th> <th>FileName</th> <th>Data</th> </tr> </thead> <tbody> <tr> …

Member Avatar for jaspertan
0
132
Member Avatar for iuessele

I am a total newbie to programming. I was hoping to learn how to write a program that prints out a string representation of a random card from a deck of playing cards. The programs should use either “A”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, …

Member Avatar for alexander.selin.7
0
13K
Member Avatar for masonketcham

This is my first time working with C++ and I have put together this program and came up with two errors and I am unsure what it is wanting me to do. The errors I got are: 1>c:\users\owner\documents\visual studio 2010\projects\week5\week5\passing_by_value.cpp(30): error C2064: term does not evaluate to a function taking …

Member Avatar for Ancient Dragon
0
213
Member Avatar for rjusman90

<?php include"header.php"; if(empty($_SESSION['UserName'])){ header("Location: http://localhost:1234/city"); exit;} $result = mysql_query("SELECT * FROM menu"); echo "<td><a href='http://localhost:1234/city/menu_update_insert.php'> <img src='images/create.png'>Add New Record</a> </td>"; echo "<table border='0'> <tr class='tableheader'> <th>PageName</th> <th>MenuName</th> <th>ParentMenuId</th> <th>LinkWidth</th> <th>OtherUrl</th> <th>Status</th> <th>CreatedDate</th> <th>OnMainMenu</th> <th>FooterMenu</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr class='tablerow'>"; $rpId=$row['PageID']; $result1=mysql_query("SELECT * FROM page WHERE ID=$rpId "); …

Member Avatar for rpv_sen
0
265
Member Avatar for zina_a

Hi, I want to display a Frame2 when I clic the button4 in Frame1,my problem is when I clic in that button the Frame2 is not displayed this is my code: #Boa:Frame:Frame1 import wx import wx.animate def create(parent): return Frame1(parent) [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1BUTTON2, wxID_FRAME1BUTTON3, wxID_FRAME1BUTTON4, wxID_FRAME1BUTTON5, wxID_FRAME1BUTTON6, wxID_FRAME1GIFANIMATIONCTRL1, wxID_FRAME1PANEL1, wxID_FRAME1STATICTEXT1, …

Member Avatar for vegaseat
0
366
Member Avatar for laguardian

Hey guys! So I'm trying to make a simple program that prints out the attributes of "Person". I'm kinda still practicing with java so I'm not sure what the errors are about. Here's what I have: Driver: public class Driver { public static void main(String[] args) { Person a = …

Member Avatar for stultuske
0
132
Member Avatar for hwoarang69

I am trying to start up JBoss with parameters in Windows but getting some errors. If I remove parameters than JBoss startup iwht no errors. Could some one please take a look. # environment variables: # JAVA_HOME=C:\Java\jdk1.6.0_45 JBOSS_HOME=C:\bin\jboss-eap-6.1 Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32; # start up jboss with following parameters: # set "JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=myhost …

Member Avatar for hwoarang69
0
672
Member Avatar for supermastereu

Receive a number from the keyboard and tell you if it is divisible by 10, 5, 2 or if it is not divisible by any of these. Why this dont work? #include <stdio.h> #include <stdlib.h> #include <math.h> main() { int num; printf("number: "); scanf("%d", &num); if (num % 10 == …

Member Avatar for rana ranjit
0
146
Member Avatar for Athirah Yusri

If I try to run the following PHP code, I get a "Call to a member function query() on a non-object". Do you know why? I use the same code on another site (http://daveismyname.com/creating-a-blog-from-scratch-with-php-bp#.U6fdxPmSxmx), where it works just fine. config.php <?php ob_start(); session_start(); //database credentials $username = "demo"; $password = …

Member Avatar for cereal
0
3K
Member Avatar for jayesh.babu.140

I want to add one of the column in a database table as components in a combobox. How to do it? I am using visual studio 2012 and c#. Help me please. Thank you in advance.

Member Avatar for arunkumars
0
159
Member Avatar for Joshua_6

Hi Expert, How can i remove the Time using Datetime Picker using vb 2005 that i can only save "MM/DD/YYYY" I tried editing the custom and format still the Time still getting pickup and save in my Database. Thanks guys.

Member Avatar for Joshua_6
0
137
Member Avatar for Mr.M

Hi Dw How can I delete a registry key for other program, I just checked my registry and the virus was registered under the same registry key of my other program and now I want to use java as also part of learning java and the method of accessing and …

Member Avatar for Mr.M
0
2K
Member Avatar for SimonIoa

I want to count rows from table1 and rows from table2 and retrieve a sum from both tables. i use this... $query=mysql_query("SELECT COUNT(*) AS total FROM (SELECT COUNT(*) FROM message_believe WHERE message_believe.uid_fk ='$uid' UNION ALL SELECT COUNT(*) FROM review_believes WHERE review_believes.uid_fk ='$uid' )"); $data=mysql_fetch_array($query); echo $data['total']; what do i do …

Member Avatar for urtrivedi
0
149
Member Avatar for jj.dcruz

I have this simple problem but im still newb to vb.net where i should Reverse the "hello world" and the result "olleh" without the world without using any function like strReverse() its very hard for me any ideas would be helpful

Member Avatar for jj.dcruz
0
154
Member Avatar for martinkorner

Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but …

Member Avatar for guruparthi
0
1K
Member Avatar for GingerDontCare

I keep getting Fatal error: Call to undefined function newMyOperatorClass() in C:\wamp\www\KanJ_PHP_Website\KanJ_PHP_Ex2.php on line 17.....here is my code... <html> <head> <title>Justin Kangley Ex2</title> </head> <body> <?php class MyOperatorClass { private $rValue; //declare private property at the class level so all the functions use it //default constructor method (same name as …

Member Avatar for GingerDontCare
0
284
Member Avatar for Siberian

I've run into an issue, I can access my WordPress administrator login page, when I enter in my credentials to access the wordpress administration menu, the screen goes blank. I've contacted the server admin and he as told me he has done all he could which was expand the PHP …

Member Avatar for Siberian
0
157
Member Avatar for henryz_box

I'm using: Windows 7 Home Premium 64-bit operating system Netbeans IDE 8.0 WAMP Server 2.5 Here is my issiue. I am attempting to follow the E-commerce tutorial in the Netbeans Java EE & Java Web learning trail (Section 3 "The NetBeans E-commerce Tutorial - Setting up the Development Environment"). In …

Member Avatar for henryz_box
0
5K
Member Avatar for GingerDontCare

I have a cart that shows product selected and the quantity and the price for each. What I am wondering is how to display the price for each as well as the total for all? Here is my code...Is there a way to do this in the public string Display()...what …

Member Avatar for GingerDontCare
0
345
Member Avatar for dkoohmarey

My client and server below can be run in seperate terminals an can see each others connections, but always send only 0 bytes. Cannot figure out why. Both scripts are g++ compilable so you can see what I mean. Run ./server in one terminal and ./client 127.0.0.1 test in the …

0
154
Member Avatar for brittney_2

I am having trouble understanding exception handling, unfortunately it just really confuses me. So, I have to implement exception codes that have been created by my teacher in another code with try and catch blocks. I understand the majority of the try and catch blocks, but I don't know how …

Member Avatar for brittney_2
0
223
Member Avatar for SimonIoa

I want to make two short by options for the users to be able to check out the most recent uploads and the ones with the most views. The query works fine but i dont know how to make the link (<a href="") work. I made this change on the …

Member Avatar for iamthwee
0
118
Member Avatar for Madiya122

I am trying to insert records in a SQL table from Excel sheet with VBA code. Data contains of a range with all the rows to be inserted. I am using below code for the same. Insert INTO [odbc;Driver={SQL Server};Server=myserver;Database=mydb;Uid=abc;PWD=abc].DPR Select * FROM [TempRange] I am getting error as above. …

Member Avatar for Ancient Dragon
0
401

The End.