190 Topics

Member Avatar for
Member Avatar for learningcpp

Hi Guys, What is the scope of the exception variables when I catch them by reference. [CODE] try{ throw AnExceptionObect("Exception message"); } catch(AnExceptionObect &exp){ logger << exp.what(); //logger is a dummy object throw; //what will happend now? is it going to be throwen by value? and what if I catch …

Member Avatar for learningcpp
0
197
Member Avatar for razgrizz25

Undefined variable: no in C:\xampp\htdocs\war\cPanel\pollingTampil.php on line 28 [CODE]<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Daftar Polling</title> </head> <body> <table width="702" border="0" cellspacing="1" cellpadding="2"> <tr> <td width="58">no</td> <td width="232">pertanyaan</td> <td width="122">op1</td> <td width="104">op2</td> <td width="96">op3</td> <td width="59">&nbsp;</td> </tr> <?php include "inc.session.php" ; include 'C:\xampp\htdocs\war\librari\inc.koneksi.php' ; $sqlTampil = "SELECT * FROM polling …

Member Avatar for ko ko
0
177
Member Avatar for BlueCharge

Hello Everyone, I have chosen to use Google Custom Search with my website and was given the following code, my question is, how can i pass a search query from my homepage which has a standard form on there to the search page which holds this code? I am given …

Member Avatar for BlueCharge
0
233
Member Avatar for sallecpt

Hey there I know one can use include [url]http://domain/page.php?var1=xxx&var2=xxx[/url] But I dont need an include This is what I need to do, and how on earth can I achieve this? I've burnt my brains already. Please help me. [CODE]$command = "/usr/bin/php5 -f /home/path/to/file/test.php?folder=777";[/CODE] then run the command. so, test.php needs …

Member Avatar for jnicholls92
0
112
Member Avatar for johng123

have problems understanding the logic of using variables inside this code. why ist it possible to use %s for different variables and how is it possible to use them as %1$s and %2$s...without even defining them somewhere...i just dont get it, the complete code can be viewed in the thread: …

Member Avatar for vibhaJ
0
184
Member Avatar for gambit_1607

hi i'm using a jQuery Inline Modal Window. the code for it can be found here [url]http://www.sohtanaka.com/web-design/inline-modal-window-w-css-and-jquery/[/url] i currently have an array within a function in javascript. when i click on the appropriate link for the inline modal, the inline modal window appears. my function looks something like this [CODE] …

Member Avatar for gambit_1607
0
156
Member Avatar for DeIntegro

I am having problems loading images from my database. I think it's something with the variable...i am new to PHP and have a project i need to finish by Tuesday. Your help is appreciated. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for dos_killer
0
467
Member Avatar for bigdan182

hey guys, im fairly new to this so feel free to tell me if i need to supply more info. basically i need to write code to read in a text file and store different values in different variables, so for example i would read in: bob 1.1 maths 1.2 …

Member Avatar for abhimanipal
0
246
Member Avatar for terabyte
Member Avatar for klemme

Hi All, Can someone tell my how I can make this work: I have subjects AND pages from the Database. I am in this small script deciding which link is set, a subject or a page. Also I am showing the relevant pages under each subject, by ordering the pages …

Member Avatar for diafol
0
262
Member Avatar for doctorphp

Hi everyone. I have made a mailing list script but I want to modify it so that I can post some variables in the message box. I would like something like this. [ATTACH]20604[/ATTACH] To display something like this. [ATTACH]20605[/ATTACH] I have tried putting [CODE]' . $fetch['first'] . '[/CODE] and [CODE]$fetch['first'][/CODE] …

Member Avatar for doctorphp
0
1K
Member Avatar for LloydFarrell

Hi everyone, I have been asked to help extract data from a xml file and use the data to input into html form designed in php I have read a few articles but im missing the point some how... On the file that im trying to get the data to …

Member Avatar for LloydFarrell
0
594
Member Avatar for LloydFarrell

Hi all - I have a xml file that I am trying to extract data from and create variables to use in a PHP / html form. I am new to extracting information from xml and creating variables The XML file is show below and what I would like to …

Member Avatar for LloydFarrell
0
146
Member Avatar for elliot81

Hi, im having trouble understanding how private methods are accessed, and overall how they are used. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SIT232_Ass1 { public class Plan { // declares constant private const int CHARGE_BLOCK = 30; // declates our private variables private decimal _MonthlyFee, _CallAllowance, _CallRate; …

Member Avatar for elliot81
0
137
Member Avatar for altXerror

i have part of a text based game that keeps track of the HP , DEF... and such. it needs to be able to replace the current value for the variables, in which case are: [CODE]long HP, def, sheild;[/CODE] for instance, you battle a monster and the attack does 75 …

Member Avatar for daviddoria
0
86
Member Avatar for JDevelop

Hi everybody! Now I'm dealing with binary file handling and I need to read 70 bits into a variable from a file. As far as I know (correct me please, if I'm wrong), C does not have any variable type that could hold such large data. (I think) I cannot …

Member Avatar for JDevelop
0
2K
Member Avatar for rkayd

I'm new to javascript and need to know how to store variables in cookies so that I can later use them later in php code. Here is the basic javascript I want to use: [CODE] function alertSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == …

Member Avatar for rkayd
0
171
Member Avatar for Acids

I am a total noob at php and I am creating a basic wordpress plugin for a site. I have a function [CODE]function My_Function_2() { ?> [/CODE] Then I have an input inside a div coming from an options page: [CODE]<form method="post" action="options.php"> <?php wp_nonce_field('update-options'); ?> Define Box height <table …

Member Avatar for ko ko
0
171
Member Avatar for jrotunda85

Ok, I currently have three different pages in play here. [LIST=1] [*]Cigar.php - This is the individual cigar page, dynamically generated based on a GET Value [*]Cigarreview.php - This is where a user goes to review a cigar. It has a drop down menu that pulls from the DB and …

Member Avatar for jrotunda85
0
1K
Member Avatar for Kniggles

Hello , I am stuck on this line of code [CODE]echo $hits[0];[/CODE] i am trying to get it to echo into a text box as an integar. at the moment the code [CODE]<?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); …

Member Avatar for tomato.pgn
0
210
Member Avatar for progr

I am having problems accessing a variable from one class to another. [CODE] class Player(pygame.sprite.Sprite): def rotateShip(self, rotAmt): radians = self.rotation * math.pi / 180 [/CODE] I am trying to use the variable radians from class Player to another class. radians only exists in 'rotateShip'. Thanks for your help in …

Member Avatar for Gribouillis
0
151
Member Avatar for jrotunda85

Is there anyway to format Phone Numbers and/or Web Address [U][B]PRIOR[/B][/U] to inserting them into the database? For example, let's say a user puts one of the following telephone numbers into the box: (777) 111-2222 777-111-2222 777.111.2222 7771112222 I would like these to be stored in the database as: (777) …

Member Avatar for diafol
0
299
Member Avatar for jrotunda85

I am trying to create a page where a registered user can go, view the information from their profile, and update that information if necessary. I've started putting something together however it's inefficient in my opinion. Here's what I'm trying to figure out: [LIST=1] [*]Is there a way to check …

Member Avatar for diafol
0
166
Member Avatar for dooleyis

Hi everyone, I was wondering if it is possible to point to a textbox created in the form designer via a string variable. Basically, I'm creating a golf management system with a feature allowing a user to define their own course. Each hole has a corresponding textbox into which a …

Member Avatar for dooleyis
0
210
Member Avatar for relient28

Hello everyone, I am new to this forum and programming in general and had a quick question. In the code below, I was wondering why it was necessary to initialize the variables. I understand the general purpose of initialization(no garbage data) but I don't see what the point is here …

Member Avatar for L7Sqr
0
123
Member Avatar for jvlb

Hy!. i remember that in Qbasic i could assign values to variables from a text file. (not in the code inside.). How to make the same in VB.NET? Thanks in advanced.

Member Avatar for CodeWord
0
100
Member Avatar for almefab

Hi all, i have a variable in a JFRAME that i need to use in a JPANEL. How can i do that. Example: MainProgram that launches Java Application. Window1 that is a JFRAME Window2 that is a JPANEL In Window1 I have a variable declared example int X = 0; …

Member Avatar for almefab
0
945
Member Avatar for ptemedia

Hi, This may seem like a really easy fix but I'm new to JQuery and I've been staring at my code for ages now and can't find the solution. The code is for a two line navigation system. It works fine except when the user stops hovering over 'wrap' the …

0
73
Member Avatar for twohot

I'm looking for ways to create variables in python3 as needed. E.g book1 = book(name1) # book is a class book2 = book(name2) book3 = book(name3) book4 = book(name4) book5 = book(name5) : : : V book-n = book(name-n) I have the names of the book in a list but …

Member Avatar for twohot
0
253
Member Avatar for Joe34

The End.