199,114 Archived Topics
Remove Filter ![]() | |
guys please help, why I get this error from my codes: Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\bernardino_ed\Bloodchem.php on line 125 [ICODE] $username = $_SESSION['username']; // this is for the paganation of records $per_page = 2; $pages_query = mysql_query("select * from tblpatient_info i, tbllab_bloodchem b, tbldoctor_info d, tblpatient_pass p … | |
I'm am trying to make just a simple text-based adventure game, inspired greatly by Zork. Basically all it is is an IF statement for many possible input so the player isn't constrained to inputting their text in a certain format. Then each section is it's own module so when the … | |
When reading input file into the array the last line of the input file is not read in. When i run the program everything ouputs except tea and the cost. input file: 1.45 Bacon and Egg 2.45 Muffin 0.99 French Toast 1.99 Fruit Basket 2.49 Cereal 0.69 Coffee 0.50 Tea … | |
iam reading scale values from a scale in vb.net. now iam getting values like 33333kg and 55555kg and I want to format it such that I get values like 33.333kg and 55.555kg | |
I was wondering if i would be able have the saved items as a way to "login" to my program. in the first form (form1) i have a masked textbox and a button. you type your "pin" into the masked textbox and click the button to enter. i would like … | |
I have two tables, tblstudent having fields [studentId,rollNo,classId,studentName], tblclass having fields [classId, division,className]. The two tables are referenced by field classId. I want to fill tblstudent. Also I want the table tblClass should be filled at the same time. This is for creating reports. Can any one help me.. | |
So im stuck writing a function and was hoping someone would be nice enough to help. My objective is to look at a list of grades such as: [CODE][23 , 64 ,74 , 53 , 55[/CODE] And return a list with the number of grades in each percentage range I.E. … | |
i have a small sample seral comms sample project and its working great .however i want it to run such that it will run continually 24 hours a day and not stop. I do not want any unauthorised persons to close the system, or stop it in any way, any … | |
Okay, so I have a bubble sort that has some issues. It is meant to sort 10 random numbers, and it does....however, in the console I have to press enter about 11 times for it to produce results, what can I do to fix that?? Here's my code: [CODE]using System; … | |
I think my site has been hacked! I found these lines of code on all my php files and I didn't put them there. Problem is I don't know enough php to understand what this batch of code does. Could anyone please help? How bad is it? Here's the code: … | |
I build my project then I open the EXE file at the RELEASE FOLDER, when generating in a crystal report a error message pops up "LOAD REPORT FAILED". | |
Good Day!. I have a big problem. I have here a combobox1 in form1, combobox1 has a value of Mr.A and Mr.B. and the form2 has a evaluation question with 5 radiobuttons. I want that if i choose from that combobox1. The form2 will know who i choose, and when … | |
![]() | I am very new to VB.NET, I want to create a Forms Application to load a text file that has lets say 50 lines, some of the lines are identical and those are grouped together and some same format but different make up. Have it loads it into a text … ![]() |
[CODE] case 'f': case 'F': do { cout << "Enter Finish Time (Max Start + 24h, 0-23:59): "; cin >> FinishTime; if (FinishTime > 2359) { do { cout << "Error! Invalid Finish Time Input." << endl << "Enter Finish Time (Max Start + 24h, 0-23:59): "; cin >> FinishTime; … | |
Hey, I am writing a program that reads in text files that were generated from another program. Some of the files are able to open with no problem but others will not open unless I rename them. For example: 4_UncommonHints_10-07-2008_Ideas.txt opens fine but 5_CommonHints_10-30-2008_Ideas.txt will NOT open unless I rename … | |
I'm posting 20 usernames and 20 passwords, they're named username1 ... username20 and then password1 ... password20. In the page that processes the posted values I have an array like this: [CODE] $postArray = array( *** * other values in array *** $userName1 = $_POST['userName1']; $password1 = $_POST['password1']; * * … | |
From what I have read, command line arguments are only char* separated by space. However feel compelled to ask if anyone knows of a way to get a pointer across to an executable in any fashion? The goal is to pass int *pointers for reasons of inter process communication across … | |
Okay this is starting to bug me. Working on a web based IM system for the site and when a new chat is initiated jQuery adds a name holder and a chat box to the chat bar. For some reason however it doesn't seem to want to work. Here is … | |
I have a project in which i have two roles : Student Teacher I have already created a login page but i cant figure out how to redirect them to different pages according to their Roles... | |
[CODE]<?php //update has an error! ?> <?php include("lock.php");// contains session details $connect=mysql_connect("localhost","root",""); mysql_select_db("login",$connect); if(isset($_POST[""])){ $dept_name=$_POST["dept_name"]; $year=$_POST["year"]; $current_sem=$_POST["current_sem"]; $total_students=$_POST["total_students"]; $regulation=$_POST["regulation"]; } //------------------------------------------------------------------------------------------------------------------ if(isset($_POST["insert"])){ if($_POST["insert"]=="yes"){ $dept_name=$_POST["dept_name"]; $year=$_POST["year"]; $current_sem=$_POST["current_sem"]; $total_students=$_POST["total_students"]; $regulation=$_POST["regulation"]; $query="insert into classprofile(dept_name,year,current_sem,total_students,regulation) values('$dept_name','$year','$current_sem','$total_students','$regulation')"; if(mysql_query($query)) echo "<center>Record Inserted!</center><br>"; } else{ echo"not inserted, try again"; } } //------------------------------------------------------------------------------------------------------------------- if(isset($_POST["update"])){ if($_POST["update"]=="yes"){ $dept_name=$_POST["dept_name"]; $year=$_POST["year"]; $current_sem=$_POST["current_sem"]; … | |
Ok so I am working on a hash map but I ran into trouble with reading in the input. I need to be able to read in the input from a file if specified if not from the console. Thats not a problem but when it comes to reading it … | |
how to create a short summary form in Access Database? I have created a database in which I have created 4 tables 1. Pregnant Women Data 2. Feedback of Pregnant Women Data 3. Traditional Birth Attendants Data 4. Villages Data I have registered 3397 pregnant women, and issued some women … | |
Hello Experts I have following codes [CODE]<html> <head> <script language="Javascript"> function showdate() { var currentTime = new Date() var month = currentTime.getMonth() +1 var day = currentTime.getDate() var year = currentTime.getFullYear() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() var seconds = currentTime.getSeconds() alert(month + "/" + day + "/" … | |
Hi, I'm supposed to write a code of finding the shortest path of VRP... Assume that shortest path = shortest time. "Given a set of locations and a set of homogenous vehicles, find the minimum time of tour that visits each city exactly once by any of the given vehicle. … | |
Hey guys, In prepping for a job interview, I'm trying to eliminate some bad habits and this trivial problem has me realizing how hard that is :'(. The problem: Print a 12 x 12 multiplication table. This is easy.... [CODE]outstring='' for i in range(1,13): for j in range(1,13): outstring +='\t'+str(i*j) … | |
Could you please tell pictorially difference bw these 2 codes(o/p is same) and suggest any source where i can once in for all resolve doubts in pointer to pointer problems except "K&R in ANSI C" [CODE]#include <stdio.h> #include <string.h> void pointer(char**); void main() { char *p[]={"name","fame","claim"}; pointer(p); } void pointer(char … | |
hello good people I am doing indexsort of name and surename. i have some error with index in my sort2 fuction. I can not figure outwhat is wrong. can somebody give me a hint about what to do to fix it. I was also wondering if I can add a … | |
HI there, quick advice please. I am developing a [URL="http://antobbo.webspace.virginmedia.com/petras/test/egypt.htm"]photography website[/URL] for a client and I want him to be able to click on an image in a list of thumbnails and that will bring up the bigger version of the image clicked on. I have achieved this in my … | |
Hello Everyone, I hope this is the right place i'm posting this, basically I need some help with Visual Basic 2008. We've been set a task to build a really basic web browser with one advanced function. I've done the web browser with the basic functionality, but this advanced feature … | |
I am trying to find a bug in my new and (theoretically) improved syntax highlighter program. I have made 3 versions now and have been able to debug them all with ease. Unfortunately my debugger does not do well with std containers as it shows ALL the information they contain … | |
I have a list: [CODE][a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p][/CODE] I would like 4 lists: [CODE][a, e, i, m] [b, f, j, n] [c, g, k, o] [d, h, l, p][/CODE] How would I go about this? Thanks. | |
Hi, I am stuck with a problem.I have an array that contains dates and I want to get the date ranges from this array. For example array('01/01/2012','01/02/2012','01/03/2012','01/05/2012','01/10/2012') Now I want the date range from this array And the dates are not sorted in array. Can anyone help me its quiet … | |
Ancient Dragon was helpful in a way to parse argv(). It brought to mind a method that suggested to me a way to look at the prefix after finding the expected string. For example (as I interpret it) if you are looking for a prefixed command it could be a … | |
Hi folks, I need a solution for following scenario. 1. Suppose two processes running simulteneously. 2. Process (P1) has already locked a mutex (M1). 3. Process (P2) is trying to lock same mutex (M1) but as it is already locked by (P1), P2 is waiting for unlocking (M1). 4. Now … | |
I have a page at this link [url]http://183.78.169.53/lp/addRoute6.php[/url]. You can press first the add button to have at least 5 rows. So then you can select the location for the first row. Then if you select the same location for second row if it is same with the previous it … | |
I wrote a function that will search a string with a substring. When the substring is found, it is replaced with another substring. The problem I have with my code is that it wont replace the substring unless it is in the beginning of the string. Here's the code and … | |
Please tell me why it gives me always zero value? [CODE]<?php $total =0; $memid = $_POST['username']; $leg = $_POST['leg']; mysql_connect ("host", "usr", "paswd") or die ('Error: ' .mysql_error()); mysql_select_db ("dbname"); function getTotalLeg($memid,$leg){ $sql="select $leg from `users` where `username`='$memid' "; $res=mysql_query($sql); $row=mysql_fetch_array($res); global $total; $total = $total+mysql_num_rows($res); if($row['$leg']!=''){ getTotalLeg ($row['$leg'],'lname'); getTotalLeg … | |
i am trying to write a program that will prompt the user to enter test scores terminated by a negative number. and then find the min max and average of the scores inputted. i have gotten everything to work except the average. the assignment says i can only use variables … | |
Hi, I'm having some very hard time with my header files when working with linked lists. I'm not too sure what I need to define in them except for the prototype functions. The way to create strucs within the header files confuse me. This first file is the header for … | |
how to split [COLOR="Red"]<div></div>[/COLOR] into even and odd parts ? And how to slide even parts to top-right & odd parts to bottom-left using jquery? | |
Hello everybody please tell me How to select costum index in a list in vb6 i have a listbox & a command botton & textbox example: we add some items in a listbox list1.additem = "google.com" list1.additem = "Gmail.com" list1.additem = "myspace.com" list1.additem = "youtube.com" list1.additem = "facebook.com" list1.additem = … | |
Me and my group members are planning to add something different to our program, we intend to put JTextField, but we have no idea on how to start it because some of the tutorials are so hard to understand. this is our program: it is a payroll system: [CODE] public … | |
I've followed a tutorial where a Person class was used to illustrate the difference between class and instance variables. Something like: [CODE] class Person(object): population=0 def __init__(self, name): self.name=name Person.population += 1 print 'current population', Person.population Sally=Person('sally') Joe=Person('joe') [/CODE] This example really illustrated the difference between class and instance variables … | |
hi everybody i am trying to update db using gridview but all attempts end up with failure i dont get execptions just nothing happens when i push update button <asp:GridView ID="ResultGridView" runat="server" AutoGenerateColumns="False" ShowFooter="True" DataKeyNames="VendorId" AllowPaging="True" CellPadding="3" OnPageIndexChanging="ResultGridView_PageIndexChanging" OnRowDeleting="ResultGridView_RowDeleting" OnRowEditing="ResultGridView_RowEditing" OnRowUpdating="ResultGridView_RowUpdating" OnRowCancelingEdit="ResultGridView_RowCancelingEdit" PageSize="5" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellSpacing="2" OnRowCommand="ResultGridView_RowCommand" > … | |
Hi all, How can I make the items in a standard values collection identical to the items contained in a previously defined (dynamic) array of strings? Here's a snippet; [CODE] Public Class ElementList : Inherits StringConverter Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As ITypeDescriptorContext) As Boolean Return True End Function … | |
I wrote this code for an assignment that asked to create a program that calculates and displays the average of any amount of real numbers. The program is supposed to ask the user how many numbers they want to enter and then use a loop to ask the user to … | |
My code is: [CODE]System.Data.OleDb Public Class Form1 Dim cn As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data … | |
![]() | Alright, I have a Webbrowser which has a page opened. I want it to select a specific Option from the Combobox. How can I do that in VB ? HTML Code: [CODE]<select name="Protected"> <option value="NC"></option> <option value="ON">ON (protected)</option> <option value="OFF">OFF (unprotected)</option> </select>[/CODE] VB Code: [CODE]For Each element As HtmlElement In … |
Hello, I am currently working on an algorithm and i am quite confused. The algoritm is: Put q = 19 1. For i=1 to 3 If the ith element of the list is a letter then If the letter’s position in the alphabet is an odd number then q = … | |
what's the problem? E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp||In function 'int main()':| E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp|36|error: invalid use of member (did you forget the '&' ?)| ||=== Build finished: 1 errors, 0 warnings ===| [CODE] #include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { // informed user cout << … |
The End.