199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ramsiva

I am getting result 3 div's but i want to get result for checking. my ajax page <div> <!-- This is empty div and please don't remove this --> <div id="inner_1"> <?php echo $val; ?> </div> <div id="inner_2"> <?php echo $val; ?> </div> </div> my html page <div id="div_1"></div> <a …

Member Avatar for ramsiva
0
247
Member Avatar for AntonyRayan

Hi, I need a code for downloading a file in doc, docx and image in pdf format in php My code is working in downloading but while opening the I can`t

Member Avatar for jj.dcruz
0
147
Member Avatar for zakn
Member Avatar for tinstaafl
0
72
Member Avatar for zakn
Member Avatar for Reverend Jim
0
99
Member Avatar for Dragoonqueen

Help. I can't get javascript to work on my computer at all. I've tried both Internet Explorer and Firefox but I either get messages saying that I need to enable it or install it, or the page just doesn't load. And I know that it isn't just the site I'm …

Member Avatar for Troy III
0
4K
Member Avatar for mattyd

Hello. This is probably something very simple that I am missing (Or something that I have done wrong), but upon filling in and validating all fields of the form and pressing the "Register" button nothing happens; Usually the page would reload as if the form had been submitted. The code …

Member Avatar for Troy III
0
399
Member Avatar for haneenmegren

and i have more than one class this is my java file and im using netbeans import java.applet.*; import java.awt.*; import java.net.*; import java.awt.event.*; import javax.swing.*; public class sb extends JApplet { Thread threadABC; AudioClip gong; /** * Initializes the applet starbucks */ @Override public void init() { resize(920,700); /* …

Member Avatar for haneenmegren
0
231
Member Avatar for Brandon_7

I've been studying computer science and computer programming for years now in high school. I've been accepted to universities that offer two different kinds of degrees. One is Computer Science and one is Software Engineering. I could go either way for which degree I get, I was just wondering if …

Member Avatar for rubberman
0
554
Member Avatar for Israel_2

So I have this simple query that if I run it on sql server management studio it gives me results. Select name, count(*) As thecount from Restaurants group by name I am using codeigniter and a wrapper library for datatables called [ignited datatable](https://github.com/IgnitedDatatables/Ignited-Datatables/wiki/Function-Reference) . I am using it because its …

0
266
Member Avatar for yaginuk

Hi, i have had made in the past a php file to download a supplier list in xml format, import it to a temp database with a datestamp then the file will check to see if product exists or not, has been removed from the file since last time or …

Member Avatar for diafol
0
266
Member Avatar for ikel

The following code produces the XML file that I am after. $dom = new DOMDocument('1.0', 'UTF-8'); // pretty formatting $dom->formatOutput = true; // create root element $root = $dom->createElement('Poem'); $root->setAttribute('object_id', '542'); $dom->appendChild($root); // create title element $title = $dom->createElement('title'); $root->appendChild($title); // create a node for the title element $text = …

Member Avatar for diafol
0
2K
Member Avatar for no123

public void Start() { List<Object> list = new List<Object>(); List<Object> toRemove = new List<Object>(); if (File.Exists("c.bin")) { using (Stream osR = File.OpenRead("c.bin")) { DESCryptoServiceProvider cryptic = new DESCryptoServiceProvider(); cryptic.Key = ASCIIEncoding.ASCII.GetBytes("ABCDEFGH"); cryptic.IV = ASCIIEncoding.ASCII.GetBytes("ABCDEFGH"); try { using (CryptoStream crStream = new CryptoStream(osR, cryptic.CreateDecryptor(), CryptoStreamMode.Read)) { if (osR.Length > 0) { …

Member Avatar for cgeier
0
299
Member Avatar for Slavi

Hey guys, It's not exactly trouble with coding that I am facing more like trouble with understanding what I have to implement .. Quick background .. I am trying to implement statistical-saturation attack on block ciphers. The piper that describes the attack has the following algorithm that is used against …

0
123
Member Avatar for Prince_9

Please how can I turn curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "http://search.yumpu.com/2.0/search.json?q=s.moser&in=author" to php. Thanks.

Member Avatar for Prince_9
0
965
Member Avatar for savedlema

Hi all! I have just developed an application on VB.NET with mysql. I then need to deploy this to clients workstations. The plan is to install mysql server on one computer and have all other clients connect to this. What do I need to install on the server and what …

Member Avatar for rubberman
0
540
Member Avatar for TObannion

So I am making the menu for a rock paper scissors game, and it's working other than the quit function in the main menu. I know that it's because the blank space used for enter is considered a string, but the assignment requires that I use enter to quit from …

Member Avatar for vegaseat
0
205
Member Avatar for kelleyz

This script worked last year. Not worked on a site for a while. Not sure why its not working. Cans someone help please. <?php mysql_connect ("localhost", "user","pw") or die (mysql_error()); mysql_select_db ("db"); if(isset($_POST['submit']) && !empty($_POST['submit'])){ $result = ""; //USED LATER /*$term = $_POST['term']; THIS WORKS BUT FOR SECURITY ISSUES USE:*/ …

Member Avatar for kelleyz
0
427
Member Avatar for joshuawilson11

Hi so i want to add a variable (integer) to every value in my list, how can i do this? Thanks, heres my code, mylist at the moment is [83, 111, 109, 101, 119, 104, 101, 114, 101, 105, 110, 108, 97, 77, 97, 110, 99, 104, 97, 44, 105, …

Member Avatar for Josiah_2
0
302
Member Avatar for zakn

how to mute mic/line output in vb.net? how to mute microphone in vb.net?

Member Avatar for Reverend Jim
0
97
Member Avatar for Lynn_4

Hello! I'm starting to learn python and are doing a "big" assigment for my programming course. I'm having trouble how to structuralize my code, I have gotten some not that good feedback so I could really use some help. What am I doing wrong? This is my code so far. …

Member Avatar for Josiah_2
0
381
Member Avatar for DS9596

Need help to fix errors, I know int a[] should be specified but not sure how to. #include <iostream> using namespace std; class TWO { private: int age[5]; public: //read data into array void ReadData(int age[], int n); //member to return the average of data in array age of object …

Member Avatar for rubberman
0
169
Member Avatar for Chinnaiah_1
Member Avatar for Violet_82

Hi all, I'm just redoing a very simple MVC app found on a book and I have created my model using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MvcGuestbookRevised.Models { public class GuestbookEntry { public int Id { get; set; } public string Name { get; set; } public …

Member Avatar for Violet_82
0
244
Member Avatar for liphoso

I have a class called Car, 6 other classes (Van,Cab,Truck, Taxi, Sedan and Motorbike) that implement this class. Each of the subclasses has its own mnethods and attributes. How would I go about creating an array of these vehicles with the type of car being randomly selected. that is I …

Member Avatar for liphoso
0
216
Member Avatar for zakn

how to find monitor brightness Level in vb.net? Change Display Screen Brightness.

Member Avatar for zakn
0
284
Member Avatar for Nguyen_4

This is my code: String cmdText = ("UPDATE sinhvien SET Ho= '" + HoSV + "',Ten = '" + TenSV + "', Ngaysinh= '" + dateTimePicker1.Value.ToString("yyyy/MM/dd") + "',Ghichu='" + GhiChu + "',Diemthi = '" + DiemThi + "' WHERE idSinhVien =" dataGridView1.SelectedRows[0].Cells[0].Value.ToString()IDSinhVien); MySqlCommand cmd = new MySqlCommand(cmdText, constr); cmd.ExecuteNonQuery(); I …

Member Avatar for JerrimePatient
0
130
Member Avatar for ahmedsa

Hi guys I make program to select data every day automatically by timer every second in c# In sql server 2005 i write the following query ALTER proc [dbo].[JeddahSalesAll] as SELECT ROW_NUMBER() OVER (ORDER BY dbo.[Jeddah-Live$Sales Header].No_) AS [S.N], dbo.[Jeddah-Live$Sales Line].[Document No_] AS 'OrderNo', dbo.[Jeddah-Live$Sales Header].[Bill-to Name] AS 'CustomerNo', dbo.[Jeddah-Live$Sales …

Member Avatar for JerrimePatient
0
251
Member Avatar for no123

i have an assignment and i need to encrypt the objects before serializing them into the file. i've looked for information and all i found was encrypting strings. is this my only option?to encrypt each field of the object and then assemble them all to the original object? Thanks. i …

Member Avatar for JerrimePatient
0
465
Member Avatar for Yuki_1

Hi may i ask how to Get value from database display in textbox?I had a table name mttuser.When i login it will automatic show me the personal informaion. here is my code private void Process_Load(object sender, EventArgs e) { gent_login frm_login = new gent_login(); using (Mttuser_DAL dalObj = new Mttuser_DAL()) …

Member Avatar for JerrimePatient
0
240
Member Avatar for overwraith

So I am having trouble connecting to an Oracle XE 11g database in visual studio. The Ultimate aim here is to make a webpage I can run on my local machine and send sql to on my local net. From looking around it seems other people have had this problem, …

Member Avatar for DaveAmour
0
231
Member Avatar for Ant695

The idea is to write a program that asks a user for 10 numbers and then displays how many positive and negative numbers were entered. Not really sure where I'm going wrong but this was an extra assignment to kill time while everyone else catches up. this is what I …

Member Avatar for DaveAmour
0
255
Member Avatar for Nguyen_4

I import excel file and show on datagridview I want insert all row datagridview to mysql. But i receive error: Incorrect date value:'11/14/1991 12:00:00 AM' for column 'Ngaysinh at row 1. Mysql : i using date : yyyy/mm/dd datagridview show : mm/dd/yyyy. i don't know error: '12:00:00AM ' ???? column …

Member Avatar for JerrimePatient
0
1K
Member Avatar for amc2244

**Here is what I had to do:** In this project each individual will create a data analysis program that will at a minimum, 1) read data in from a text file, 2) sort data in some way, 3) search the data in some way, 4) perform at least three mathematical …

Member Avatar for stultuske
0
205
Member Avatar for AntonyRayan

Hi, In admin side, I enter the details with image, while uploading the image I get a alert box error like this "DataTables warning (table id = 'DataTables_Table_0'): Requested unknown parameter '6' from the data source for row 0", but the image is saved in db. What is th solution …

Member Avatar for AntonyRayan
0
160
Member Avatar for kubura musah

Hi! I am Abdul-Majeed. I'm a new student to c. I tried writting a game for random multiplication calculation. This was a similer questions for me in my midterm exams. I need friends to inprove it for me. You can also find faults and make corrections to my code #include …

Member Avatar for kubura musah
0
433
Member Avatar for vivosmith

While it is not showing any errors that I can see, my input from an HTML form is not working. I copied part of the script from Visual QuickPro Guide book on PHP 6 and MYSQL 5. I only had one input , so I modified the script for my …

Member Avatar for vivosmith
0
351
Member Avatar for altjen

Hello again. as some of you may know Im creating a software based on SQL dataserver, every code I use is good and work and I use this connection string Dim conn As Data.SqlClient.SqlConnection conn = New Data.SqlClient.SqlConnection("Data Source=192.168.0.100,1433;Network Library=DBMSSOCN;Initial Catalog=SS;User ID=Al;Password=altn") But the ip is the other pc (next …

Member Avatar for AleMonteiro
0
184
Member Avatar for jj.dcruz

Is there anyway i can change this code to a ajax format? $(document).ready(function(){ $("td[contenteditable=true]").blur(function(){ var msg = $(".alert"); var newvalue = $(this).text(); var field = $(this).attr("id"); $.post("update.php",field+"="+newvalue,function(d){ var data = jQuery.parseJSON(d); msg.removeClass("hide"); if(data.status == 200){ msg.addClass("alert-success").removeClass("alert-danger"); }else{ msg.addClass("alert-danger").removeClass("alert-success"); } msg.text(data.response); setTimeout(function(){msg.addClass("hide");},1000);//It will add hide class after 3 seconds }); }); …

Member Avatar for lps
0
345
Member Avatar for olegb

SQL Gurus, help !! I have a table with 3 fields, ID, Answer_5, Answer_6. Answer_5 & Answer_6 both hold a date value, but the fields are defined as string (for other reasons). In Answer_6 it is possible to have the string of 'Now'. I am trying to do a simple …

Member Avatar for AleMonteiro
0
351
Member Avatar for hadisur_rahman

#include <iostream> #include <cstring> #include <cctype> using namespace std; bool testPass(char []);//function prototype to check password int main() { char *password; int length; //assure requested length and password length are the same int numCharacters; //hold number of characters for password cout << "Please enter how many characters you would like …

0
104
Member Avatar for UK-1991

Hello, I was wondering if anyone can gude e about a puzzle i am trying to create and think let me know if this is possible or not. Well there are many users stored i.e admins what if by mistake there is only 1 admin left in the database and …

Member Avatar for lps
0
108
Member Avatar for mattyd

Hello. I am rebuilding a registration page and the accompanying form. I am at a point of implementing jQuery for password validation. It will not validate nor does it give error messages. I have researched this on other sites but nothing so far seems to work at all. Please see …

Member Avatar for AleMonteiro
0
1K
Member Avatar for dbissu2

I need to ScriptManager.RegisterStartupScript(this, GetType(), "getTextValue()", "getTextValue();", true); this value in variable

Member Avatar for AleMonteiro
0
128
Member Avatar for phony

` //Header file: stackADT.h #ifndef H_StackADT #define H_StackADT //************************************************************* // Author: D.S. Malik // // This class specifies the basic operations on a stack. //************************************************************* template <class Type> class stackADT { public: virtual void initializeStack() = 0; //Method to initialize the stack to an empty state. //Postcondition: Stack is empty. …

Member Avatar for tinstaafl
0
959
Member Avatar for tgreiner

OK, here is a problem that I have found described many times on the net, but have not found a definitive solution. Until recently, file writing has worked just fine for me, but no longer. The questions are: Why does it not work now? What might I have done somewhere …

Member Avatar for tinstaafl
0
9K
Member Avatar for Troy III

# Determine if a namespace/variable-name exists # ## Check for namespace existence in your environment variables and objects before writing to them. ## **Guess if "Book1.chapter22.paragraph37" exists without provoking errors and retrieve/send data if it exists with simplest JS expressions.** Call syntax: isNS( [string], [num] ); Example: var nsresult = …

Member Avatar for Troy III
0
310
Member Avatar for samson.oba.77

I´m still new to javascript.For training purpose I have inserted part of a javascript(lines 23 to 31) code into my html file and it works the windows.alert and number 12 shows But when i uncomment parts of it (lines 26 to 28) that javascript code doesnt work well again,the windows.alert …

Member Avatar for Troy III
0
244
Member Avatar for SoMa_2

I have images generated by while loop php based on how many course user have when user press on one of those images it will send him to that course page but all images send to one course page this my php code in** home page ** <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= …

Member Avatar for diafol
0
2K
Member Avatar for MrXortex

Hi I coded a program where you can reverse the contents of an array. But I used two arrays to complete this process, I want to make it work by using only one array. Here is my code so far, it works btw, just need to make it work by …

Member Avatar for tinstaafl
0
468
Member Avatar for fonzali

in windows calculator the digits get seperated in thousands as you type in the number , how can it be done in python ? thanks

Member Avatar for fonzali
0
570

The End.