64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fheppell

I'm trying to find the errors in this sql statement INSERT INTO images(user, server, img-name, download, download-url, image-loc) VALUES(test@test.com, 3, Penguins.jpg, no, GaNfT, 69Z8PwE0uJLfRNDijPenguins.jpg) I also have an auto increment column but as I understand it you shoudln't supply a value It comes out with this error You have an …

Member Avatar for fheppell
0
271
Member Avatar for fheppell

I've written this code that takes two variables via POST. Some file and a checkbox to say whether the image can be downloaded. I then have this processing code to upload multiple files: <?php require_once('Connections/koding1.php'); if(isset($_FILES['file']['tmp_name'])) { // Number of uploaded files $num_files = count($_FILES['file']['tmp_name']); /** loop through the array …

Member Avatar for fheppell
0
195
Member Avatar for MasterHacker110

I am kinda bord and dont know what to write. I have lerned the basics of strings, references, pointers, file I/O, classes, enums (simple error functions). Also some basic exceptions. And ofcourse all the other basics of chars, ints... So what are some cool "mini" project that i couldd work …

Member Avatar for MasterHacker110
0
158
Member Avatar for MasterHacker110

I have this code: #include <stdio.h> int create_logfile(char *name, char *field, char *joindate) { FILE *ofile; ofile = fopen("test.txt", "a+"); if(ofile == NULL) return 1; fprintf(ofile, "%s\t%s\t[%s]\n", name, field, joindate); fclose(ofile); return 0; } int main() { char name[100], field[100], joindate[100]; printf("Name: "); fgets(name, sizeof(name), stdin); printf("Field: "); fgets(field, sizeof(field), …

Member Avatar for MasterHacker110
0
219
Member Avatar for MasterHacker110

I am getting an error when i try to compile this code int StartProgram(string sProgramName){ ShellExecute(NULL, NULL, sProgramName, NULL, NULL, SW_SHOW); }

Member Avatar for MasterHacker110
0
4K
Member Avatar for MasterHacker110

I am trying to write a basic link list, so that I can understand how to implement it in C++. The tutorial I read was extremely advanced (giving more code than needed to understand and not explaining really how). So i tried to write this simple linked list: #include <iostream> …

Member Avatar for MasterHacker110
0
189
Member Avatar for MasterHacker110

I am trying to do something like this: public Boolean CheckLogin(String accNumber, String pin) { String checkAccNumber; String checkPin; String line; String[] splitedLine; StreamReader sr = new StreamReader(FILE); while (line = sr.ReadLine()) { splitedLine = line.Split(' '); checkAccNumber = splitedLine[0]; checkPin = splitedLine[1]; if ((checkAccNumber == accNumber) && (checkPin == …

Member Avatar for MasterHacker110
0
342
Member Avatar for pixma

Hi there! What I am used to declaring database connection is that in every form I type the codes for it which is a tiring way. Now, I want to use module instead but I really don't know how. And also, how will I call the connection to every forms …

Member Avatar for savedlema
0
2K
Member Avatar for edensigauke

I know apache exists, and the WAMPP, but i would like to know the handler settings for PHP on Windows 8 IIS, it would really be helpful. I was thinking it might be the same as with windows 7, but i am not getting the mapping parts.

Member Avatar for edensigauke
0
254
Member Avatar for Sammys.Man

hi guys, i have a piece of code i wrote in VB (login system) and it works great, but i want to have the same code in C# but i can't seem to get it to convert, does anyone know how to do this? many thnaks

Member Avatar for Sammys.Man
0
148
Member Avatar for ringo_tech

Hi there, I have a database which contains the paths of different files, what I want to do is to store the paths in an array to create an array of paths then download these files with one click. How to do that? please help

Member Avatar for pritaeas
0
124
Member Avatar for daniel36

I am working on a cms type project.In this project when i uses get variable to fetch data from database and display.The layout of website shifted to left.and i am unable to solve this problem.please help me.

Member Avatar for daniel36
0
114
Member Avatar for <M/>

How do I create a pop up effect that appears when you click on a link? I am looking at some web tutorials and I can't find a tutorial where I can create a link that if you select it a pop up shows up but it keeps you on …

Member Avatar for <M/>
0
165
Member Avatar for Nandomo

Is there any way I can place a video in a JFrame/JPanel? Can someone point me to a tutorial, I can't find anything useful through Google.

Member Avatar for Ezzaral
0
196
Member Avatar for ehpratah

Hi to all just wanna ask how to achieve something like on show all data if a certain field on the table is equal to **2**. basically what im trying to make is a search form by the way the searching part is working it just that its showing all …

Member Avatar for ehpratah
0
170
Member Avatar for ScarWars9

Hello, I have been working on a time clock application, and I'm trying to be able to select an employee from the DataGridView and populate their information into text boxes. I have done some research and what I have found works . . . sometimes. So sometimes when I click …

Member Avatar for ScarWars9
0
2K
Member Avatar for ZeroZen

Hey folks I've finally figured out how in WPF to template all my buttons so they all behave they way I want. Basically, I want all my buttons, when clicked, to drop down and to the right a few pixels then pop back up. The problem is, I can't set …

Member Avatar for ZeroZen
0
493
Member Avatar for chdboy

This is my code : import java.awt.Button; import java.awt.Component; import java.awt.Container; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.*; import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SpringLayout; public class SpringSample extends Frame implements ActionListener { private static final long serialVersionUID = 1L; SpringSample() { …

Member Avatar for chdboy
0
2K
Member Avatar for Suzie999

I'm having a bit of a problem with how to code something. Here is how it is in my head. I want a function which is not part of a class to access members of that class, so I want to make the class global. I have done this with …

Member Avatar for Suzie999
0
475
Member Avatar for l.worboyz

I am trying to create a JavaScript program that displays a different face of the dice depending on whether the user has entered a number between 1 and 6. I am using this in conjunction with HTML which is supplied to me in a learning interface online. The different faces …

Member Avatar for JorgeM
0
352
Member Avatar for richosr

Can anyone tell me why echo intVal($_REQUEST["CustID"]) where $_REQUEST["CustID"] value is 62013300111, produces 62013300111 on one php Server but on another it produces 2147483647. I cannot find any logical reason. regards Steve

Member Avatar for richosr
0
204
Member Avatar for delta_frost

I hate to sound redundant,but can anyone point out step by step how to configure my localhost WAMP server installation to send e-mail.I do have a GMail a/c. It would be highly appreciated if anyone explained every step of the process.Tried to configure PEAR,PHPMailer,sendmail but with no luck.

Member Avatar for delta_frost
0
205
Member Avatar for joseph.lyons.754

Hey guys, I was wondering if you could tell me if this is even possible or if it can be done another way??? So i have a database with 6 tables all the databases have the same columns except for the tables name ahead of the generic headers pub_name, Hotel_name, …

Member Avatar for Webville312
0
213
Member Avatar for sandeepek

I want to send a confirmation mail to users given email id aftre his/her registration. I am trying this in codeIgniter framework only. But I didn't get the exact output. Please help me, what is the correct code I can use here? Please not: I am using Xaamp server. Thanks …

Member Avatar for sandeepek
0
2K
Member Avatar for Nandomo

Ok I am making a user interface for Battleship and want a Frame to appear on the side with the title and instructions of the game in a disabled JTextArea. With the code I have now I can get the JFrame to open blank. The JTextArea only appears if I …

Member Avatar for bguild
0
162
Member Avatar for kakalahori

<?php session_start(); define( “USERNAME”, “john” ); define( “PASSWORD”, “secret” ); if ( isset( $_POST[“login”] ) ) { login(); } elseif ( isset( $_GET[“action”] ) and $_GET[“action”] == “logout” ) { logout(); } elseif ( isset( $_SESSION[“username”] ) ) { displayPage(); } else { displayLoginForm(); } function login() { if (isset( …

Member Avatar for IIM
0
370
Member Avatar for showman13

Good afternoon All. I'm running into difficulties trying to get a random selection from a subset in a query. Basically what I have is a table with a record for every New Active referral, that contains the date(active_date) the member ID(mem_id) and the referrer ID(ref_id)... What I need to do …

Member Avatar for showman13
0
199
Member Avatar for daniel36

I am trying to convert 08 and 09 to 8 and 9 respectively, but they are not getting converted. I tried 08+0 , 09+0 but the result I obtained in both the cases is 0. The above method is working for 01 to 07 and I am obtaining results as …

Member Avatar for masterjiraya
0
170
Member Avatar for dlaverick

I am running a check from my Db to see if a grade exists, if it does then spit out the grade inside a link. If not then spit out another link. The bit that includes the grade where a grade exists works a treat, it just does not like …

Member Avatar for dlaverick
0
144
Member Avatar for Suzie999

Hi Does anyone know if there is an equivilent of std::stoi (string to Int) for use with wstring that I am missing? Seems a bit odd that it would be ommitted from the library, but I cannot find anything. Thank you for reading.

Member Avatar for Suzie999
0
216
Member Avatar for tony75

Hi I get a littel problem to read,sort,count and remove punctuation marks from text file. data="""I love the python programming How love the python programming? We love the python programming Do you like python for kids? I like Hello World Computer Programming for Kids and Other Beginners.""" ##f = open …

Member Avatar for tony75
0
494
Member Avatar for dottomm

Hello and thanks in advance for taking the time to look at this. I have an issue validating a Mailing Address form field. The problems is when users enter an address that has two sets of numerals. For instance; "12345 ABC Street Suite 200" will result in a validation error. …

Member Avatar for pritaeas
0
171
Member Avatar for MasterHacker110

I have this xml file <?xml version="1.0"?> <xml> <accounts> <user name="User123" cellphone="000000000123" email="n/a" balance="123.12" pin="123" accNumber="123"/> <user name="User456" cellphone="000000000456" email="445@email.com" balance="456.45" pin="456" accNumber="456"/> </accounts> </xml This file is part of an ATM's database, containing the user's details. I would like to change a spesific value. Say "User123" is login at …

Member Avatar for tinstaafl
0
2K
Member Avatar for RaeesIqbal

I'm completely a newbie and I have this problem drilling into my head. Any fast help will be highly appriciated. I have a table "peoplebase" and there's a column "alias_switch". Now I want a script to act as a switch, if "alias_switch" is "1" then it should make it "2", …

Member Avatar for minitauros
0
142
Member Avatar for Nebil

Hi all, I was having a huge problem,i mean i spent days trying to fix it but i get the same exception everytime when i run the app. here's the thing i have a record that is loaded from the database using the listview.it works perfect for the insertion part.but …

Member Avatar for Begginnerdev
0
357
Member Avatar for bradly.spicer

hey all, Just a quick one (I hope). I've only ever really done this as a button from something simple like a drop down box. I have a table which is populated by a mysql db: echo "<table class=\"gridtable\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th>Employer</th> <th>Vacancy</th> <th>Vacancy Type</th> <th>NoVacancies</th> <th>Learning Provider</th> <th>Contact …

Member Avatar for bradly.spicer
0
159
Member Avatar for MasterHacker110

I am trying to make an ATM program in C++, I was able to make one 1 C# but decided to try and implemment it int C++. I basicly have this .ini file #constant format: ACCOUNT_NUMBER PIN BALANCE 123 123 123.12 456 456 456.45 And this code: #include <iostream> #include …

Member Avatar for Moschops
0
440
Member Avatar for nmakes

I'm trying to make a function similar to strcat(char,char) in string.h header file. Somehow this code does not catenate the strings. Please help me make it better. void strappend(char *a, char *b) { int i; int start_pos = strlen(a); for (i=0; b[i]!='\0'; i++) { a[start_pos + i] = b[i]; } …

Member Avatar for nmakes
0
196
Member Avatar for somjit{}

i was thinking of downloading some database software that would help me learn sql. so far i have only *read* sql , ie havent done any practical sort of thing. i made a post earlier in this forum , where i was told that sql server express will be a …

Member Avatar for somjit{}
0
194
Member Avatar for ddanbe

Would I create "more" randomness if if I had the library random function selecting randomly a value from the logistic function,with initial values showing chaotic behaviour, which I then would use as a seed to the random function provided by the library? Phew, whole mouthfull I guess . . . …

Member Avatar for deceptikon
0
116
Member Avatar for MasterHacker110

I only see tutorials for installing the Cosmos OS kit with visual studio 2010. I have visual studio 2012 express and would very much like to start writing my experimental OS with Cosmos Os kit. Is there a way or do i have to download visual studio 2010?

Member Avatar for MasterHacker110
0
151
Member Avatar for hanan-kh

hi... i have this error in my code Fatal error: Call to undefined method myclass::addCat() in G:\AppServ\www\society\Admin\addCat.php on line 23 this is aclass function function addCat($t1) { mysql_query("insert into categories (Categoriesname)values ('$t1')") or die(mysql_error());} and this aline have a error if (isset($_POST['but1'])) { $t1=$_POST['txt1']; $m= new myclass(); $m->addCat($t1); } I …

Member Avatar for hanan-kh
0
369
Member Avatar for ASWEDAN

Hello there, I face this error message when I try to save a new record in Table: viruses_analysis, I would like to use the same way in the code below, but where is the error? please be informed that I used the same way in other applications and worked very …

Member Avatar for ASWEDAN
0
325
Member Avatar for devianleong

I've a problem to my linkedlist at line 10. Can anyone help me to solve it? Thank in advance. ![edcc2efd2d7051037a9a147491e15671](/attachments/large/3/edcc2efd2d7051037a9a147491e15671.png "edcc2efd2d7051037a9a147491e15671") This is my code : package linkedlist; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class LinkedList { private String firstName; private String lastName; private static LinkedList<LinkedList> classRoster = new …

Member Avatar for devianleong
0
262
Member Avatar for zawpai

Hi all, Is it possible to select multiple records (rows) in "DataGrid" and then delete all selected items? Because I can't find any properties to enable for multiple selection. Whenever I try to delete a record, system always prompt the run time error. Private Sub Command4_Click() Dim count As Integer …

Member Avatar for zawpai
0
3K
Member Avatar for turpentyne

I have an svg object on my page, with mouseovers that call a function on the page itself (outside of the svg). This function shows/hides divs on the page by id: onmouseover="top.showit('option28')" When the page is first loaded, the divs hide/show just as they're supposed to. But I have separate …

Member Avatar for turpentyne
0
230
Member Avatar for kakalahori

<form action="process_registration.php" method="get" > <label for="lname">Login Name:</label> <input type="text" name="lname" id="lname" /> <label for="pswrd">Password:</label> <input type="password" name="pswrd" id="pswrd" /> <input type="submit" value="Submit" class="animated shake" /> <input type="reset" value="reset" class="animated shake" /> </form> and the php code is <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”> <head> …

Member Avatar for kakalahori
0
311
Member Avatar for kakalahori

while giving command zf create action login i get the error PHPUnit is required in order to generate controller test stubs. -------------any suggestions

Member Avatar for kakalahori
0
245
Member Avatar for Squidge

Hi All, Not sure really where this should go but..... I have recently setup a shared HTDOCS under XAMPP across a dual boot system (Win7 & Ubuntu). Not sure if there is an interest, but if anyone would like to know how to do it, please give me a shout …

Member Avatar for Squidge
0
136
Member Avatar for cyberdaemon

Good day, I am having troulbe with my computation here. i want to compute for the Custom_Haulage_In_Transit but when i exec my sp the value of the Custom_Haulage_In_Transit is 0. can anyone help me with this please.. here is my code SELECT distinct MATERIAL ,Description ,Material_Type -- ,Requested_Delivery_Date ,ATP_check ,Delivering_Plant …

Member Avatar for adam_k
0
217

The End.