199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sajithfx

[B]Pagination[/B] It shows following messages Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 55 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 154 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 167 …

Member Avatar for diafol
0
109
Member Avatar for VIPER5646

hi I have successfuly created an access database with vb.net accept it is not password protected. Can someone help me to password protect this DB. Here is the code I use. Thank you [CODE] Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click Try Dim cat As New ADOX.Catalog …

Member Avatar for VIPER5646
0
510
Member Avatar for Hawk123

I followed the suggestion from [ICODE]http://www.daniweb.com/software-development/vbnet/threads/388317[/ICODE] this thread. however i face a bit of a problem in my case i have a combobox at row(i).cells(0) the code seems to take the last new rows where there's not record and shows error the debug error msg is [ICODE]A first chance exception …

Member Avatar for ChrisPadgham
0
175
Member Avatar for Tenaciousmug

[CODE]$(document).ready(function() { $(".alert").click(function() { { var id = $(this).attr("id"); alert(id); $(id).dialog(); return false; } }); });[/CODE] Ok it's alerting the id AFTER it alerts an undefined.. so it alerts "undefined" and then "5" or whatever the number may be. What am I doing wrong?

Member Avatar for fobos
0
264
Member Avatar for richaell

keep getting this error: Undefined index: id in C:\xampp\htdocs\Projeto\edit.php on line 5 But i checked phpmyadmin and i have a index for id, it's in the table. Why do I get this? Never happened before. [CODE] <?php require 'conf/connection.php'; $id = $_GET['id']; $choose_user = mysql_query("SELECT * FROM users WHERE id …

Member Avatar for richaell
0
654
Member Avatar for richaell

I keeep getting this error: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\search.php on line 7 How do I fix? [CODE] if (isset($_POST['action']) == 'Search') { $search = $_POST['search']; require 'conf/connection.php'; $selection = mysql_query("SELECT * FROM users WHERE name '%$search%'"); $number = mysql_num_rows(mysql_query("SELECT * FROM users WHERE …

Member Avatar for richaell
0
113
Member Avatar for AlexTrott

Hello, I'm hoping you guys can help. I have a double linked list, and i am trying to add a bubble sort to it,I am really new to java, I've been able to do a bubble sort with great easy whilst using binary trees, but now i'm using a double …

Member Avatar for JamesCherrill
0
389
Member Avatar for JavaPrograms

Alright, so basically I have this program going, it reads the text file perfectly, I also have some arrays created. Now I need it to store each team's rebounds, assists, and points separately. From there I need to get the mean, median, mode for each section (which will be completed …

Member Avatar for JamesCherrill
0
180
Member Avatar for boris90

Hi, this is my first post here, and I really need some help with my homework. I'm a newbie to Java programming, and I have this assignment: [I]Write an application which reads data from a file about certain items (one row - one item, stored are the integer valued code, …

Member Avatar for DavidKroukamp
0
279
Member Avatar for diamondfist

Hi , i have just started OpenGL. So i am sorry if my question is stupid, but i was trying to move a circle inside a square and was unable to do it . .can you please help me out please ?? [CODE] #include <GL/glut.h> #include <math.h> bool* keyStates = …

Member Avatar for diamondfist
0
235
Member Avatar for Xufyan

OK, i wanted my page to post a random post in every 24 hours , so i found that code over the internet, I was trying to understand the code and added the comments to those lines which i understood, however i am not able to understand the complete program, …

Member Avatar for Xufyan
0
956
Member Avatar for gfp91

hi all i am trying to make a pause in a 2d game on C++ im going to use a message box with answers yes and no..yes to continue and no for main menue. how do i make unsighned short w = the answer to textbox? ps i tried using …

Member Avatar for MandrewP
0
132
Member Avatar for newbyc++

[CODE]#include "Sorts.h" Sorts::Sorts(void) { } Sorts::~Sorts(void) { } void Sorts::insert() { ofstream myfile; myfile.open ("InsertSorted.txt"); starttime=(long)time(NULL); int A[ELEMENTS]={5,2,4,6,1,3}; insertsort(A,ELEMENTS); cout<<endl<<"Sorted list "<<endl; for(x=0;x<ELEMENTS;x++) { cout<<A[x]; } endtime=(long)time(NULL); totalseconds=endtime-starttime; minutes=totalseconds/60; seconds=totalseconds%60; cout<<"\nStart time: "<<starttime; cout<<"\nEnd Time: "<<endtime; cout<<"\nElapsed Time: "<<minutes<<" min, "<<seconds<<" seconds"<<endl;"\n\n"; } void Sorts::insertsort(int A[],int length) { for(int j=1;j<length;j++) …

Member Avatar for daviddoria
0
119
Member Avatar for biogig

guys I've been trying to write this lab for my comp sci class for three days now. i've got to the point where it compiles but when I try to run it a table pops up that's says there's an error somewhere in the program that causes it to abort. …

Member Avatar for daviddoria
0
204
Member Avatar for kbtiger88

[CODE]#include <iostream> #include <ctime> #include <cstdlib> #include <string> using namespace std; int getCardPoints(int value, int & aceValue) { if ((value >= 2) && (value <= 10)) { return (value); } else if (value == 1) { aceValue = 10; // 11 -1 return 1; // Already contain 1 for the …

Member Avatar for daviddoria
0
534
Member Avatar for DarkPyros

im wrote a program to determine weather a triangle is scalene, isosceles or equilateral based on the given side lengths...its not working properly..i.e its giving isoceles when i enter data for an equilateral...etc etc... i fugured it was my logic in writing the program that was missing something....could anyone tell …

Member Avatar for WaltP
0
205
Member Avatar for Dman01

Hello I already posted this on [URL="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=306688"]opengl.org[/URL], but nobody seems to have a solution. Basically I set up Opengl and when I want to draw 3D or say I want to use the z-axis by translating in this dimension, it doesn't have any effect. What I can do, is moving …

Member Avatar for daviddoria
0
318
Member Avatar for tuse

Hi all! I am trying to connect to a remote MySQL database in a VB.NET application. This database is located on my LAN at the address 192.168.1.2. I am using MySQL Connector/ODBC 3.51 (MyODBC 3.51) for the connection. The connection string that I am using is the following- Driver={MySQL ODBC …

Member Avatar for pritaeas
0
255
Member Avatar for jimdj

Hi. I am createing a site that uses categories to display certain things to visiters depending on what they click and the choices of what they can click on comes from a database. so how do you do the php to allow the site to create the links to a …

Member Avatar for pritaeas
0
156
Member Avatar for johndohmen1963

Hoi hope someone can help. my question is preg_replace dosn't work 100% the code i have $description = preg_replace('/[^a-zA-Z0-9 .,]/', '', ($_POST['albumbeschrijv'])); it works with all strange sings but only not when i use sign - between a string like in test-test. like the code it must remove everyting exept …

Member Avatar for johndohmen1963
0
181
Member Avatar for klemme

Hi all, I have a question regarding when I should use a 302 Found or a 307 Temporary Redirect. As far as I can read, they both send out the message: Moved temporarily, or not? Or have I come across old articles..'Cause I thought a 302 was a Moved temporarily, …

Member Avatar for diafol
0
412
Member Avatar for sbrohee

Hi everyone, I just finished to implement my first "serious" C++ program on my laptop. When I compile it (on my laptop and some other machine), it is working without the least problem. [CODE]g++ -g -pthread -std=c++0x compute_gsea_thread_global_map_opt_results.cpp -o compute_gsea.out[/CODE] When I try to compile it on one of the …

Member Avatar for daviddoria
0
473
Member Avatar for superjj

hi I'm using visual c# express. I have 2 forms. form1 and SettingsForm. In form 1 there is a buttons for opening the SettingsForm. sending data from form1 to the settingsform is easy. I use a methode. But that don't work vice versa. because I made the SettingsForm into form1. …

Member Avatar for Philippe.Lahaie
0
301
Member Avatar for eng_mary

Hi everybody I'm trying to write such a code: [CODE] import pps.PPSFrame; public class X extends PPSFrame{ ..... } [/CODE] Of course there's no such pps package in java. Where can i find it ? or at least PPSFrame.class ? Regards,

Member Avatar for eng_mary
0
242
Member Avatar for CountryBumpkin

I am fairly new to java and I have a program that I really need to get working. I need to pass 'alarmId' from class A to class B. I am not too sure how to go about this, any help would be greatly appreciated. [CODE] public void onStart() { …

Member Avatar for Philippe.Lahaie
0
522
Member Avatar for Talli

Hello everyone, I am passionate about programming have started learning C++ and finished studying one book about it. I am done with the basics like pointers, arrays, variables, objects etc. What I need now is some way to go on from here and learn how professional programs are made and …

Member Avatar for Talli
0
477
Member Avatar for rotten69

I'm trying to make a table and mysql is giving me this error: [QUOTE] #1005 - Can't create table 'likes.users' (errno: 150) [/QUOTE] That would be great to see a website that explains mysql errors like this for oracle [url]http://ora-code.com/[/url] [CODE] CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(2) …

Member Avatar for rotten69
0
164
Member Avatar for Cronicle8

Good morning, I'm having some difficulties fixing a problem, I need to allow permissions for a user to change the wallpaper but i can't seem to get it to work, i hope you can help me. :) Here's the code : [CODE] Dim RespostaMess As MsgBoxResult = MsgBox("Tem a certeza …

Member Avatar for Cronicle8
0
119
Member Avatar for BilalAKhan

Hi, I have written a program which reads the text from the text file cleans it for some specific letters or phrases and then saves it in another text file. I am having a problem in rewriting the processed or cleaned data (after it has removed some phrases and characters)onto …

Member Avatar for codeorder
0
1K
Member Avatar for sidra 100

i want to increase the size of the column [CODE]ALTER TABLE employee ALTER COLUMN department_name VARCHAR(50)[/CODE]

Member Avatar for pritaeas
0
87
Member Avatar for Shillz

M trying to connect to a site using the following code. But not able to. Please help [CODE] this.req = (HttpWebRequest)WebRequest.Create("http://wwwd.way2sms.com/auth.cl"); this.req.CookieContainer = new CookieContainer(); this.req.AllowAutoRedirect = false; this.req.Method = "POST"; this.req.ContentType = "application/x-www-form-urlencoded"; this.strNewValue = "username=" + ckuser + "&password=" + ckpass; this.req.ContentLength = this.strNewValue.Length; StreamWriter writer = new …

Member Avatar for Pri Bhowmik
0
421
Member Avatar for JaredN

Hi everyone, New to PHP and making slight changes to the text on the index.php page today I had this error come up when updating the file. I have looked at previous posts about missing ";" but I can't see where one needs to go. It came up with the …

Member Avatar for pritaeas
0
338
Member Avatar for sidra 100

hey m making a projec in one of its page i want to get the data from the table and display it on screen in the form of table. allthough the data appears but how can i display the headings. [CODE] $num=mysql_num_rows($result); print "<table width=600 border=1>\n"; while ($get_info = mysql_fetch_row($result)) …

Member Avatar for pritaeas
0
92
Member Avatar for swagen

I wanted to delete data from my original text file "PHONE.txt" while my temp text file is "newPHONE.txt"..but after i do deletion the text only remove at temp file but not in original file..any kind soul can help me? Thanks! [CODE] else if(userInput == "Delete"||userInput == "delete") { string line; …

Member Avatar for thines01
0
168
Member Avatar for srinidelite

[CODE]int a[10][20][30][40]; int *p[/CODE] How to access an element of a using p? .... PLs provide the actual code for the solution

Member Avatar for Moschops
0
79
Member Avatar for Dorayaki

Hello, Currently I'm developing simple chat client. I want to know how to pass data from one form to another form but at the same form. For Example I have two Form which is Form1 and Form2. Form1 can generate Form2 many times but which different Form2 just the Form2.text …

Member Avatar for Dorayaki
0
184
Member Avatar for rotten69

Hi all there, I was reading a book on Java and came across this piece of code. Now, I am not sure how line 13 works especially, these symbols after the equal signs "passed=%d; failed=%d%n" . How do the symbols affect the output of the variables(passed & failed)? so let's …

Member Avatar for JamesCherrill
0
324
Member Avatar for ajcoder

I have an assignment and need to fix this code. I have gotten to the point of not having any errors on my page for html, but need help with the javascript portion. I also want to understand the changes and why. I only need to make changes to the …

Member Avatar for ajcoder
0
202
Member Avatar for Labdabeta

I have a function that takes a reference to an interface class as a parameter. I have created a derived class from the interface class, but when I try to call the function with an instance of my derived class as an argument I get a compiler error saying "error: …

Member Avatar for Labdabeta
0
147
Member Avatar for neh555

I create one web application in vb.net then tell me can i run this web application on another computer where visual-studio not installed. please reply as soon as possible.....

Member Avatar for Pgmer
0
248
Member Avatar for SNES

I am a newbie looking at designing a simple database for my manufacture-based company, part of the job it does is maintaining a Purchase Order Table, a typical one and it suits all the customers we have, except for 1 particular customer which typically issues a Quantity Contract - a …

Member Avatar for SNES
0
115
Member Avatar for borgyborg

Hi All, I want to auto-calculate all the array textboxes I created. My code is: [CODE] <?php echo "<table>"; $sql="SELECT default_salary FROM records WHERE is_active = 'Yes'"; while ($row=mysql_fetch_array($result)) { $default_salary = $row["default_salary"]; $num_rows = mysql_num_rows($result); echo "<tr>"; echo "<td>"; echo $count."</td>"; echo "<td width=\"\" align=\"left\" border=\"0\">"; echo "<input type=\"text\" …

Member Avatar for diafol
0
874
Member Avatar for jesse.johnson

[B]Background:[/B] An application that opens a file, searches the file for the old password, replace the old password, and then saves an closes the file. The file is used by another process. [B]Servers [/B] I have two environments one for dev and prd. [B]The Issue[/B] * On prod the files …

Member Avatar for jesse.johnson
0
239
Member Avatar for mucokirca

i want my ajax and php codes, with 2 option value, show up two different texts or form packs. i have given html and php codes. i hope sombedy help me. im quiet new with this. thanks :) renkler.html : <head> <script type="text/javascript"> var istek = false; if (window.XMLHttpRequest) { …

Member Avatar for McLaren
0
320
Member Avatar for sha11e

I'm trying to make a cllient-server chat that only needs to be able to handle 1 connection. First, I have a data-type question: 1. At the moment I am using this code to get messages [CODE] BufferedReader ins = new BufferedReader(new InputStreamReader(sock.getInputStream()));[/CODE] And this code to send messages [CODE] PrintStream …

Member Avatar for babu15
0
200
Member Avatar for divsok

i'm novice to this and can anybody say how to change CSS properties with javascript functions? how can i change font-sizes/font styles using a combobox represented in a textarea? [img]http://i.imgur.com/KH0om.jpg[/img] if you can show me how events working..thank you

Member Avatar for Troy III
0
345
Member Avatar for naraayanan

Hi, I am new for C++ Program.I created a Exe using VC++.error message will occur when i run that exe(Ctrl+F5).The following error message will occur when exe run. [B]The thread 0x6CC has exited with code 0 (0x0). The thread 0xB10 has exited with code -1073741819 (0xC0000005). no matching symbolic information …

Member Avatar for Narue
0
172
Member Avatar for Knoxarama

I'm working on a formula calculator. In it, I've designated user controls (it's in a console). The script keeps track of the user inputs by assigning all user inputs concerning navigation into a string labeled 'ans'. However, I can't seem to get the 'if' and 'else' function to work with …

Member Avatar for Narue
0
294
Member Avatar for bio-grad

Basically I am reformatting a list that looks like this ko10101 K01392 K09134 ko34231 K05789 ko13452 K04665 K07881 into a csv file that looks like this: ko10101\tK01392 ko10101\tK01392 ko10101\tK09134 ko34231\tK05789 ko13452\tK04665 ko13452\tK07881 [code]while (<OUT>) { my $line = $_; chomp; if ($line =~ /^$/) { next; } elsif ($line =~ …

Member Avatar for bio-grad
0
136
Member Avatar for bflack

Hey guys, Can you all help and teach me how to retrieve image file which is stored on database?.. I had an image stored on database in the column i called 'profpic'. By the way, I am needing this information for profile picture on a users page. I've started testing …

Member Avatar for bflack
0
209

The End.