Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

variables

1
vote
4 answers
45 views

How can i check if a variable is saved or not in the db?

I have this code: $local_id = $_GET['id']; $sql = dbquery("SELECT * FROM `videos` WHERE `id` = ".$local_id." LIMIT 0, 1"); while($row =…
asked June 24, 2011 10:40 am CDT
m3tsys
0
votes
0 answers
36 views

.htaccess replace (rewrite) $_GET variables in php url

I have a URL that will be something like site.com/index.php?p=test so that the php will load the test variable using $_GET['p']. The url can already…
asked June 23, 2011 8:21 pm CDT
hetoan2
0
votes
1 answer
42 views

Setting environment variable TESSDATA_PREFIX in Tomcat

We are using Tesseract OCR Java library called Tess4J. It works fine if run as a standalone application. It needs a variable called TESSDATA_PREFIX…
asked June 23, 2011 4:03 am CDT
Vish
0
votes
0 answers
32 views

How do I detect whether or not lighttpd has passed a user from port 443 ssl as oppsed to port 80?

We have apache running behind lighty which is fielding all port 80 + port 443 requests. Some apps in apache require that a ssl connection and of…
asked June 20, 2011 6:05 pm CDT
mjb3677
0
votes
1 answer
55 views

CodeIgniter Select Query

I have a simple CodeIgniter Active record query to select an ID: $q = $this -> db -> select('id') -> where('email', $email) -> limit(1)…
asked June 20, 2011 2:30 am CDT
Roman
0
votes
3 answers
39 views

Mysql - reusing calculated values

I don't know exactly how to word this question but here it is. I want to reuse values that i calculated in my query to calculate another value.…
asked June 15, 2011 2:30 pm CDT
Ibu
0
votes
2 answers
25 views

Using variables that contain special characters in Perl regexes

I'm trying to search an array for lines that contain $inbucket[0]. Some of my $inbucket[0] values include special characters. This script does…
asked June 14, 2011 1:56 pm CDT
McLuvin
0
votes
3 answers
37 views

How do I make a RTF (Rich Text Format) document through PHP from a form submission?

I'm searching on Google but most of the results I'm getting have these complicated software being used. I'm choosing to use RTF because it's the…
asked June 7, 2011 11:50 pm CDT
Qlidnaque
1
vote
4 answers
34 views

Re-use variable outside of function?

How can I use return the $row array in the below example, so that I can re-use the variable outside of this function ? I manage to echo the…
asked June 1, 2011 5:03 pm CDT
Joe
0
votes
1 answers
47 views

Extending BaseHTTPRequestHandler - getting the posted data

I've seen this question, but I want to be able to access the data that's POST'd, external from the handler. Is there a way to do this? Following is…
asked June 1, 2011 10:53 am CDT
KevinDTimm
0
votes
2 answers
27 views

PHP: Query Exceeding Max Time (How to handle this)

Ok. I have my query written finally for my php file (which will write the query to a txt file). However, when I was testing the file earlier I…
asked June 1, 2011 9:47 am CDT
Louis Stephens
0
votes
4 answers
37 views

Parse file with BASH script and copy pattern match to a variable

Say I have a file (php as it happens), with a number of variable declarations: $dbuser = 'fred'; $dppass = 'abc123'; $dhhost = '127.0.0.1'; What I…
asked May 30, 2011 10:10 am CDT
Bryan
0
votes
2 answers
30 views

How to return whats in a specific mysql cell by querying another value thats in the same row?

I'm trying to make a php page that i can navigate to like... http://mydomain.com?id=12345 in my mysql table there is a id column and a text…
asked May 26, 2011 12:55 am CDT
brybam
0
votes
1 answer
29 views

PHP If statement within else

Newish to php and can't seem to find any info on the web on how to do the following. I need to add the following code after the mysql query in the…
asked May 21, 2011 10:38 am CDT
Harry
0
votes
1 answers
41 views

Ubuntu Environment Variables for Apache

I have some variables written in /etc/environment NLS_DATE_FORMAT=DD/MM/YYYY NLS_DATE_LANGUAGE=SPANISH NLS_LANG=SPANISH_SPAIN.WE8ISO8859P1 However,…
asked May 12, 2011 6:42 am CDT
Sergiu
0
votes
1 answers
28 views

Need a sanity check on my SQLite query?

Simple iPhone app that shows user a list of coupons based on the category of coupon they select. I haven't tested this yet because I'm still a long…
asked May 10, 2011 5:10 am CDT
truthsmiles
0
votes
0 answers
25 views

Very lost in layers of variables (PHP, JavaScript, MySQL)

I am making a cascading drop down list, but for some reason the whole thing breaks when I am trying to add a third variable, which is "column".…
asked May 7, 2011 1:39 pm CDT
Ryan Valverde Ward
0
votes
1 answers
32 views

How to extract a small string before a colon from a variable with jQuery and Regex?

Hi guys, I have a JavaScript variable similar to: "a_name_string: RT @<a href="http://twitter.com/SomethinG">SomethinG</a>: Lorem ipsum…
asked May 6, 2011 7:02 am CDT
atwright
2
votes
6 answers
39 views

PHP force a var to have a certain type

This may be a stupid question but I might aswell as it :) is there away to force $tel1 = '05';// string settype($tel1,'string'); $tel1 = 06;//either…
asked May 4, 2011 9:30 am CDT
Val
0
votes
4 answers
40 views

Basic php question - saving "options" and retreiving them with php/mysql

Hi This is a pretty basic question, that I hope can help others. I'm very new at php/mysql. I'm designing a website where the administrator can…
asked May 3, 2011 9:01 pm CDT
Andypandy
Pages : 1 | 2 | 3 | 4 | 5 >
88

variables

Tagged: variables
Related Tags
mysql × 62
php × 49
regex × 15
sql × 7
javascript × 7
select × 5
database × 4
query × 4
session × 4
arrays × 3
string × 3
join × 3
update × 3
function × 3
.htaccess × 3
html × 3
jquery × 3
sqlite × 2
bash × 2
echo × 2
apache × 2
python × 2
insert × 2
preg-match × 1
count × 1