190 Topics
|
|
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 … |
|
|
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 … |
Hi, I want to know how to replace variables of RTF file using PHP language. Please help me.... |
|
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 … |
|
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 … |
|
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] … |
|
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 … |
|
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, … |
|
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 … |
|
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 … |
|
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 |
|
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 … |
|
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 = … |
|
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; … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
[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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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' … |
|
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 … |
The End.