166 Topics

Member Avatar for
Member Avatar for itamardori3

**Hey, so i got syntax error when i'm trying to use this file** Parse error: syntax error, unexpected $end in /var/www/vhosts/airlinesofisrael.com/httpdocs/phpvms.full/lib/skins/lolim/layout.tpl on line 129 my code is below, can someone help please? :) <?php /** * * * * * * * * * * * * * */ ?><!DOCTYPE …

Member Avatar for itamardori3
0
225
Member Avatar for cjohnweb

I've considered myself somewhat of a procedural PHP expert, there is nothing I can't solve...Except this. You know when you try to declare a function that already exists and in the error you get a reference to where the function is located, the file and line number? Well, I am …

Member Avatar for veedeoo
0
177
Member Avatar for mlhazan

I am currently working on a blog page and I need to highlight codes.It will grow as time passes so I am thinking in a broad sense.Geshi looks nice codes are readable but draw back is server side.If a page has 3/4 file it may make it delay on the …

Member Avatar for pritaeas
0
122
Member Avatar for nuclear

Example code: [CODE]HWND CreateButton(const HWND hParent,const HINSTANCE hInst,DWORD dwStyle, const RECT& rc,const int id,const ustring& caption) { dwStyle|=WS_CHILD|WS_VISIBLE; return CreateWindowEx(0, _T("button"), caption.c_str(), dwStyle, rc.left, rc.top, rc.right, rc.bottom, hParent, reinterpret_cast<HMENU>(static_cast<INT_PTR>(id)), hInst, 0); }[/CODE] The part I dont get is: [CODE]dwStyle|=WS_CHILD|WS_VISIBLE;[/CODE] So the question would be why do we use '|' and …

Member Avatar for VernonDozier
0
240
Member Avatar for Labdabeta

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 …

Member Avatar for Labdabeta
0
350
Member Avatar for magicmarkuk

Hello again I have two questions regarding the REPLACE command. The first query I am running is [CODE]update phpbb_posts set post_text = replace(post_text, '[del]', '[ b][ i]') update phpbb_posts set post_text = replace(post_text, '[/del]', '[/i][/b]')[/CODE] Note - in the above code I have had to add a space before the …

Member Avatar for smantscheff
0
271
Member Avatar for Farhan_B

I sence victory been battling the this code for 2 days now. the code i have generated is [CODE] strsql = "delete from cg_security_user_right where user_id= " & TextBox1.Text & " role_id=" & TextBox2.Text & ""[/CODE] it comes up with this error Syntax error (missing operator) in query expression 'user_id= …

Member Avatar for Phasma
0
149
Member Avatar for klemme

Hey, I am trying to create this EVENT via phpmyadmin, but I get a syntax error which I cant see: This is the code for the event: [CODE] DELIMITER | CREATE EVENT delete_cart ON SCHEDULE EVERY 5 MINUTES DO BEGIN DECLARE cartID INTEGER; DECLARE cartProductID INTEGER; DECLARE cartAntal INTEGER; DECLARE …

Member Avatar for klemme
0
152
Member Avatar for epicrevolt

Alright, for some odd reason, the below syntax is incorrect. I have successfully connected to the database on previous lines, now i'm trying to create a table. The error I get is: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for epicrevolt
0
293
Member Avatar for Octet

I am attempting to send the data from a set of radio buttons to my MySQL Database so that I am able to get people to review the site. When I did my initial test with a single radio button in a test database all went well, however when I …

Member Avatar for Octet
0
277
Member Avatar for jrcampbell

I've been working on some code for a while, and it seems that I have a problem at the moment. The code, to me, looks correct and should work, but while trying to use PEAR to send mail out, it's throwing this error: PHP Parse error: syntax error, unexpected T_STRING …

Member Avatar for jrcampbell
0
211
Member Avatar for MBPFAN

I'm using python IDLE v. 2.7.2 and I get the same error report with my program. [CODE]>>> def menu(list, question): for entry in list: print 1 + list.index(entry), print ") " + entry return input(question) - 1 [B]items[/B] = ["Cup","Vase","Table","Lamp","Bowl","Door"] keylocation = 3 keyfound = 0 loop = 1 print …

Member Avatar for MBPFAN
0
1K
Member Avatar for Ajuddy

i need to have Total of price displayed in webgrid. from the code below. [CODE] @{ var db = Database.Open("SmallBakery") ; var selectQueryString = "SELECT * FROM Product ORDER BY Id"; var data = db.Query(selectQueryString); var grid = new WebGrid(source: data, defaultSort: "Name", rowPerPage: 3); } <!DOCTYPE html> <html> <head> …

Member Avatar for mani-hellboy
0
139
Member Avatar for mijorog

In my database I have a datediscontinued. When someone runs a a report they select a start date (FORM.StartDate) and an end date (FORM.EndDate). I need to find the records where date discontinued is between the start and end date. If the start date is NEQ to the end date …

Member Avatar for arrgh
0
143
Member Avatar for rapidwein

<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="Raphael.js"></script> <script type="text/javascript"> <?php include("class.logger.php"); //path to class.logger.php file $log = new logger(); //Instentiate the class $log->dbconnect(); //connect to database //pass the name of the table as the parameter. I.e. 'logger" $log->createtable('logger'); //set date and year text for the info bubble that appears …

Member Avatar for broj1
0
219
Member Avatar for borchu

Hello, I am asking about true syntax of the following:: I have a class name P and in header file (of this class) ------> [CODE] class P { public: P(); ~P(); void addItem(const int newItem); void deleteItem(const int Item); void showAll(); /** need to proper getter funct. of tail */ …

Member Avatar for borchu
0
236
Member Avatar for jdgieschen

Hopefully I don't have to put all my code in. I have 3 separate pages of php set up. I want a user to be able to go to my website and search a bunch of criteria to find a good school for himself. There are checkboxes, radio buttons, text …

Member Avatar for jdgieschen
0
265
Member Avatar for black22622

Turbo C++ is showing declaration syntax error with this statement. Help. void main() { test s; int ch,roll; char name[30],choice,join; clrscr(); It is showing the error with the ' { ' . I have used proper header files and stuffs, and this is just a part of my 700 line …

Member Avatar for raptr_dflo
0
4K
Member Avatar for collin_ola

Hi, I seem to be getting the error "Syntax error in UPDATE statement." when attempting to update my database through visual studio 2008, using forms. Here is the code for the connection: [CODE]Private Sub btnLoadDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadDB.Click Provider = "PROVIDER=MICROSOFT.ACE.OLEDB.12.0;" Source = "Data …

Member Avatar for collin_ola
0
224
Member Avatar for ben25x

This code prints coordinates for a square that another program uses. For space's sake I have cut out all the other program's code, but I believe it is a simple syntax mistake with my if() statements. I have followed the rules and looked just about everywhere and followed all of …

Member Avatar for Adak
0
171
Member Avatar for qwertpink

dear all, [CODE]$member_id = $_POST['member_id']; $delete = 'yes'; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; $DB = 'hrs'; $link = mysqli_connect($HOST, $USERNAME, $PASSWORD, $DB); $query = "UPDATE member SET delete='$delete' WHERE member_id='$member_id'"; echo $query; $result = mysqli_query($link, $query) or die(mysqli_error($link)); [/CODE] Any error in my query? it says …

Member Avatar for simplypixie
0
222
Member Avatar for pynoobie

I am having trouble compiling an exe. I tried both py2exe and cxfreeze with similar results, I made an exe but it didn't work. I figured out that I needed to send the image files and sounds with it (should have thought of that to begin with). Now that I …

Member Avatar for pynoobie
0
240
Member Avatar for oldezwe

Here is my code... [CODE]import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class example1{ public static void main(String[] args) { try { Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","user","password"); Statement state = (Statement) con.createStatement(); String username = "John"; String password = "John1"; int experience = 0; int level = 1; String insert = "INSERT …

Member Avatar for vadriaan
0
206
Member Avatar for iamthesgt

This is homework. I have to write a bash shell script using awk to process three delimited text files and produce a formatted report. The three files are as follows: [CODE]GRADES file John Bunyan:90:100:75:60 Maria Montessori:80:90:60:82 Alice Cooper:75:80:54:47 Harvey Mudd:89:45:89:95 PROJECTS file test1:30 test2:30 paper2:20 exam:50 LEVELS file A:89.5 B:79.5 …

Member Avatar for Fest3er
0
297
Member Avatar for towerrounder

Hi all. I come from an MS SQL background and a newbie in MY SQL. Im trying to run a simple query to populate a table: [CODE]Declare @I As Int Select @I = 1 While (@I < 100) Begin Insert into tbWhatEva Select @I Select @I = @I + 1 …

Member Avatar for towerrounder
0
208
Member Avatar for ilovejava

my objective is to implement an Java to HTML syntax highlighter. The program should works like this 1) It reads in any .java source code file 2) It parses the file for keywords, strings, numbers, etc. 3) It outputs HTML markup of the source code 4) When you open the …

Member Avatar for ilovejava
0
229
Member Avatar for TrueCoding

Hi Im currently a student trying to figure out how to search a 2D Array in C#. The program that Im trying to make is an Address Book. Basically I want to search the array for a keyword such as "First Name", I then want to be able to print …

Member Avatar for Antenka
0
371
Member Avatar for Labdabeta

How do you show code on a website? Right now I define a bunch of CSS styles called Comment, Preprocessor, Keyword, etcetera. Then make a two column table, make the left column line numbers and and the right column each row has a line of code. Then I manually go …

Member Avatar for pritaeas
0
143
Member Avatar for umair jameel

How to convert int value to another data type in java or from other data types to int.I just need syntax of it.

Member Avatar for JamesCherrill
0
74
Member Avatar for JRDJ12

Hey all, I have an assignment that was assigned for the week that I could use some help on (not asking for someone to do it for me, just help with the step-by-step). Below is the requirements: 1) Create a new Java Project named whatever you'd like in your existing …

Member Avatar for stultuske
0
197

The End.