Getting the follwoing error message. How to fix this? **Parse error: syntax error, unexpected end of file in** Actual Code: <?php session_start(); include("connection.php"); $sqlsettings = "SELECT * from admin"; $resultsettings = mysql_query($sqlsettings); $rowsettings = mysql_fetch_array($resultsettings); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?php echo $rowsettings['ScriptName']; ?> - World's No. 1 Matrimonial Website Script</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="css/landing.css" type="text/css"> <link rel="stylesheet" href="css/homepage.css" type="text/css"> <script language="Javascript" src="js/matrimonials-v10.js" type="text/javascript"></script> <script language="Javascript" src="js/matrimonials-landing1.js"></script> <script language="Javascript" src="js/mouseovereffect.js"></script> <script language="Javascript" src="js/home-pg.js" type="text/javascript"></script> </head> <body style="margin: 0px;"> <a name="Matrimonials"></a> <a name="Matrimonial"></a> <center> <div class="width"> <div class="graytxt smallcnt" style="padding: 2px 0px; …

Member Avatar
Member Avatar
+0 forum 1

I need help with a program for school. I am a very novice pascal programmer. I need to allow the person using the program to add a record and then search for it and view it. Currently, whenever I add a record via the program and try to search for it and view it, the same record shows up. This first program is the program I used to create the file. PROGRAM SpellingBeeFile; USES CRT, SYSUTILS; TYPE TestRec = RECORD TestNo : LONGINT; Word : ARRAY[1..10] OF STRING[15]; Definition : ARRAY[1..10] OF STRING[40]; END; TestFileRqd = FILE OF TestRec; VAR …

Member Avatar
Member Avatar
+0 forum 3

Hello, help me please. I have a db sample ( http://i.imgur.com/JRZ2ojP.png ) I have 1 combobox and 1 textbox If the combobox select "Notebook" then on the textbox it must be display the corresponding itemStock (3) Please :( By the this my simple code for my combobox Try Query = "SELECT * FROM tbl_items" MySqlCommand = New MySqlCommand(Query, CNN) MySqlDataReader = MySqlCommand.ExecuteReader combItems.Items.Clear() Do While MySqlDataReader.Read combItems.Items.Add(MySqlDataReader(1)) Loop End If Catch ex As Exception MessageBox.Show(ex.ToString, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error) Finally MySqlDataReader.Close() End Try

Member Avatar
Member Avatar
+0 forum 1

i developed a system in xampp 1.7.2, and now i run it in xampp 1.8.2 (lastest version) i got this error Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\ hint: in xampp 1.7.2 no error anybody can tell me why?

Member Avatar
Member Avatar
+0 forum 10

Hi folks...get into the wayback machine. :) I have a VB6 program I'm drastically modifying due to vendor API changes. This isn't my natural language, so I have to hack around every time I change things. Problem now is that the program won't end. I know it hits the END statement, but it just stays running. I can see it in Task Manager. I don't think it's consuming any additional CPU or memory. I *think* I may have some object open. Is there a programmatic way I can iterate through a list of all my open things so I can …

Member Avatar
Member Avatar
+0 forum 2

Hello. Please guide me how to start a session when a user clicks on login page and the info finds correct? How to check this session on other pages which i want to secure from unauthorised access? if the session found then open this secure page, otherwise redirect the user to the index page? and How to end this session when user clicks on Logout? Regards.

Member Avatar
Member Avatar
+0 forum 2

**I am trying to read the records from and to a CSV file in C. Of course i want to stop when I have read all the records. If I use a for loop it works perfect except I have to know how many records there are. if I change to a while loop it only reads one record. I read many of your great examples and tried different things. I have tried !=EOF and == all number from 1 to 10. It still only reads one line. Can you give me a suggestion please. (please don't tell me to …

Member Avatar
Member Avatar
+0 forum 2

[import java.util.Scanner; import java.util.Random; public class HangmanMy { public static void main (String[] args){ System.out.println("Welcome to the game Hangman :)/>"); Scanner input = new Scanner(System.in); boolean done = false; String guess; String guesses = ""; char letter; int wrongGuess = 0; StringBuffer dashes; System.out.println("Choose a category -> places / games / animals / subjects "); String words = WordsToChoose(input.nextLine()); dashes = makeDashes(words); while (! done) { System.out.println("Here is your word: " + dashes); System.out.println("Guesses so far: " + guesses); System.out.print("enter a guess (letter or word): "); guess = input.next().replaceAll("\\W", ""); // process the guess if (guess.length() > 1) { if …

Member Avatar
Member Avatar
+0 forum 2

I need a perl script to extract the starting and ending positions of a column here is the input HETATM 7749 C1 NFG A1001 -31.772 -7.604 -23.847 0.80 61.71 C HETATM 7750 O1 NFG A1001 -30.806 -8.518 -23.305 0.80 65.42 O HETATM 7751 C2 NFG A1001 -32.987 -7.507 -22.895 0.80 60.75 C HETATM 7752 F NFG A1001 -34.161 -7.378 -23.591 0.80 60.24 F HETATM 7753 C3 NFG A1001 -32.871 -6.337 -21.918 0.80 59.86 C HETATM 7754 O3 NFG A1001 -33.668 -6.536 -20.739 0.80 59.28 O HETATM 7755 C4 NFG A1001 -31.392 -6.167 -21.609 0.80 58.86 C HETATM 7756 O4 NFG …

Member Avatar
Member Avatar
+0 forum 8

For example > look at the code below <div class="s1 s2 s3"> //content goes here </div> This class is added dynamically, so i like to know how the find the second class (say for example : **"s2**"). and do some action..

Member Avatar
Member Avatar
+0 forum 4

Hi! I was wondering, is there any way to make a website perform a Google search for certain keywords? As in, the user types keywords and then the site returns, say, the 1st result that comes up on Google? Best Regards, Emir

Member Avatar
Member Avatar
+0 forum 2

hi, for program to be concurrent i created 4 threads as below Thread th1 = new Thread(a1.run); Thread th2 = new Thread(b1.run); Thread th3 = new Thread(c1.run); Thread th4 = new Thread(d1.run ); th1.Start(); th2.Start(); th3.Start(); th4.Start(); how do i know when the threads are finised done with the work, i print the th4 output to the consol panel and i know it is done with its work) but the program does not end how do i end the threads? appreciate a reply thanks

Member Avatar
Member Avatar
+0 forum 4

How do I end membership with DaniWeb? I can't find a way out!

Member Avatar
Member Avatar
+0 forum 21

why visual basic compiled program not working where visual studio is not installed

Member Avatar
Member Avatar
+0 forum 2

Basically what I want to do is when the user browses and finds the file he wants to add the extension to I use a button click to add a .NOPE extension or something like that. I have no idea how to get it to find the end of the text and add that though. Help would be greatly appreciated!

Member Avatar
+0 forum 0

Hi, Can someone help me on this. I need to make here a log when request is start and when is end. I want to see how much time is taken for request/response. WebResponse response = webRequest.GetResponse(); //Console.WriteLine(((HttpWebResponse)response).StatusDescription); // Get the stream containing content returned by the server. Stream dataStreamResponse = response.GetResponseStream(); // Open the stream using a StreamReader for easy access. StreamReader reader = new StreamReader(dataStreamResponse); // Read the content. string responseFromServer = reader.ReadToEnd(); // Display the content. Console.WriteLine(responseFromServer); //<---- // Clean up the streams. reader.Close(); dataStreamResponse.Close(); response.Close();

Member Avatar
Member Avatar
+0 forum 4

Hi peeps, sorry for the silly questions, but can anybody clarifying where front end development ends and where back end starts? I mean I have in mind javascript for front end, but then would you consider php, asp.net backend? Perhaps somebody could clarify please? thanks

Member Avatar
Member Avatar
+0 forum 2

Hello Every one Please Help me on My problem i want to close a application proccess in taskmanager using vb6 Example: we open a notpad.exe and we want to close it using visual basic 6.0 to this way we have a Command botton Private Sub Command1_Click() ' Here my command to close notpade.exe ' when i click this botton. End sub Razamughal

Member Avatar
Member Avatar
+0 forum 3

I need the program to end the loop after player1 has won but the program continues to run until the loop is done i was wondering i know i need a break statement but i do not know where to put statement at.Any help is appreciated. import javax.swing.JOptionPane; public class ticTacToeGame { /** * @param args */ public static void main(String[] args) { int response; String player1 = null; String player2 = null; player1 = createUser1(player1); player2 = creatUser2(player2); do{ int i = 0; do{ String boardCreator = JOptionPane.showInputDialog(null, "Please enter the size of your game board?", "", JOptionPane.QUESTION_MESSAGE); i …

Member Avatar
Member Avatar
+0 forum 10

C++ was once the King of programming. It would crush any competitor! But, now it seems that C++ is getting less popular. New programmers are rushing to easier to learn, higher level, programming languages (e.g. Java). And with Microsoft coming out with C# which is gaining popularity (even though it is an EXTREMELY high level programming language), what does it all mean for C/C++? - [B][I]WolfShield[/I][/B]

Member Avatar
Member Avatar
+0 forum 107

The End.