199,114 Archived Topics
Remove Filter ![]() | |
When I insert data into the database, for instance, a new client, and after that query the clients in the database, the new client is not immediately shown in the list. For it to be listed, I have to clear the cookies and log in, again, into the site. Why … | |
![]() | CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on … |
protected void Page_Load(object sender, EventArgs e) { double totalUsage = 0; int rowCount = getRowCount(); int columnCount = getColumnCount(); string[] xValues = getColumnName(); double[] yValues = new double[columnCount]; SqlConnection conBudget = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdBudget = new SqlCommand("SELECT Foods, Clothes, Drinks, Entertaiment FROM DailyBudget WHERE (Username=@username)", conBudget); conBudget.Open(); cmdBudget.Parameters.AddWithValue("@username", "gahhon"); … | |
Hello, I have Error Like this when i open the table in phpmyadmin.. why this is happening with table ? please any solution for that... #145 - Table is marked as crashed and should be repaired Thanks | |
Need a project on mobile apps in vb 6.0 as desktop application | |
Dear Sirs, I would like to update some information in my MySQL through a PHP syntax, but it won't work. I'll show you my code. while($info = mysql_fetch_array( $data )) { if ($info['author'] === $user_data['username']) { print '<div class="registerleft"> <form action="" method="post"> <ul> <h2>A tulaj</h2> <li> Vezeteknev<br> <input type="text" name="first_name" … | |
hi i'm new to vb. how can i write to iterate while loop till the end of the string.. can any one help please... | |
<?php require("Dbconnect.php"); //echo "<table id='t1'>"; $cls=$_GET['class']; //$count=0; echo $cls; $qry ="select cls_section_id from class where Class_name='$cls' "; $result=mysql_query($qry); while($row=mysql_fetch_array($result)) { echo $row['cls_section_id']; } ?> http://localhost/ediary/school%20%20diary%20system/subjectassign.php?class=%20NURSERY-A therefore $cls has value=NURSERY-A and when i am querying it does not result anything and instead of $cls if i use 'NURSERY-A' directly then output … | |
Hi all, quick question about a website I am about to build. Basically, somewhere on the homepage, presumably quite far down closer to the footer I will have a div with two clickable tabs: when clicked they will show different content but the url of the page needs to stay … | |
I have created a game where the player moves a character around the screen but if a ball hits them then they lose the game however I'm stuck with the part where the ball collides with the player as it simply doesnt work. Here is my code: // Imported libaries … | |
Hello, So I have a PHP page where I can enter my name, address, phone #, etc. I have some of these fields designed to be required information. If I do not enter something in the required fields, then information I have in other fields are lost when I submit … ![]() | |
Hi, Can anyone give me an efficient algorithm for adding an element into a sorted matrix of linked list such that the size of the columns remains constant. Thank-you, Sri | |
i want to start developing on windows mobile app, which enterpretter should have to use??? | |
I'm completely clueless to this as I have never used crystal reports before. So I want to use a textbox to pass values into my crystal report so basically only those I inputted into my textbox will be read and be outputted into my crystal report. Here is my code … | |
When to trying to display data to datagrid view using query i got an error "a column named date already belongs to this datatable in net 2008" Dim dt As New DataTable Try myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim cmd As New SqlClient.SqlCommand With cmd .CommandText = "SELECT [Date],[Totalamount] FROM … | |
i want to construct a Message class which encapsulates and handles data for sending over a network; i want to acheive something like this: Client->Send(new CMsgPacket("Some Message", CHAT_COLOR_WHITE, CHAT_TYPE_SERVICE)); // send function deletes the data after processing it // this is the CMsgPacket class class CMsgPacket { private: int Msg_Len, … | |
iam creating a question paper for students where multiple questions are there with 4 choices per question and on submit butto i want to validate the given answers from answers save in the database. i have no any idea thathow to do it can anyone tell me the solution with … | |
Hi, i have this output from a SQL query : new = (('{reason:slash,data:{"SET0":"=SET2"}}',), ('{reason:slash,data:{"""REM_1""": """=0xFF""", """REM_2""": """=0x1""", """SET0:REM_3""": """=SET2:REM_3""", """MREM_4""": """=0xFF"""};{}}',)) I am trying to get it such that i put all these items in a dic in the following manner : {'MREM_4': '=0xFF', 'REM_2': '=0x1', 'REM_1': '=0xFF', 'SET0:REM_3': '=SET2:REM_3'} … | |
Please could someone help me with this one? I have developed a small application to call several powerpoint presentations. The user will enter the powerpoint number and the powerpoint will be shown in Viewshow form. However this is not the case. The powerpoints are showing in the normal powerpoint form … | |
in sheet1, i have a table like this activities date completed drawing jan.1,2013 painting jan.6,2013 (note:this table is downloaded from web,everytime the value on the web changes,the value in the excel spreadsheet also changes.) then, i have a form . it is composed with a combo box and a textbox. … | |
Hi Everyone. A real noob question here, Sorry in advance. I have found a php function online - public function ft_xss($str, $charset = 'ISO-8859-1') { /* * Remove Null Characters * * This prevents sandwiching null characters * between ascii characters, like Java\0script. * */ $str = preg_replace('/\0+/', '', $str); … | |
Detailed information needed for chatroom using mysql, php, and javascript | |
Hi Everyone... I have been digging around the web for the last two days trying to fix this problem myself, but have come to the realization that I need some help. I have a mysql query that selects all country names from my country db, (works as described) I then … | |
From http://pymbook.readthedocs.org/en/latest/modules.html I've added some code to this code to make a little header for my code snippets as an exersise. """ Bars Module ============ This is an example module with provide different ways to print bars. """ def starbar(num): ''' (int) -> integer Prints a bar with * >>> … | |
public partial class Member : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Username"] != null) lblUsername.Text = Request.QueryString["Username"]; } public string getUsername { get { return lblUsername.Text; } } } } This is when master page load will display Username to the `lblUsername` and it success to … | |
Hi everyone , I'm trying to login to a site and it does not work , I don't see the problem .. $user = 'user'; $pass = 'pass'; $url = 'http://ecat.elit.ro/Default.aspx'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POSTFIELDS, 'ctl00$ContentPlaceHolder1$LoginControl$tbLoginUser='.urlencode($user).'&ctl00$ContentPlaceHolder1$LoginControl$tbLoginPass='.urlencode($pass).'&ctl00$ContentPlaceHolder1$LoginControl$btnLogin=Intrare'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, … | |
Demonstrates the Right Hand Rule maze solving algorithm, with some sweet console colors and text display and erasing, in Windows. Note that if the Start is moved away from all the walls in the maze, the right hand rule fails, circling endlessly. Also, a similar failure happens if the Start … | |
How can i able to update the textbox value once the radio button selected index change and without post back method? and tricks? thanks for advance. | |
![]() | Hey Guys, I need your expertise. Please help me. In the following program, 2 matrices and given values and then displayed. The program works fine but I really can't understand how it works. #include <stdio.h> #include <stdlib.h> void getmat(int a[50][50],int n) { int i,j; for(i=0;i<n;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); } void printmat(int … |
Hi guys, I have a page that contains elements (filenames of uploaded images) that dynamically update the database upon clicking and dragging them to reorder. Most of this is working wonderfully. Part of this functionality is based upon each record having a recordID column (apart from the primary key column). … | |
I have a large data set (12,000 rows X 14 columns); the first 4 rows as below: x1 y1 0.02 NAN NAN NAN NAN NAN NAN 0.004 NAN NAN NAN NAN x2 y2 NAN 0.003 NAN 10 NAN 0.03 NAN 0.004 NAN NAN NAN NAN x3 y3 NAN NAN NAN … | |
I have the elements to create XSD in the DB. such as a sample row would be.. XSD_TAG XSD_DATATYPE TYPEDEF MAXBOUND MINBOUND PARENT reject string basic null null sources so basically says that one of the tags to be constructed would be reject and it is of type string. the … | |
how to convert install_amt to comma delimited array $select = mysql_query("SELECT ac_no,cust_name,install_amt,GROUP_CONCAT(install_amt) FROM ankali_slabpay WHERE agent_id=$agent_id GROUP BY ac_no"); $a=array(); while($row1 = mysql_fetch_assoc($select)){ $installment = $row1['GROUP_CONCAT(install_amt)']; $a=explode(",",$installamt); ![]() | |
Hello.I want to add my own slideshow that I saved it on one of my hard disk partition[E:]before,on the top of my web pages. I used joomla version 1.5.11.Would you please tell me how can I do that? Thanks | |
If I have a table like this: Table1 ID - sequence - value 1 1 6 1 2 4 2 1 3 2 2 2 3 2 6 4 1 5 5... Table2: ID - Firstname 1 Jack 2 John 3 Mark 4 Mary Querry Result I hope for: ID … | |
Hey guys, I was just wondering how I can get a filebrowser to open folders and files and put the path depending whether its a file or folder. e.g. if the filebrowser selects a folder then in textbox1 the folderpath should appear and if the filebrowser is a file then … | |
I have a 8 digit number that is an int, and would like to know if there is an equivalent method that i could use on it like charAt(). or a way to take just one digit out so that it is still an int value and be able to … ![]() | |
I can't find anything to help me out on this method of sorting. How do I do it? | |
SqlCommand cmdColumnName = new SqlCommand("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='DailyBudget' ORDER BY ORDINAL_POSITION", conBudget); // bla bla bla SqlDataReader dtrColumnName = cmdColumnName.ExecuteReader(); if (dtrColumnName.Read()) for (int i = 0, x = 1; i < count; i++,x++) categories[i] = dtrColumnName[x].ToString(); dtrColumnName.Close(); The problem said the index was out of bounded. As … | |
Hello Friends, Thank you for coming in this Disscussion thread. I need some helpp for you guys, Yeasterday some one ask me a question. The Question is why we use mysql_query in php. I don't have any answer of that Question. please tell me why we use mysql_query? Thank you … | |
<%@ Page Title="" Language="C#" MasterPageFile="~/Member/Member.Master" AutoEventWireup="true" CodeBehind="Budget.aspx.cs" Inherits="MSJ_Bank_Financial.Member.Budget" %> <%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %> <%@ MasterType VirtualPath="~/Member/Member.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="CPHInformation" runat="server"> <div id="Chart" style="width: 600px"> <asp:Chart ID="pcBudget" runat="server" BackColor="Transparent" Height="600px" Width="600px"> <Titles> <asp:Title BackColor="Transparent" Text="Daily Budget" Alignment="MiddleCenter" Font="Estrangelo Edessa, 30pt"/> </Titles> <Series> <asp:Series Name="Series1" ChartType="Pie" … | |
Hello everybody, I want to insert some data with an array to my mysql database, but it won't work. These are my codes, what could be the problem? register.php: if (empty($_POST) === false) { $required_fields = array('first_name','last_name','number','district','street', 'house_number', 'appointment_date', 'comment', 'anchor'); foreach($_POST as $key=>$value) { if (empty($value) && in_array($key, $required_fields) … | |
Hi, I have an assignment that requires me to write out the code for a game. It involves 3 columns and random numbers between 0-100, so you have to place a random number into each column and as soon as the number below gets bigger, the game finishes. The main … | |
hi to all i want to use c program in python or in other way i want to run c program from python | |
Hi Below is a code sample i copied from the book that i am reading.But i need explanation on why creating a reference to the figure(Eg: Figure figref;) when each reference for the individual class is already been declared. Like if i need the area of the rectangle,i could have … | |
I'm trying to build google+ sign in feature. I'm able to get all the user data from google+, how can i insert this data into database? I know js is client-side language and it is needed to be done on server side....... my code: <span id="signinButton"> <span class="g-signin" data-callback="signinCallback" data-clientid="My-client-id" … | |
Array1 = array(000,400,000,500) Array2 = array(300,400,450,500) if the values of Array1 matches with Array2 values then the matching values of Array2 should be replaced with 000 i.e. Array2 = array(300,000,450,000) somebody help me. thanks in advance | |
I am interested to get ActionEvent generated by multiple components from another class... please help. Example is given below. class MyFrame { public MyFrame() { JFrame window = new JFrame(); Container c = window.getContentPane(); c.setLayout(new BorderLayout()); JButton btn1 = new JButton("Save"); JButton btn2 = new JButton("Delete"); c.add(btn1); c.add(btn2); EventHandler handler … | |
I want save 1one image and tow text with one image example :card person |
The End.