199,114 Archived Topics
Remove Filter ![]() | |
Hi guys, so i have a table populated by event details from database and i use a checkbox to select which event to be deleted: echo "<tr> <td><input type='checkbox' name='check[]' class='check' value='$id'>$name</a></td><td>$formatDate</td> </tr>"; my delete function: <?php if(isset($_SESSION['sess_user_id'])) { if(isset($_POST['del_event']) && isset($_POST['check'])) { require "connection.php"; $userid = $_SESSION['sess_user_id']; foreach($_POST['check'] as … ![]() | |
I want to count records using datediff() and where condition; I am getting the result with no. of days; but cant count records with condition; below is the my query SELECT DATEDIFF(CURDATE(), jobs.jobs_listed_date) FROM tbl_first_category AS FIRST , tbl_second_category AS SECOND , tbl_jobs AS jobs WHERE first.fc_id = second.sc_fc_id AND … | |
I'm trying to code a registration form. But I'm stuck at adding a borrowed code of image upload, resize, save and store its path in MySQL database. The error message is "Undefined index: fileimage" on the line where I have this code: if($_FILES['fileimage']['name']). Here is the register.php: <?php // include … | |
I have recently started to write server scripts. Although the question may seem to be very basic but i am not able to get a solution. I have two tables one is PRODUCTS and the other is DEALS PRODUCTS TABLE: Id product_name product_desc category brand 1 product1 desc1 cat1 brand1 … | |
I have been learning about the collections namespace in C# so have been doing some little self-made projects to learn. I have made a car race app where you enter in the name, car and place of the racer this is then stored in an array list. I can extract … | |
first off this is a question where jQuery is used heavly, there are no catagories to put that under on <DaniWeb> so i've put this post under what i believe is the most appropriate one. Ok! now thats done and over with, im requiring some assistance on how to write … | |
Hey! I'm using OpenGl GLUT on xcode 5.1.1 on mac osx 10.8.5 and I've can't figure out how to load bmp,jpg or png images as textures to my application. I've tried installing FreeImage and SOIL unsuccessfully. I'm a total newbie and some help would really be appreciated. | |
I have array of keys. $all_skills2= CHtml::listData(Skill::model()->findAll(array('order' => 'skill')),'skill_id','skill'); $database = array_fill_keys($all_skills2,''); this array looks like: Array ( [Android] => [ax] => [bbb] => [Big Data] => ); now i want to fill values to this array. where values are in another array **$skill_type_count** which i got from below code: … | |
Hey everyone! I've created my db.php and all my other scripts are fine.. just when I created a new page and included db.php I created a function. In the function I used my $dbh variable and it is throwing an error... > Notice: Undefined variable: dbh in C:\xampp\htdocs\Crafting Bench Server … | |
Hye. i need to build an inventory system. In that system, the production department will scan the barcode in each item. **How should i connect the barcode scanner with the system ? ** and the requirement of the system is to be able to compare the information scanned **with** the … | |
I dont clearly understand bool functions. this lends problems to my current assignment in class where i have to write a program that involves a bool function that tests for letters in a string that the user inputs. Can anyone offer help to me? the whole code is slightly confusing … | |
hey , I'm trying to read a 24 bit bmp file but after reading the first pixel something goes wrong, any ideas? int i; FILE* f = fopen("Sample.bmp", "rb"); unsigned char info[54]; fread(info, sizeof(unsigned char), 54, f); // read the 54-byte header // extract image height and width from header … | |
Just looking for a push in the right direction. I am overwhelmed by the choice with python at the moment. What are the best tools for managing consitent ETL operations with data in XML and CSV formats to database, graphs and in future a web app. for example should I … ![]() | |
import java.io.*; class WriteFile { public static void main(String ss[]) { try { FileWriter fw=new FileWriter("output.txt"); PrintWriter pw=new PrintWriter(fw); String s1="Hello World"; String s2="I Am Learning Java"; pw.println(s1); pw.println(s2); pw.flush(); pw.close(); fw.close(); } catch(IOException e) { System.out.println(e); } } } in upper code println() is called with object of `PrintWriter` … | |
![]() | Bit of an open question I must admit but I began working on my own CMS in codeigniter. Trouble is - it is getting massive and taking very long. Now I like that wordpress has most of the things already integrated so I was just wondering who here has integrated … ![]() |
when m pressing printf("welcome to airline reservation system\n"); its gettng error tt its a declaration syntax error plx help me i have to complete my project | |
Hi what are Macros used for in C++? i never heard this word in my entire life :D and what are `assert()` and `NDEBUG`? | |
i need your help to find c++ code for Clustering algorithm for energy efficiency in wireless sensor networks | |
It comes in handy of course that you can dynamically adjust the size of a List or Dictionary. But this time I want to use a Dictionary with sizes from 1 to 8. When I have e.g. size 3, it will stay that way. On the net I found a … | |
My code is the following: import cgi data = cgi.FieldStorage() productdescription = data.getvalue('product_description') listprice = data.getvalue('list_price') discountpercent = data.getvalue('discount_percent') def calc(discountpercent): if discountpercent > 100: raise ValueError("Percentage discount cannot exceed 100%") elif discountpercent < 100: percent = float(discountpercent) / 100 discount = float(listprice) * percent return discount else: raise ValueError("Invalid … | |
I am bit confused where this question should be placed. But I think It should be here. If we go to the youtube/google/torrent etc... and finding the crack we may find many crack, patch, keygen, crack dll files etc. but how they are created, the owner is not going to … | |
Hi i am Beginner in Android and Java..I am currently building Android quiz game. The application should display 6 questions with 4 answers, if the player's answer is correct then player will move to another question and score 5 points, feedback to the player should be provided as well (im … | |
Hello, I am looking for Javascript codes where you can move the list of data in left side to the right side. For example: Attendance: John Albert Albert Victory Kim >> James Kayla Victory James Out of the 6 people only 3 students attend the class. All the registered students … ![]() | |
Hello all, I am a vb.net newbie and I am trying to write a code that when executed pulls the latest file on an FTP server (based on creation date). So far, I've been able to list all the files in the remote directory. I know this can be done … | |
Hi, does anybody know how add click sound for button in Android? here is my code below.. i have checked some tutorials, but im not sure how to implement them on my code package com.example.quizgame; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import … | |
Hello, I am creating an upload material program for elearning. Now, I have an exe file, if I run it from my computer it's directly open a new browser and run it's content. Now, if I click the material list in my web browser, it's asking me to save the … | |
while storing the value 1.111 in a float variable the value stored and printed is 1.1109999. why is this loss of data or sometimes the gain of data?. | |
How do I upload photos to a mysql database using php and I again reproduce an image from the database and displayed in the browser | |
#include<stdio.h> int main(int argc, char *argv[]) { char *states[] = { "California", "Oregon", "Washington", "Texas" }; printf("size of states: %d",sizeof(states)); return 0; } the result of this is: size of states: 16 why is that?I know that an int is 4 bytes,while a char is 1 byte.I got confused why … | |
I have a few general questions about the Collections class in C#:" 1. Because all elements in an ArrayList are stored as objects do we need to cast them into their respective types before extracting? 2. Array lists are used if the size is adjusted accordinly to elements added and … | |
Why is this code note updating the database???? <?php include '../connection.php'; $today = new DateTime('2014-7-14 20:10:10'); $appt = new DateTime('2014-8-15 20:10:10'); $days_until_appt = $appt->diff($today)->days; if ($days_until_appt>=30) { $sql = "SELECT username FROM users WHERE position = 'Tenant'"; $result = mysql_query($sql) or die(mysql_error()); echo '<table align="center" border="1" cellpadding="0">'; echo '<tr align="center"><th> … | |
I've been dealing with this problem for about 2 days now. Write a program that accepts the price of an item and displays the discounted price. Accept also the amount given by the customer (assume the amount is greater than or equal to the discounted price) and display the change. … | |
Pease I need your help! I am very new in Php programming,I just downloaded wampserver on my system and also komodo for text editor.I launched komodo to place my text and saved the file with the file extension .php then try to run the script for web browser to display … | |
I need help to be able to credit tenants that are in my system after every 30 days of stay. Code in either PHP, AJAX, jQuery | |
This program hangs when I enter the number of vertices only..It does nothing..I am not able to figure out what's wrong with this.Please help #include<iostream> #include <list> using namespace std; // This class represents a directed graph using adjacency list representation class Graph { int V; // No. of vertices … | |
Hi There. I have the following code for a login system withing VB 2010. I am getting a Warning: "Variable 'reader' is used before it has been assigned a value. A null reference exception could result at runtime." Where did I go wrong? Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal … | |
I have this big problem with my code, here it is: https://www.dropbox.com/s/2lc6iygbx2gwlqj/Screenshot%202014-07-19%2011.24.20.png here is my ERROR: Exception in thread "Thread-0" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1348) at ca.gingerninja.game.gfx.SpriteSheet.<init>(SpriteSheet.java:19) at ca.gingerninja.game.Game.Screen(Game.java:55) at ca.gingerninja.game.Game.run(Game.java:78) at java.lang.Thread.run(Thread.java:745) Can someone please help, I would really like to continue with my game! | |
I want to make a game that requires the arrow keys to be pressed. How do I detect if a key has been pressed? | |
Hi to All, Can anyone show me a sample alarm script using php or javascript? The alarm was base on the record at the database. I mean, for example I have records that have overdue, the user is the one who state the overdue. For example, the user input his … ![]() | |
builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 14: invalid continuation byte I'm getting the following error that pops up not in my script but in the codecs.py file. I've used code exactly like this in another program and it worked just fine. Any ideas? Script below. #/usr/bin/env python3 … | |
Please can some one help me descrypt the below php code i using it for my project, i encrpyt it through a code given to me by friend. | |
OK. I just don't understand what is the problem here. Here's the code .h file : #ifndef NVECTOR_H #define NVECTOR_H class Nvector { public: //Nvector(); Nvector(int Size = 0); void addElement(int a, int index); void getElement(int index); void push_me_back(int a); void push_me_front(int a); private: int *p_array; int velicina; int *resize_array(int … | |
Hi coders Can anybody give me steps to access Class Diagram feature in VS 2010.I have searched for it using web but couldn't find it in VS 2010. | |
int game() { int n; cout << "enter an odd number: "; cin >> n; int MagicSquare[n][n]; // It says that the expression must have a constant type? int newRow,newCol; int i = 0; int j = n / 2; for (int i = 0; i < n; i++) { … | |
Hi there me again, sry for the many questions but only way to learn for me is to try (even if I cant succeed) Please feel free to ask any questions of me if I'm not being clear :) What i'm trying to do is basically a auto-select or I … | |
If I have an array and an array list: int[] myArray = new int[2]; myArray[0] = 1; myArray[1] = 2; ArrayList myArrayList = new ArrayList(); myArrayList.Add("1st element"); myArrayList.AddRange(myArray); By calling the Addrange() method in myArrayList, does this add the contents of myArray to the second element of myArrayList? If so … | |
![]() | I need a Javascript Code to prevent users from right clicking on my website.. alot of people tell me why would you do that? the people will hate your site. but my site has a whole lot of images and videos i made myself and u know these stupid people … |
I'm trying to create my own Database and Tables in SQL Server 2005 using VB.NET 2005. I get an error when I try ExecuteNonQuery, which says that the connection is not initialized. I'm not sure if I'm doing any of this right. Any help would be greatly appreciated! Sheryl [code=vb] … | |
Usercontrol1 private string lastName; private string nnovo; public string LastName { get { return lastName; } set { lastName = value; label2.Text = value; } } public string Nnovo { get { return nnovo; } set { nnovo = value; label1.Text = value;} } Form Button btn = (Button)sender; SqlCommand … | |
i am developing a project in vb6.0 and i want to open a child form in mdi form with function keys and want to close child form with escape key.Plz reply me with source code |
The End.