199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hopetob

*by the name of Allah, .... only when you don't know how to compelete , just you have to ask others how shall i do ??? i really don't know ho to do or with the right words by what ??? books , or videos .. tutorials or training at …

Member Avatar for Squidge
0
104
Member Avatar for LD Company

Hello programmers! My Library Software with DataBase is 99% finished and I have an error. When I click Save or Delete I got error message: **Cannot insert explicit value for identity column in table 'Table1' when IDENTITY_INSERT is set to OFF.** I want to know **HOW** to set IDENTITY_INSERT to …

Member Avatar for Reverend Jim
0
226
Member Avatar for andyy121

in database i have added the random and activated with boolean type and the defaul was set to As defined with 0 value.when i click log in it must desplay this: your accoun si not activate.Please check your email. but i show you are in click here to click here …

Member Avatar for andyy121
0
194
Member Avatar for shkr

hi, i have a file which contains dfca2345f1278aba11110012567ade21 i also have a structure i need to read from file and print the values of struct in decimal form (i.e s.a=3754566469 , similarly b,c,d,e) so i ve come up with only this, i am not getting how to populate struct and …

Member Avatar for deceptikon
0
139
Member Avatar for diafol

Hi all. AM having a little issue with regex. Not one of my strongest skills! I'm trying to produce a simple translation system that doesn't require arrays, gettext etc. It basically has this structure: $content=<<<CONTENT <p>{{Dyma destun||Here's some text}}</p> ... CONTENT; So the page content is held in a var …

Member Avatar for diafol
0
323
Member Avatar for Oneryavuz

i'm tring to make a diary. i need nice background. user could edit text anytime if he/she wants. but i cant do that, because i cant make transparent background on textbox or i cant make editable label. is there any way to do transparent background on textbox? how can i …

Member Avatar for Reverend Jim
0
1K
Member Avatar for napninjanx

So all a person needs Is a home server in his office or house? and programming language to build a website and make a blog website for example or a game website. So i just get a server and start building my blog website for example... Like for example Facebook …

Member Avatar for almostbob
0
244
Member Avatar for delta_frost

Which of the following code is likely to take less time to get executed? /*Format 0*/ main(){ int a=3,b=5; printf("%d",a*b); } /*Format 1*/ int mult(int a,int b){ return a*b; } main(){ printf("%d",mult(3,5)); } /*Format 2*/ inline int mult(int a,int b){ return a*b; } main(){ printf("%d",mult(3,5)); } As of now,I understand …

Member Avatar for deceptikon
0
189
Member Avatar for sanghai45

Hi community, I wanted help in making shortest path Finder for non grid based game. Below is the image attached of which i wanted to do shortest path finding. There are nodes and each node may link to 5 or 6 nodes. I have no idea which algorithm will get …

Member Avatar for Despairy
0
167
Member Avatar for davy_yg

After I press edit on the previous page, it will carries me to this page: http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=2 //Load berita if (!empty($_GET['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_GET['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id = $data['id']; $page = $data['page']; $judul = $data['judul']; $news = $data['isi_berita']; echo "variable"; echo $id; …

Member Avatar for davy_yg
0
70
Member Avatar for mhupadhyay

I have a database created in mysql iwant to create a backup utility for backing up the data on a routine base

Member Avatar for simplypixie
0
134
Member Avatar for davy_yg

Hello, I am trying to print the thumbnail out how? I still have error on the thumbnail. Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\RustoleumCustomCMS\administrator\image_gallery.php on line 147 <table id="admintable" border="1" cellpadding="2" cellspacing="0"> <tr> <th>Image</th><th>Path</th><th>thumbnail</th><th>Action</th> </tr> <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'>"; echo '<td>'.$data['image'].'</td>'; echo '<td>'.$data['path'].'</td>'; …

Member Avatar for davy_yg
0
86
Member Avatar for inthiran115

#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> #include <windows.h> using namespace std; class Subject { protected: string sub_code; string sub_fac; public: Subject(string sub_code="", string sub_fac="") { this->sub_code = sub_code; this->sub_fac = sub_fac; } string getSubCode() {return sub_code;} string getSubFac() {return sub_fac;} }; class Student { protected: string …

Member Avatar for np complete
0
277
Member Avatar for ghoshsp

I want to input text in one TextBox and as soon as I finish my input, it should do some background work and show the results on the other TextBox. I do not want to use any 'button', 'enter', 'tab' or any other triggering mechanism. The end of input in …

Member Avatar for saphiro
0
98
Member Avatar for sanghai45

I want to make level editor in which I want it to have three buttons CreateNode , Reset Node Create Node - It will add node in screen Reset Node - It will reset all the links from the Node And when the node is created on window if I …

Member Avatar for sanghai45
0
228
Member Avatar for Khav

Hi I have a vb.net form connected to an access database using vb.net .All my other button except for the add new button If Valid = True Then CustomerBindingSource.AddNew() Me.TableAdapterManager.UpdateAll(Me.DB_ShopDataSet) End If I want this code to add a new row to the customer table.However the current code modify the …

Member Avatar for Khav
0
404
Member Avatar for andyy121

i have added the $random in line 53 and '$random' ,'0' in 57 line inside the (),in the database i have added random and activated with boolean value which is 0 or 1,and when i click the previu/debug in browser button it show me this: Warning: mysql_num_rows() expects parameter 1 …

Member Avatar for Atli
0
446
Member Avatar for breezeonhold

I'm getting the exact output I want but I keep getting an error that says "Run-Time Check Failure #2 - Stack around the variable 'c' was corrupted." Now I have to for this assignment use strncpy, and strncat and I'm trying to append two strings togethor with the max amount …

Member Avatar for m4ster_r0shi
0
144
Member Avatar for hbmarar

Hi , I googled a lot and couldnt derive a proper picture. 1. How is sendmail, SMTP related? 2. Is it required to have SMTP relay configured for sendmail to function? 3. Would sendmail have a standalone existence irrespective of OS flavor? Please suggest me on the above and it …

Member Avatar for sellccvus
0
197
Member Avatar for louie540

I have a URL shortner script which works fine until I submit a link containing "http://", which gives me a 403 error. I'm new to PHP so you're going to have to go easy on me. My site is http://newurl.us First I tried using str_replace() to stop people from submitting …

Member Avatar for JorgeM
0
199
Member Avatar for bjoy21

This is my code on html. I don't know to to process in my html code in PHP. Can anyone help me?Thanks in advance. <div align="right"> <form action="search2.php" method="POST"> <table> <table border="0"> <h2 align="right" style="Verdana"> Statistic Survey Search </h2> <tr><td>Select Statistic:</td><td><select name="stat"> <option>--Select One--</option> <option value="Yes">Yes</option> <option value="No">No</option> <option value="Undecided">Undecided</option> …

Member Avatar for coreyavis
0
129
Member Avatar for jonkeeler

Hi, The code below selects all items in a listview control,fine,but I was wondering how I could code to select all but the very last line in the array. [CODE]Private Sub SelectAllToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem1.Click Dim i As Integer Dim lvItm As ListViewItem Dim …

Member Avatar for Reverend Jim
0
1K
Member Avatar for vaayaa1

int a = 10; int b = ++a++; printf(b); The code when compied shows lvalue error.

Member Avatar for WaltP
0
124
Member Avatar for magicmarkuk

I have a script that is requires a cron job. The script has the option to run a manual cron job which works fine and the option of seting up an automatic cron job which is where the problem is. The support from the scripts authors is poor as they …

Member Avatar for magicmarkuk
0
685
Member Avatar for kkcaddy

import java.util.*; public class EmployeeTest { public static void main (String[] args) { Employee[] staff = new Employee[3]; staff[0] = new Employee("Carl Cracker", 75000, 1987, 12, 15); staff[1] = new Employee("Harry Hacker", 50000, 1989, 10, 1); staff[2] = new Employee("Tony Tester", 40000, 1990, 3, 15); for(Employee e : staff) e.raiseSalary(5); …

Member Avatar for NormR1
0
195
Member Avatar for breezeonhold

I can't find the bug in my code. The error that pops up says "Expression: invalid null pointer". Visual studio isn't giving me any line to go to or really any help except once I run the program the error above pops up. The weird thing is everything compiles correctly …

Member Avatar for breezeonhold
0
278
Member Avatar for bpl1960

I'm having a hell of a time trying to print from an RTF box. I can do it, but for my test file (Lewis Carroll's "Fury said to a mouse..." with each word on a different line), I keep getting the first two pages printed on the same page, completely …

0
188
Member Avatar for samohtvii

Hi all, I have a simple program: #include<iostream> using namespace std; 6 int main() { char x; do { scanf("%c", x); } while (x != 'y'); return 0; } and for some reason when i gcc test.c i get "test.c:1:20: fatal error: iostream: No such fiel or directory compilation terminated." …

Member Avatar for Ancient Dragon
0
803
Member Avatar for rithish

#include<stdio.h> void quicksort(int [10],int,int); int main(){ int x[20],size,i; printf("Enter size of the array: "); scanf("%d",&size); printf("Enter %d elements: ",size); for(i=0;i<size;i++) scanf("%d",&x[i]); quicksort(x,0,size-1); printf("Sorted elements: "); for(i=0;i<size;i++) printf(" %d",x[i]); return 0; } void quicksort(int x[],int first,int last){ int pivot,j,temp,i; if(first<last){ pivot=first; i=first; j=last; while(i<j){ while(x[i]<=x[pivot]&&i<last) i++; while(x[j]>x[pivot]) j--; if(i<j){ temp=x[i]; x[i]=x[j]; …

Member Avatar for maurya10
0
351
Member Avatar for hakeemtunde

guys i wil be glad if someone can explain how i can go about handling binary data, like parsing an image to be dispaly on a browser.

Member Avatar for DarkMonarch
0
110
Member Avatar for fRodzet

Greetings, I'm a bit new at Visual Basic 2010, and i have one main problem. I want to creat a Calculator for a game, however i have issues getting it to work. When i select a setting from my main Combobox i want it to add different settings for the …

Member Avatar for Reverend Jim
0
296
Member Avatar for Dark_Omen

Is there a way to convert a double to string. I tried to do it like this x.toString() and it didnt work as well as implicitly converting it.

Member Avatar for JamesCherrill
0
484
Member Avatar for iskivgs

Is it possible to store the value of a variable? For example the value of a string variable: [code]strImgFile[/code] containing a file destination, that is saved along with the program, so that the next time the user runs it, the value of the variable [code]strImgFile[/code] is restored.

Member Avatar for Emos
0
186
Member Avatar for michaelzip

Is it possible to retrieve a text from a URL or page content by using something like ImageUrl property on the Image Control? Ex in image: <asp:Image runat="server" id="Image1" **ImageUrl="getImage.aspx?id=2"** /> Let's say I have this code on getText.aspx Imports System.Data Imports System.Data.SqlClient Partial Class getText Inherits System.Web.UI.Page Protected Sub …

Member Avatar for michaelzip
0
263
Member Avatar for 47pirates

Why the method of the following class is getting invoked several times even if the condition is false.Please help me with my code... public class PRDDayBook { int remX; public PRDDayBook(int x) { remX = x; PrinterJob pj = PrinterJob.getPrinterJob(); PageFormat pf = pj.defaultPage(); Paper paper = new Paper(); double …

Member Avatar for 47pirates
0
105
Member Avatar for rotten69

Hi there, Just wondering if there is a way of inserting tuples into a table without specifying the primary key id. insert into myTable (username, password) values (value1, value2); Ok. When I use the above mentioned statement, it complains about duplicate keys. Anyone know why? shouldn't the key be generated …

Member Avatar for diafol
0
115
Member Avatar for zeusprog

Please how do I convert a string of hexidecimals “10B71356C845FB08E04951AAA2FF9F49” to integer? I tried using getBytes then Integer.valueOf but I got 32 integers instead of 16. Any help would be greatly appreciated. Thank you.

Member Avatar for zeusprog
0
232
Member Avatar for davy_yg

This suppose to load my existing data to the form for editing. Yet, this is not the case, I still see the form empty why is it? The present url: http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=0 //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_REQUEST['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id …

Member Avatar for davy_yg
0
217
Member Avatar for zeusprog
Member Avatar for zeusprog
0
142
Member Avatar for davy_yg

Notice: Undefined variable: confirmation in C:\xampp\htdocs\RustoleumCustomCMS\administrator\admin.php on line 126 if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode'])){ if ($_REQUEST['mode'] == "delete"){ $id = $_REQUEST['id']; $result = mysql_query("DELETE FROM static_page WHERE id =".$id) or die(mysql_error()); $confirmation = ($result) ? "Data telah terhapus." : "Gagal menghapus data."; } } ?> <div align="center"> <div style="width:700px;text-align:left;padding-top:5px;"> <?php echo …

Member Avatar for davy_yg
0
320
Member Avatar for I_m_rude

Can anyone tell me the best way to check the number of bits in a number ? for ex, in 2 set bits are1 , in 3 it is 2. So what is best way today available so as to get that value ? thanks. just give me link of …

Member Avatar for I_m_rude
0
110
Member Avatar for RonKevin

...Just run the program and you'll know whats wrong with it...it gives a -1 value... #include <iostream.h> #include <conio.h> void main() { int array[10],key; cout<<"Enter 10 elements:\n"; for (int c = 0; c < 10; c++) cin>>array[c]; clrscr(); cout<<"\n List of Elements:"; for ( c = 0 ; c < …

Member Avatar for RonKevin
0
341
Member Avatar for Aardwolf

I have this rewrite setting: RewriteRule ^([a-zA-Z0-9_'-]+)$ /index.php?action=$1 but now I need for example to return an error to a register page by $_GET /?action=register&error=1 but with the rewrite rule I can't get a PHP script to work with this URL: /register&error=1 What rewrite rule do I need to make …

Member Avatar for coreyavis
0
297
Member Avatar for rfrapp

Hello, I am trying to fill an array with 20 unique random values between 1 and 60. I know what I need to do to get this to work, but I'm not sure how to do it. Here's what I've got: void fillArray( int arr[], int size) { int arr2[20]; …

Member Avatar for RainbowMatrix
0
2K
Member Avatar for abi_gurl

I'm creating 7x10 array that filled 0's unless it is copied by ships.Currently I'm having a problem in which I'm not sure how to place the ships inside this grid. this is how i've created the map. Please help as I'm a very beginner in c++. Thank you. void displayBoard() …

Member Avatar for abi_gurl
0
171
Member Avatar for kkcaddy

> Quoted Text Here i got this code from a book i am practicing with and when i try to compile it returns the following error EmployeeTest.java:30: incompactible types found : java.util.Date required: Date hireDay = calendar.getTime(); please how do i debug it import java.util.*; public class EmployeeTest { public …

Member Avatar for vinnitro
0
208
Member Avatar for Grandiago

Hi Everyone! I'm a user of Turbo C++ and my professor gave me an activity to make a Fibonacci sequence. No I already have the Code for it and it is working. The only problem is. I don't know how the FOrmula Works. I will show you the Code below: …

Member Avatar for vinnitro
0
309
Member Avatar for caven.chunyen

Hi, I've got a set of folders with each contain many files. I need to extract a specific file extention(.sof) from each of these folders to a new directory(or the same directory in a new folder). Any help is appreciated. Thanks.

Member Avatar for extension wpd
0
317
Member Avatar for davy_yg

Hello, Cek this out: [webpage](http://www.rustoleum-indonesia.com/aerosol-produk.php) It's a static image gallery. I am trying to convert it to CMS and trying to create a CMS for the image gallery. I do not know how to. I have all the images and thumbnail in one folder. Any clue how to? The front …

Member Avatar for davy_yg
0
198
Member Avatar for PinoyDev

Good day! I knew this is easy to all of you guys. But I need the most precise way to parse this string "**45:50"** and store the result in **two dimensional array with int as datatype**. The delimeter is "**:**". Thank you!

Member Avatar for WaltP
0
322

The End.