199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dili1234

Function cek_code(ByVal pid As String) As Boolean Dim sql As String = "select count(P_Id) from Profit_margin where P_Id = '" & ComboBox2.Text & "'" Dim cmd As New SqlCommand(sql, myConnection) Dim dr As SqlDataReader Dim value As Boolean = False Try myConnection.Open() dr = cmd.ExecuteReader(CommandBehavior.CloseConnection) While dr.Read If dr(0) > …

Member Avatar for Dili1234
0
165
Member Avatar for adityasingh95

the question is: Wrtie a program to modify the elements of an array such that the elements that are multiples of 10 swap with the values present in the very next position. I wrote the following code: #include <iostream.h> #include <conio.h> #include <stdio.h> void main() { clrscr(); int a[20]; int …

Member Avatar for adityasingh95
0
207
Member Avatar for jarrodoliver1

Hey guys, Im quite new to vb and i've got a school project. Im making a game somewhat similar to the 'idiot test' series. I'm trying to make a counter that will count the number of clicks, which will also be displayed. I'll obviously display it with a label and …

Member Avatar for AndreRet
0
120
Member Avatar for PinoyDev

Good day! I just want to ask on what is the best ADO connection string to connect to MS Access fast? and what is the fastest way to create it? And also, where in the project to best put it so that all forms in the project will use it …

Member Avatar for AndreRet
0
1K
Member Avatar for sythez.orgz

Can you guys please tell me whats wrong on my code. Im trying to get the data of Title, Author, Price, Stock from DB and output it on my textboxes. Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Csrp2_DB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" conn.ConnectionString …

Member Avatar for Dili1234
0
1K
Member Avatar for ronnel09

i just wanna ask if can i format centered the outputs of turbo c? just like when you do in microsoft word. thank you!

Member Avatar for WaltP
0
301
Member Avatar for chandnigandhi
Member Avatar for np complete
0
181
Member Avatar for azgold

Having a issue with coldfusion. I just need a simple way to see if a date has passed and if so to update a field in a database. basically I have events showing on a page but want to remove the event automactically when it is over. Thanks for the …

Member Avatar for jardrake
0
127
Member Avatar for Tko_1

hello again, so i have a countdown in which i would like to add a automatically redirect to a specific url when timer hits 0 , as of now timer just goes into the negative.. <script type="text/javascript"> today = new Date(); BigDay = new Date("8,26,2012"); msPerDay = 24 * 60 …

Member Avatar for Tko_1
0
319
Member Avatar for nova37

hello i have little roblem with my php code to me its seems to be ok but its not working function bing_backs($url){ // to get backilinks $url = "http://www.bing.com/search?q=link%3A$url"; $total = file_get_contents($url); $match_expression = '/<span class="sb_count" id="count">(.*?)<\\/span><\/div>/im'; // preg_match($match_expression,$total,$matches); preg_match_all($match_expression, $total, $matches); echo $n_clean=$matches[1]; return $n_clean=clean_me($n_clean); } function clean_me($numb){ // …

Member Avatar for nova37
0
144
Member Avatar for thak123

I tried $('#page18').bind("load",function() { alert("total Type") ; }); and also i tried doing this $('#page18').ready( function() { alert("total Type") I want to call a function on Load of a Html5 Jquery Mobile page. I have various Div with <data-role="page"> Each of them has Id.Now with navigation when I reach on …

Member Avatar for Sogo7
0
159
Member Avatar for hwoarang69

it would be help me out alot if some one could take the time to teach me know to create 2d game from start to end. i want to create this game in java or c++ but it has to be 2d side scroller by using 2d array as map …

Member Avatar for zeroliken
0
139
Member Avatar for mlucianpavel1

Hello. I'm trying to make a dropdown script to work and I'm stuck to a point where I feel the answer is simple ,but I simply can't see it . The script should display data from the MySQL Database when I choose the last option but I don't know how …

Member Avatar for mlucianpavel1
0
470
Member Avatar for glenford11

while at work i had nothing to do so i wrote this simple python script that uses the dbm module to store user information its not perfect but im sure someone will find it helpful. import dbm,sys from time import ctime class Database(object): def __init__(self): self.userData = dbm.open("User Data", "c") …

Member Avatar for glenford11
0
301
Member Avatar for mkarmi

I have changed root directory in xampp ( the documentroot and directory) and restart it, it worked but when I click on admin I got "Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again." …

Member Avatar for mkarmi
0
78
Member Avatar for c_program_user

I am trying to pass a pointer to a 3D array to a function in which I want to access an array element using pointer arithmetic. Define the array: const unsigned char TS_list_string[2][2][3] = { "abc", "def", "ghi", "jkl", }; Define the function void process_ts(const unsigned char *T1) { unsigned …

Member Avatar for c_program_user
0
178
Member Avatar for kovacsakos

I have an array with a lot of numbers. How can I create intervals from these numbers?

Member Avatar for WaltP
0
138
Member Avatar for nitishok

I have declared a structure st below with a struct variable arr[], an array of structs. Im trying to assign the value 1 to the 'num' variable, and values 1 to 10 to 'val' variable of the first 10 locations of array arr[]. And value 2 to 'num' and values …

Member Avatar for WaltP
0
289
Member Avatar for love_you_4rever

I got stuck :(. Can anyone tell me the **purpose** of this following code please? (Suggest descriptive names for the function and its parameters.) int mystery(int x, int y[], int z) { for (int i = 0; i < z; i++) { if (y[i] == x) return i; } return …

Member Avatar for WaltP
0
114
Member Avatar for kimbula...

I have defined a procedure under the click event of the button as follows. [code] Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click [COLOR="Green"] 'Validate Department[/COLOR] If cmbDepartment.SelectedItem = Nothing Then MsgBox("Please select a department", MsgBoxStyle.Information, "Notification") cmbDepartment.Focus() Exit Sub End If End Sub [/code] I …

Member Avatar for chickss
0
25K
Member Avatar for nabeelbhutto

any one help me how can i do this plz plz guyz help me don't say do it by your self i could'nt understand thats why i am asking from you if i know then why i ask i don't know thats why i am asking friends plz help me...!! …

Member Avatar for sfuo
0
732
Member Avatar for mcuk

Hi, I am looking for advice on the best place to start with programming. I work for a web design company and currently create database powered sites using PHP and MySql. I seem to learn very quickly with the right resources. When I started many years ago in PHP, I …

Member Avatar for abhishekde.nasa
0
116
Member Avatar for weirdCreature7

Pls. help me with this code :) the alert box is not appearing and it goes directly to homebody_admin.php I want the homebody_admin.php to appear after I click the ok button on alert box pls help. Your help is highly appreaciated! thanks in advance :) if($password!= mysql_result($result, 0)) { echo …

Member Avatar for weirdCreature7
0
180
Member Avatar for zeusprog

As usual I know I'm probably doing something stupid. I'm trying to write the program below but I seem to have handled my queue incorrectly. The problem could be in one of three places; the way i handle moving on to the next node, my addboard function or my printsol …

0
109
Member Avatar for mj89

Hi we are developing the KNN data mining classification algorithm and are unable to proceed after a point. We have been able to calculate the Euclidean distance metric and find the three closest neighbours to an instance and ordered them in ascending order. However, with the help of the distance …

Member Avatar for philfv
0
345
Member Avatar for triumphost

Why does my checksum not work? I use it on my computer with ATI graphics and it works perfectly fine. When I switch to a computer with Intel graphics, it starts doing random values and they aren't the same. I switch back to my comp, the values are still the …

Member Avatar for triumphost
0
222
Member Avatar for Debi prasad

Hello Friends. i have set my environmental variable path of Microsoft JDBC Driver 4.0 as C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc4.jar and i have also used the url "com.microsoft.sqlserver.jdbc.SQLServerDriver" in my Class.forName(). But still at run time i get the exception java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver. I am using Microsoft sql …

Member Avatar for NormR1
0
304
Member Avatar for Steelchords

This may not be the best location for this thread, but it's 5 am, I've been working on this for almost a day and a half straight, and I'm pure stumped. For a custom MS Access .mdb program, the database properties are locked out. In order to fix the database …

Member Avatar for jaguararo
0
274
Member Avatar for CarterLangley

This has got me very confused. Here is the code but it is not doing what it should do!! echo "<span class='vehicle_table_normal'>";$str_bodystyle=str_replace("," ,"<br />",$bodystyle);$str_bodystyle=str_replace("-" ,"&#45; ",$bodystyle);$str_bodystyle=str_replace(" - " ," &#45; ",$bodystyle);echo $str_bodystyle; The first replace is the most important for display purposes at this moment. The next two are because …

Member Avatar for CarterLangley
0
119
Member Avatar for barce.barcelona.923

Good day everyone, so here, i have a problem with my repeater control's sql query, what i would really want to happen, is i have a randomized number from 1 to 60, that will tell the database which test question to select, (if it's only one, it's not a problem, …

Member Avatar for kvprajapati
0
144
Member Avatar for kovacsakos

I would like to make a memory allocation: `(*matrix)[i]=(int*)malloc(sizeof(int)*sz);` But I have got an error message: Invalid operands to binary * What should be the problem?

Member Avatar for kovacsakos
0
179
Member Avatar for hr.Ziggurat

Hi. i'm trying to login to an asp login page via php and curl... i wrote this code by google help. i expect see originale login page whith invalid username and password message , but i see only 'Object moved to here.' error. <?php $urlLogin = "http://xxxx/LoginPage.aspx"; $nameUsername='txtUsername'; $namePassword='txtPassword'; $valUsername …

Member Avatar for hr.Ziggurat
0
2K
Member Avatar for bhawnanarang91

protected void button1_Click(object sender, EventArgs e) { SqlConnection con = null; con = new SqlConnection(@"Data Source=(LocalDB)\v11.0 ; AttachDbFilename=C:\Users\Bhawna\Documents\Visual Studio 2012\Projects\WindowsFormsApplication2\WindowsFormsApplication2\Database2.mdf;Integrated Security=True ; User ID=sa ; Password=123"); try { con.Open(); String Sqlquery = (" Insert INTO adb (Studentid) values (@S)"); SqlCommand sqlupdate = new SqlCommand(Sqlquery, con); sqlupdate.Parameters.AddWithValue("@S",Convert.ToInt16(textBox1.Text)); //sqlupdate.Parameters.Add(new SqlParameter("@S", SqlDbType.VarChar, 50)).Value …

Member Avatar for Momerath
0
204
Member Avatar for gacoekchip.pokher

hi all, help me please. CREATE TABLE `a_table` ( `id` int(11) NOT NULL, `phone` varchar(20) NOT NULL, `group` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `a_table` VALUES (1, '111', 'cd'); INSERT INTO `a_table` VALUES (2, '222', 'cd'); INSERT INTO `a_table` VALUES (3, '333', 'cd'); INSERT …

Member Avatar for veedeoo
0
132
Member Avatar for alittle

I keep getting this error message You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Hits and had 24,000 listener sessions; over 30 days. Get 5 commercials a day' at line 7 <!DOCTYPE …

Member Avatar for alittle
0
253
Member Avatar for Xeros

Hi. I have completed a program that plays a Zero Gravity Floating Connect Four. I.E. it can take checkers from the bottom, top, left, or right sides. It works, however, the win conditions do not seem to be working. I am not sure where the problem lies. #include <iostream> using …

Member Avatar for WaltP
0
1K
Member Avatar for Pyler

Could some one point out what's wrong with the classes of this program? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor int surface_area(); int volume(); void set_dim(int ,int, int); }; //implementation box::box(){ int height; int width; int length;} box::int surface_area(){ int …

Member Avatar for WaltP
0
2K
Member Avatar for davy_yg

Form Captcha <script> function checkForm() { if (document.forms.myphpform.elements['yname'].value.length == 0) { alert('Please enter a value for the "Name" field'); return false; } if (document.forms.myphpform.elements['email'].value.length == 0) { alert('Please enter a value for the "Email" field'); return false; } if (document.forms.myphpform.elements['message'].value.length == 0) { alert('Please enter a value for the "Message" …

Member Avatar for davy_yg
0
1K
Member Avatar for napninjanx

Like you know the ones like Imovie Sony Vegas Pro Adobe Premiere Pro CS6 Adobe Premiere Elements 10 What programming language are they designed with?

Member Avatar for napninjanx
0
132
Member Avatar for matt.w.deakos

What I want to do is use my variable in creating a lists name. I'm not sure if that's possible, but if it is my goal is to have it look something like this: i = 3 asdf = ['00','34','43','61','35','64','25'] asdf + i = [] # So in this case …

Member Avatar for TrustyTony
0
149
Member Avatar for hazelmayt

i'm just a newbie in dealing with master details in datagridview. i have a two datagridview. first is the employees record and the other one is file(which contains the file path of csv files). my backend is ms access database.one database with two tables. Now, when im going to click …

Member Avatar for hazelmayt
0
258
Member Avatar for Epicurus

Hi! The keypresses in my new project does not seem to be registered. I've never had this issue before and I don't think it is SDL:s fault this time. Here is the code in main: #include <cstdlib> #include <iostream> #include <SDL.h> #include "playertank.h" int main ( int argc, char** argv …

Member Avatar for BeauBeck
0
252
Member Avatar for manishanibhwani

if I write the following code.. float a =1.3; double b=1.3; if(a>b) printf("hii"); else printf("hello"); the o/p comes hii...but if I change the values to 1.7 the output comes hello...can any1 explain the reason????if precision is to be taken into account then everytime double should be greater..

Member Avatar for rubberman
0
147
Member Avatar for HunainHafeez

Hi, guys i m already done with DB part of my project !!! but confused here !!! (Check attached image) Admin will enter all relevant details in applicant-scrutiny table for each user ........but i want that value for each userid (foreign key) should be copied automatically !!! NOTE: USER table …

Member Avatar for HunainHafeez
0
128
Member Avatar for logicmonster

I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered. I just started C++ this week and have no prior experience …

Member Avatar for lance p
0
312
Member Avatar for Cameronsmith63

Hi, can anyone help me with paging on a gridview please? <asp:GridView ID="GridView1" CssClass="gridStyle" runat="server" AutoGenerateColumns="false" CaptionAlign="Bottom" GridLines="Horizontal" onselectedindexchanged="GridView1_SelectedIndexChanged" OnRowEditing="GridView1_RowEditing" ShowFooter="False" AlternatingRowStyle-BackColor="White" onrowcreated="GridView1_RowCreated" RowStyle-HorizontalAlign="Center" AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" PageSize="5"> <RowStyle BackColor="#DEDFDE" ForeColor="Black" /> <Columns> <asp:CommandField ShowEditButton="True" ButtonType="Button" ItemStyle-Width="40px" ControlStyle-CssClass="button" ControlStyle-Width="43px" ItemStyle-HorizontalAlign="Center" /> <asp:CommandField ShowSelectButton="True" ButtonType="Button" ItemStyle-Width="40px" ControlStyle-CssClass="button" ControlStyle-Width="43px" ItemStyle-HorizontalAlign="Center" /> <asp:BoundField DataField="ID" …

Member Avatar for nakor77
0
199
Member Avatar for phorce

Hello, I'm just wondering whether or not, it is possible to get the vector Dimensions without them being set? Basically, I'm converting some matlab code and there's a function size(VECTOR) which get's the dimentions of the vector being passed. For example: #include <iostream> #include <vector> using namespace std; int main(int …

Member Avatar for WaltP
0
126
Member Avatar for cubalibras

Hello all, I'm having a bizarre problem with the most basic of logins. I'm using a function to pass two parameters, just email and password but it just will not work and I can't understand why. I ran the query in the database and it returned a COUNT value of …

Member Avatar for cubalibras
0
148
Member Avatar for rgutierrez1014

I'm using a code snippet from the Invision Power Board forum software on my own site to, sort of, connect the two. I have a "member bar" that I wanna put on every page in my website that has a login link, profile link, etc. I've already done this, the …

Member Avatar for almostbob
0
277
Member Avatar for Robert955

I've created this code which should look in the Songs folder and add any .mp3 file to a list. However when I test it it keeps saying File not found and pointing to the exact file it cant find with the name of the song while I dont mention this …

0
190

The End.