199,114 Archived Topics
Remove Filter ![]() | |
I need help reading my arp replies. When writing requests to the socket, I cant get replies related to what I sent..Ideas #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <netdb.h> #include <sys/socket.h> #include <arpa/inet.h> #include <linux/if_ether.h> #define ETH_HW_ADDR_LEN 6 #define IP_ADDR_LEN 4 #define ARP_FRAME_TYPE 0x0806 #define … | |
Hi everyone, I really haven’t found much that would be fitting in a half decent or secure way on this issue, but... Let’s say I have a website called mysupportsystem.com and I've incorporated a third party cloud based ticketing system which is fed into the index page via iframe at … | |
Because things, these days, seem a little 'slow' around this forum, please forebare this old post, (that was recently resurrected by an inquiring mind), and humour this 'update', in good faith that this update might be appreciated by some beginning students of C++ ... :) // beginnerBadCppExampleCodeBeforeFixedUp.cpp // 2013-08-14 // … | |
<script type="text/javascript"> function check() { var select1 = document.getElementById("from"); var selected1=[]; for(var i=0;i< select1.length; i++) { if (select1.options[i].selected) selected1.push(select1.options[i].value); } for (var j=0;j<select1.length;j++) { document.write(selected2[j]); } } </script> <!--[if IE]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <table width="70%" height="30%" align="center"border="1" style="border-collapse:collapse;"> <tr height="300"> <td height="256"><p><center>YOUR SCHOOL IS FROM </center> </p> <center> … | |
Hello sir iam trying to upload the image in database..this is my code <html> <head> <body> <form action="" method="POST" enctype="multipart/form-data"> <input type="file" name="image" accept="image/jpeg"> <input type="Submit" name="submit"/> </form> <?php if(isset($_POST['submit'])) //connecting to database $db = mysql_connect("localhost:3306","root","") or die(mysql_error()); //selecting our database $db_select = mysql_select_db("tutorial",$db) or die(mysql_error()); $imageName = mysql_real_escape_string($_FILES["image"]["name"]); $imageData … | |
Hi. I just wanted to know if there is anyway to make a textbox recognise if there is text or not. I don't want it to be textbox1.text = "". Is there a legitimate way? | |
Hi fellows i want to know how can i update all products once by using sql querry in opencart | |
Hi, I have avalue like 2.90 i want the value to be round off to 3.00 Can u help me out Rajiv | |
I use image component to display a picture for JPG,but it is lost a color.why I never meet this. I can't to upload picture to this forum. | |
Hi guys, I'm working on a side project for a friend and I'm looking for a C++ library that allows me to put bunch of paragraphs in a PDF format. Anyone know any good libraries that can do this as simply as possible? It will be just paragraphs and paragraphs … ![]() | |
Notice: Undefined index: uname in E:\xampp\htdocs\test.php on line 4 . This error accourd Data Base CREATE DATABASE IF NOT EXISTS `cms_project` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `cms_project`; -- -------------------------------------------------------- -- -- Table structure for table `user_info` -- CREATE TABLE IF NOT EXISTS `user_info` ( `id` int(10) NOT NULL … ![]() | |
I have boolean value either class a or class b.. if those given condition are fulfilled then i want to have class a label in my report else class b. but when i inserted below format in formula field then i got error. this is just a sample. plz provide … | |
So I've been working on this simple FTP Client and i've come across this problem. Basically when the user clicks on the folder, a label changes saying ftpserver.com/folder1 and then when a user clicks on the folder inside that it's meant to be ftpserver.com/folder1/folder2 but the label is only saying … | |
#include<stdio.h> #include<stdlib.h> #include<string.h> static int compare(const void *x,const void *y){ return strcmp(*(const char**)x, *(const char**)y); } int main(){ FILE *p = fopen("file.txt","w"); char ch = '\0',**c = (char**)calloc(6,sizeof(char*)); int n[6]={0},i=0,j=0; fprintf(p,"jack\nakki\njohn\nrachael\nrobin\ntom"); fclose(p); p = fopen("file.txt","r"); while(1){ while((ch=getc(p))!= '\n'){ if(ch == EOF) break; putchar(ch); n[i]++; } printf(" %d\n",n[i]); if(ch == EOF) … | |
Hi. First Post... Just need some help with this program I'm doing.. I've been programming a FTP Client and i've got the base done but i just have one problem...I've added a listview with 3 columns. 1st column is File Name, 2nd column is File type and the 3rd column … | |
Ok so what i want to do is break up a string after the lenght of the string is = to 160, then i want to add a line break..but all this needs to be done in the Select...can anyone help me with this thankx in advance select case len(COD_P2_Q1) … ![]() | |
Hi Everyone, Been a few years since I had to post anything here so I'm glad to be back. I've been asked to do a report to show vouchers that have been issued and presented for July (this year and last year). I have done this SQL: SELECT tblOutlet.OL_NAME, Format([VI_TRANSACTION_DATE_TIME],"mmmm … | |
i've just given a script to update and maintain by my manager, but its bash and i dont know that much about it.. i currently have a script that looks through .txt files for given serials that then reports to a php webpage. within this script we have around 20 … | |
Hey guys, I havent coded visual basic in a long time I am using access 2003 and doing some code under a form. I have a button that is named system Setup and when you click on it it opens up and another form that has three comboboxes and a … | |
Hi, Can anyone help.. I iam creating a UDF Script in SQL 2005. But i have a mesaage saying "Select statements included within a function cannot return data to a client" Here is my whole code.. set @SubjectString = 'The quick brown fox JuMp over the lazy dog.' set @CategoryString= … ![]() | |
I'm pretty comfortable with "C", but where I lack, is understanding what types of options must be passed to compiler to produce the tightest code possible. Here is an example of a formula in "C"; int ADDR = VIDEO_BASE + (WND_X + POS_X) + ((WND_Y + POS_Y) * SCR_X) * … | |
I will like to send sms to query numbers from a query | |
i've being trying to fix the error in my code for quite some time but am unable to resolve one or two of the errors like expected primary-expression before 'public' main.cpp:211:22: error: expected ';' before 'public' main.cpp:216:23: error: expected '}' before 'else' i am a beginner in programming # include<iostream> … | |
Hi. Please could anyone help me look at this code and tell me why the image is not getting drawn? I have already cross-checked the path, and it is alright, as it does not throw any exception. Thanks in advance. class PotPanel extends JPanel{ public PotPanel(int width, int height){ Dimension … | |
Hi All My query is very simple. I have a data file with two fields only in EXCELL.( Fields are Name and Address) 1. Import this file in MSACCESS 2007. 2. Creat a Form in VB2008 Express edition. 3. Fetch the data from database file. 4. How to distribute/install this … | |
hi can anyone tell me how do i put load linq query into datatable then populate into datagridview? my codes are as follows: Dim dt As New DataTable '' Create 3 typed columns in the DataTable. dt.Columns.Add("ConflictingPaper", GetType(String)) dt.Columns.Add("Numberofstudents", GetType(String)) dt.Columns.Add("AdminNo", GetType(String)) 'Dim query1 = (From a In dt3 Group … | |
Hi All, I'm trying to loop through and open PDFs in a folder using Java. I have the following code: import java.awt.Desktop; import java.io.File; import java.io.IOException; public class OpenPDFs { public static void main(String[] args) throws IOException { // TODO code application logic here String fp; fp ="S:\\Economic Forecasts\\Fcst13\\SourceForecasts\\"; File … | |
Hi there.... I need help with a regex, I need a regex to check if the qualification types are valid, e.g. Bachelor's degree, Honours degree, National Diploma, B.Tech(BACHELOR OF TECHNOLOGY), etc... I have to check if the user's qualification matches the reqiured qualification. I have: if($user_qualification == $required_qualification){ //do something … | |
#include<stdio.h> #include<conio.h> #include<string.h> struct { int num1,num2; char s1; int *ptr; int abc[5]; }a[2]; void main() { int start, last; start=&a[1].num1;//error last=&a[0].num1;//error printf("\nsize of structure :%d bytes",start-last); getch(); } getch(); } | |
Hello there, I have problem as: have two tables **Candidate** and **candidate_interview** for perticular vacancy_ID , Candidate's status becomes "In Proces" and when his interview is schedule , entry is added in candidate_interview table againt that vacancy with status In Process. now what i want is , such candidates whose … | |
Private Sub btnload_Click(sender As Object, e As EventArgs) Handles btnload.Click Dim sqlquery As String = "select frmStudentReg.regno,nursery.rollno,[nursery.nepali(writing)],[nursery.nepali(oral)],[nursery.maths(writing1)],[nursery.maths(oral)],[nursery.maths(writing2)],[nursery.english(writing)],[nursery.english(oral)],[nursery.physical_edu(oral)],[nursery.creative(oral)] from frmStudentReg,nursery where frmStudentReg.regno=nursery.regno" Dim sqlcommand As New OleDbCommand Dim sqladapter As New OleDbDataAdapter Dim table As New DataTable With sqlcommand .CommandText = sqlquery .Connection = conn .ExecuteNonQuery() End With With sqladapter .SelectCommand … | |
Ok, so I am trying to write a code that will find the attributes in a html tag using lists and splitting them up. Unfortunately its giving me a hard time with the added quotation marks. [CODE] def find_attribute_value(html_tag, att): '''Return the value of attribute att (a str) in the … | |
Hi there, I have a problem with one of my websites. Some users are complaining that the site wont load in IE9 when others are saying it works fine in IE9. Some people report a 404 error, others report a 500, and some people are saying the page is just … | |
Hi..I have a problem on database insertion:( How to prevent duplicate record insertion on database while refreshing a webpage? I had tried the following code,but it also resubmitting the form data. [CODE] if(isset($_REQUEST['add_cat'])) { //code for db insertion } [/CODE] Thanks in advance | |
I have renderer a JPanel at the fourth column of my JTable. I need to draw an image Dynamically. I have used this code to get the component...... at certain row and column..... JPanel cPanel = (JPanel) jTable.getCellRenderer(0, 4).getTableCellRendererComponent(jTable, jTable.getValueAt(0, 4), false, false, 0, 4); Graphics graphics = cPanel.getGraphics(); When … | |
So working on something and it is running on asp.net so this page is refreshing a lot. It has numbers in a textbox that have been counted and keep changing all day long. What I want to so the textbox witht he highest number is turned green. int[] MyNumbers = … | |
The query is return an empty value on the frist row which means that the supposed value in the first row is in the second row , etc etc . How do i correct this? $query1 = "SELECT * FROM opentrades"; //You don't need a ; like you do in … | |
Hi all, I've a problem fixing the syntax error. I'm doing a function, randomGraphGenerator(int n) that will generate non-negative weighted complete graph with n vertices. Could you help me out on this. Many thanks in advance... public class randomGraphGenerator { private final int n; private int E; Private Bag<Edge>[] adj; … | |
Please can anyone explain clearly.... what is the difference between session and httpcontext.current.session and application variables? Thankyou in advance... | |
$resFile = &getFileName($ARGV[0]); $fileType = &getFileType($ARGV[0]); $table = &getTableName($fileType); could u please tell me as to what these commands are doing? also , if I convert them to shell script,will thsese work ? there's a perl script that Im trying to convert to shell script. resfile=getfilename $1 filetype=getfiletype $1 table … | |
case 'forward': $id = $_REQUEST['id']; $con = mysql_connect('localhost', 'root', '') or die("error in mysql connect"); mysql_select_db('database', $con) or die ("error in select db"); if ($con) { $query = "select * from signup1"; $runQuery = mysql_query($query, $con) or die("abc"); while ($abc = mysql_fetch_assoc($runQuery)); { echo "<div>$abc[ID] $id</div>"; } } break; ------------------------------------------------------------------------ … | |
Currenlty i have learned html5 and css3 from different sites no one give complete tutorials about everything and doesn't made me satisfied when i see uniques combinations of tags and and some that i don't know i totally get disappointed.People have done great work only with html and css and … | |
i have a datagridview and a button on my form. when values are entered into the 2 cells of the datagridview and the button is pressed, the numbers are multiplied and the result is displayed in the third cell. this works alright. i now want the multiplication to be done … | |
Hi friends, I displayed some items on my dropdown list.And users are allowed to select multiple items in the drop box. After that, If a button is clicked, I have to execute a single sql code. Say for eg, update table_name set flag='y' where field_name='[Dropdown selected items]' Please help. Thanx … | |
Can anybody tell me Why I click on button to submit form -> it works, but when I use javascript to auto submit -> it failed ? I have this form on aaa.com, it submit to bbb.com/result.jsp (another domain) <form id="myForm" name="myForm " method="post" action="www.bbb..com/result.jsp"> <input name="var01" value="var01 "> <input … ![]() | |
Okay i have 2 variable named bid price and offer price . I need to fill in the values into the variables through cases. For each row of data ,i want to retrieve the rates for the currency pairs (eg. eur/usd,audusd) . I have 2 values for each currency for … | |
How to create multiple-choice questions in java using a certain time? | |
I am developing a web page, and every link in my tab list that is: Home, about us, contact us, testimonies all should just be changed in the into a certain portion of the page contacting the server apart from <iframes> of html how can i get this task done … | |
Displaying a description based on code in database C#, database, WindowsApplication, Hi everyone, i have a question how do i input the descriptions columns if i type the number based on my database in code columns, i already retrieve the code from database, but now i also want to display … | |
I need to get the sum of two numbers but i do not know how example > **what the result should be:** 1,000,000 + 2,000 = 1,002,000 > **my code's result:** 1,000,000 + 2,000 = 3 > It seems that my code only adds the numbers before comma (,) My … |
The End.