190 Topics

Member Avatar for
Member Avatar for drumichael87

I am developing in WordPress plugins and I would like to know.if someone could guide Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how …

Member Avatar for drumichael87
0
177
Member Avatar for stephen_UK

Ideally I would like to take a value entered from an Option List and use it in a linked program before the form is submitted, The value would be used in a select search so that the operator then knows what to format of data to enter in the next …

Member Avatar for stephen_UK
0
195
Member Avatar for mwansari

Hi, I want to know how to replace variables of RTF file using PHP language. Please help me....

Member Avatar for diafol
0
2K
Member Avatar for DaveyMoyes

Hi everyone, I have been using strcmp in a website I am helping with, we use this to check against passwords when a user is resetting thier password. The problem I have at the moment is, when ever i try to use the strcmp to check against numbers It always …

Member Avatar for broj1
0
143
Member Avatar for Parloverde

So I'm currently making program for my year 12 IPT assignment. It's a maths game for Year 4's and 5's. I need to carry a variable throughout the entire project (across forms) so I can easily specify what level the user is playing and how many questions they want to …

Member Avatar for Parloverde
0
2K
Member Avatar for velr

Hello! I am working on a server program that has a connection to a MySQL database. In one of my sql:s i need to use [URL="http://dev.mysql.com/doc/refman/5.0/en/user-variables.html"]User-Defined Variables[/URL] but i can't get it to work. The sql looks something like this: [ICODE]"SET @rank=0; SELECT id FROM (SELECT @rank:=@rank+1 AS rank ..."[/ICODE] …

Member Avatar for JamesCherrill
0
2K
Member Avatar for arwalters1990

Hello. I've been viewing this site for a long time, but finally decided to join and ask for help. I'm using citrusDB and a sample code from authorize.net and I want to pass off some information from the citrus DB to the authorize.net code. I've been trying to do this …

Member Avatar for arwalters1990
0
326
Member Avatar for |-|x

I have a datasource on my page, the select query of which creates a pivot table. The complexity is that the columns in the pivot are determined by records in another table (the users table). So I have to use a prepared statement to build and execute the pivot query, …

Member Avatar for |-|x
0
324
Member Avatar for boiishuvo

That is a little homework for myself. I was trying to make a simple program that you entry your name (acts as a password) and if it's on the list then you may access, otherwise (aka else) you're not allowed to access. The problem is I can't put more than …

Member Avatar for zeroliken
0
184
Member Avatar for nexocentric

I'm having a small problem with a variable in one of my PHP scripts. The variable is `$isSubMenu`. It gets set using a function that runs recursively called createNavigationMenu. However, even though I have set it, the interpreter keeps telling me that the variable is undefined. I really don't know …

Member Avatar for nexocentric
0
563
Member Avatar for yanwick

Hi, Im using session variables and when passing from one page to another with a target="_top" the session variables are erased. Is there anyway i can go around this problem ? Any idea will be greatly appreciated. Thank you

Member Avatar for yanwick
0
204
Member Avatar for dendenny01

How can I transfer the values inserted in <input type="text" name="num1"> to radio button <input type="radio" name="rep_num1" value="">On submit of form. Actuall when user insert the value or text in the textbox the value of the text box should replace or transfer to the value in radio button when user …

Member Avatar for Topi Ojala
0
272
Member Avatar for jahanruhi3@gmai

package com.batch; import java.sql.*; import java.text.SimpleDateFormat; import java.util.ArrayList; import DBConnection.DBConnect; public class Batch { @SuppressWarnings({ "unchecked", "rawtypes" }) public ArrayList BatchAction(String ik) { Connection conn = null; Statement st1 = null; Statement st2 = null; ResultSet rs1 = null; ResultSet rs2 = null; ArrayList al = new ArrayList(); conn = …

0
167
Member Avatar for DaveyMoyes

Hi all, can someone tell me why I am unable to concatinate the variable $id to the members.php ? Its driving me mad. . . [code] $id = $row["id"]; $_SESSION['SESS_MEMBER_ID'] = $id; setcookie("id", $id, time()+86400); $securecode = $row["securecode"]; $_SESSION['SESS_SECURE_CODE'] = $securecode; setcookie("securecode", $securecode, time()+86400); $creff = $row["creff"]; $_SESSION['SESS_CREFF'] = $creff; …

Member Avatar for Biiim
0
206
Member Avatar for greatman05

So, I'm a bit confused with how inheritance works in relation to variables. Let's say that I had the following class: class Test { private: int var1; float var2; public: void getInfo(int,float); void setStuff(int,float); }; Now, let's suppose that I wanted to derive a class from that base class; I …

Member Avatar for Ancient Dragon
0
206
Member Avatar for Dingo001

Let me say here at the start I am not a programmer, just interested.. I am trying to load a file to youtube on the first day of the month and set the file name as the lastmonth-thisyear.avi like March-2012.avi I have tried this but get an error: File to …

Member Avatar for diafol
0
132
Member Avatar for zeeshanmughal

Is this possible to pass the php variable to the url? my code is: [CODE] <?php $array1 = array("iphone", "ipad","iMac"); for($test = 0; $test <= 2; $test++) { echo '<a href="https://www.google.com?$array1[$test]">Click me</a><br />'; } ?> [/CODE] How do i do that when i click on the link it will show …

Member Avatar for karthik_ppts
0
327
Member Avatar for mickburkejnr

Hi everyone, I'm building a project with CakePHP and I would like to be able to have pages that are created dynamically. So, if a user goes to [url]www.domain.com/page-name[/url], the controller should take the /page-name part of the URL, search the database for it, and then display the results in …

Member Avatar for mickburkejnr
0
369
Member Avatar for Sorcher

Hello i am trying to make my Ajax fetch the right <input button value. The <button is generated by PHP and will look like this. [CODE] <input type="button" value="Private" id="txtCustomerId" onclick="requestAlbumInfo()"/> <input type="button" value="Public" id="txtCustomerId" onclick="requestAlbumInfo()"/> <input type="button" value="Nature" id="txtCustomerId" onclick="requestAlbumInfo()"/>[/CODE] My Ajax needs to fetch the value="" and send …

Member Avatar for Sorcher
0
116
Member Avatar for kavithabhaskar

I am looking at a source code There is a class called A and it has a parameter in its _init_ function called. Class A self.id = id There is another class called B and has a parameter in its __init__ function called Class B self.ide = ide There's an …

Member Avatar for inuasha
0
115
Member Avatar for grh1107

how you would compute/denote the time complexity of two loops based on different variables? I understand how to compute the time complexity for a simple loop PseduoCode while X<N { while Y<M { Z++ } X++ } one loop occurs N times - time complexity O(N) the other loop occurs …

Member Avatar for mrnutty
0
312
Member Avatar for sc0tty

I am new to python and cant figure out what I am doing wrong with the global variables. Here is an example of the problem I am having. number = 0 def test(): global number number = raw_input("Please type a number.") def prints(): global number if number2 != 1: print …

Member Avatar for sc0tty
0
207
Member Avatar for Wolxhound90

Hey guys, I'm just starting out with Android development using Eclipse. The only programming language that I've used a lot before is VB.NET, so I'm just wondering, is it possible to create variables which you can then add to over the course of the session? I'm particularly thinking of strings …

Member Avatar for Wolxhound90
0
125
Member Avatar for VIEBlitz

[CODE]package test; import java.util.Scanner; public class Test { public static void main(String[] args){ Scanner kbReader = new Scanner(System.in); System.out.print("Choose mode (\"words\" or \"symbols\"): "); String mode = kbReader.nextLine(); if ("words".equals(mode)) { String oa = " plus "; String os = " minus "; String om = " times "; String …

Member Avatar for VIEBlitz
0
163
Member Avatar for shaynadz

Hi! I'm new here! I have a quick question about an error I found in my script. I'll jump straight into the code and then make my question: [CODE]$description = $_POST['desc'];[/CODE] this is a text description for example "Monthly Tuition". [CODE]$amount = $_POST['amount'];[/CODE] price of tuition [CODE]$dlnumber = $_POST['cedula'];[/CODE] drivers …

Member Avatar for diafol
0
180
Member Avatar for ibeast

Hello, I wrote the following code to create dynamic controls-textboxes and labels. [CODE] ctlRow += 1 ctlRowLocation += 25 Dim new_ForceLabel As New Label new_ForceLabel.Text = "Force" + Convert.ToString(ctlRow - 1) new_ForceLabel.Location = New Point(txtForceLabel.Location.X + 2, ctlRowLocation) new_ForceLabel.Height = 25 new_ForceLabel.Width = 50 Dim new_ForceInput As New TextBox new_ForceInput.Name …

Member Avatar for ibeast
0
1K
Member Avatar for chillysnow

Hi, I am using Paypal to do my payment processing, however the user authentication JSP session variables I am using are expiring during the transition from my site to paypal's then back to mine again. The result is obviously that access is denied on return and the transaction does not …

Member Avatar for peter_budo
0
183
Member Avatar for codechrysalis

ok so im working on a application that displays the charges along with displaying the zip code. I seem to have a IO exception error for the console.clear() line. Is there anything else I need in order to display the charges along with zip code? Im thinking a nested if …

Member Avatar for skatamatic
0
165
Member Avatar for Sabyre

I'm working on an auction script for a client. This portion of the script pulls all the open auctions from the database and allows bidding, but they only want bidding on auction with 30 seconds left until it ends. [CODE] $query = "select * from DSI_auctions WHERE closed='0' AND suspended='0' …

Member Avatar for pritaeas
0
131
Member Avatar for abathurst

I have a form where a user can search for properties from a database. Everything is working except for the suburb search. I would like the user to be able to search for more then one suburb. At the moment I have the information from the textbox being separated into …

Member Avatar for adam_k
0
128

The End.