233 Topics

Member Avatar for
Member Avatar for phummon

Hi everyone, I'm a moderately experienced C++ programmer working on code which must do the following: (a) Import data from a lot of little CSV files (b) Load that data into various objects (c) Do stuff with that data The code I've written does (a), (b), and (c) pretty well, …

Member Avatar for phummon
0
186
Member Avatar for .watts.

Hello all, I've made my first wordpress theme from scratch and as expected I'm running into some trouble getting it to function. Here's the error message: Parse error: syntax error, unexpected $end in /home/seve4033/public_html/blog/wp-content/themes/sevensharks/footer.php on line 35 ...line 35 is </html> so I'm lost as to what is unexpected. If …

Member Avatar for chrishea
0
170
Member Avatar for php-coder

hi guys, im using dreamweaver8, do bear with me I'm a newbie. Im trying to insert multiple rows from a form into the same table in mysql. I mixed some code I saw online with the code generated in dreamweaver and then when I tried running the page I got …

Member Avatar for JRM
0
233
Member Avatar for herbozo2

hi guys, I'm kind of new with xml. I have an xml file in the following format, with 592 records: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <data> <item> <buildingName>Chateau</buildingName> <address>81 North Broadway, White Plains, NY</address> <mail>I</mail> <laundry>I</laundry> <garbage>I</garbage> <parking>I</parking> <rating>No Access</rating> <municipality>White Plains</municipality> </item> <item> <buildingName>44 Franklin Avenue</buildingName> <address>44 Franklin Avenue, New Rochelle, …

0
73
Member Avatar for csharp12

Hello I want to parse html in treeview. I haven't made it because some html tags <br> not close. How can I load html content with parsing in a treeview

Member Avatar for kvprajapati
0
80
Member Avatar for fenixZ

Hi, I have a class and i have unset() within a function in it which throws Parse error unexpected T_UNSET. Some code : [code] class foo { function abc() { unset($this->err['main']['sub']['TOBEDELETED']); } } [/code] Where I want to unset only key TOBEDELETED . What may cause this?

Member Avatar for fenixZ
0
112
Member Avatar for tjsail

Hey Everyone... Not quite sure how it works on these forums as this is my first post, but I am looking to separate elements of lines printed to a text file in real-time for a log parser. An example of the text output is: [INDENT][CHAT WINDOW TEXT] [Sun Nov 29 …

Member Avatar for rohini.vangury
0
502
Member Avatar for urzur

Hello, I'm trying to convert a double (3.16) and take its integer part (3). However I'm encountering problems doing this. Can someone pleeease help me out ? Here is my code: [CODE]main: li $v0, 7 #asking the user for a double syscall mov.d $f2, $f0 cvt.s.d $f4, $f2 #converting from …

0
106
Member Avatar for Buckoo

I am trying to parse a xml document and extract certain information. I have looked around quite a bit and haven't been able to find anything that would suit my needs. the sample xml file would look like this: <contact> <name> Daffy Duck </name> <street> 15 Rodeo Drive </street> <city> …

Member Avatar for Salem
0
106
Member Avatar for dreinzy

Hello folks, I'm getting the error message "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/login.php on line 9". I've been at it for hours and my eyes are starting to bleed, I would greatly appreciate a code-weary traveller could spot my mistake. Here's the first 10 lines of my page. …

Member Avatar for dreinzy
0
2K
Member Avatar for emma.parsons

I am new to programming in Python and I am just wondering if I could have some help. I am trying to write a program which creates diary entries for events and I am currently trying to convert the raw_input from the user into a date (yyyy/mm/dd) and time (24hr …

Member Avatar for hondros
0
222
Member Avatar for doctorjo5

I know that this is an easy one but it is hard for me to figure out. I need to make a program that can: * Open the file and read through all of the lines in the file. (got this) * If a line starts with "Subject:", skip the …

Member Avatar for woooee
0
159
Member Avatar for elt6801

I have a task that sounds simple enough... but I don't code in Python; my background is in network design. So, here we go, I have to write a script that scans text files on a network share to parse for anything in the the text log that begins with …

Member Avatar for elt6801
0
163
Member Avatar for lws1976

I recently install wprdpress to my website, after all steps done, when I log in it show this error: Parse error: syntax error, unexpected '@' in /home/carsonle/public_html/wp-includes/general-template.php on line 430 After check my general-template.php files line 430 it show this: if ( !empty($cat) ) { Anyone can help me?

Member Avatar for ShawnCplus
0
96
Member Avatar for pkrdimos

Hi. I am new both in daniweb and as a web programmer (university student) and I'd really like some help, if possible, with a shopping cart I've been developing for a lesson/project of mine. The error I get is: Parse error: syntax error, unexpected '{' in C:\Apache_PHP_MySQL\xampp\htdocs\site\basket.php on line 135. …

Member Avatar for pkrdimos
0
142
Member Avatar for Drahmina

I have a String stored in this format "10/10/2009 12:00:00". I would like to convert this into a DateTime object so I can add it into the Outlook calender. I have tried using the following code but it doesnt seem to work. DateTime startDate = DateTime.Parse(appointments[i]); (where appointments[i] is a …

Member Avatar for Ravenheart
0
257
Member Avatar for notuserfriendly

I need to read from a file and be able to split it into columns and ignore a line if it starts with ' . '. the text file is made of 3 columns but at some lines there are no words in the first column here is an example …

Member Avatar for 7stud
0
394
Member Avatar for tobisan

Hi there. Im pretty new to PHP and have made a terrible mistake, Im getting this message Parse error: syntax error, unexpected T_STRING ......functions.php on line 2 the site workd fine but failed once Ive tried to add a sidebar, Ive tried to replace the function.php code Ive just eddited …

Member Avatar for tobisan
0
426
Member Avatar for Vandithar

Hi, I have strings like this: [code] $string="OWN - NLM STAT- Publisher DA - 20091005 AU - Gannon AM AU - Turner EC AU - Reid HM AU - Kinsella BT AU- XYZ AD - UCD School of Biomolecular and Biomedical Sciences"; [/code] I want to parse these tags and …

Member Avatar for eggmatters
0
148
Member Avatar for network18

I have an API parsing script, which inserts into the db more than 40,000 rows.and maybe due large numbers of queries getting fired continuously, after some specific time the script throws "MySQL server has gone away" error. I know the reason behind this error can be closed connection or any …

Member Avatar for network18
0
695
Member Avatar for jacquelinek

I have a txt file as an input. It is a list which looks like this: [COLOR="Red"]A12345 B153875 C34893 ... ...[/COLOR] and I have a database file which looks like this: [COLOR="Green"]A12345 detail information nvonafwenfovosdncsjdnfoewhuwerhwieufhiudhfisdfnsd sdofnowerugfeuhgfurhgiuwerhfjdshfiasdhifheruwufhi irgfiweurgf A246 detail information isdofnowerugfeuhgfurhgiuwerhfjdshfiadhifheruwufhi wgerjgneiguihuhdnvkjdnvkjbdegiauberiubgieubgridfb ooogrngoawerngiauengugbuivrug B153875 detail information wgerjgneiguihuvkwwjddnvkegtiaugberijubgieubgridfb eragnowergnoweungfiousdhiuhsdnjkfnsk C34893 detail …

Member Avatar for d5e5
0
159
Member Avatar for jtabak2

I am new-ish to python and need to write a short program which will take a file with many lines of sets of coordinates alongside a defined variable of a series of letters and out a 3 columned file with columns x, y, and letter. the input file has each …

Member Avatar for jice
0
154
Member Avatar for miac09

Hi all, I'm learning python and hope someone can help me with a sort of tricky search/parse problem. I have a tab deliminited file like this: 2 1 863.8 300.2 0.0131 0.0759 0.1727 0.0879 1.5821 3 1 874.5 289.5 0.0574 0.1292 0.4447 0.2258 1.1846 3 2 874.5 289.5 0.0573 0.0527 …

Member Avatar for jice
0
154

The End.