Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 123
Search took 0.33 seconds.
Search: Posts Made By: rpjd
Forum: JavaScript programming 03-19-2012, 11:50 AM
Replies: 4
Views: 22,792
Posted By rpjd
Thanks Kor. Sorry, abduraooft, I forgot to...

Thanks Kor. Sorry, abduraooft, I forgot to choose a Category for this post. It wasn't intentional, apologies to all concerned.
Forum: Ajax and Design 05-26-2011, 01:31 PM
Replies: 0
Views: 525
Posted By rpjd
accessing a php value

On the webpage (php) that I am working on I have a counter displayed beside a button. If the counter is 0, 0 is displayed. When the button is clicked, a php script increases the counter and then...
Forum: JavaScript programming 05-25-2011, 01:43 AM
Replies: 2
Views: 485
Posted By rpjd
wrapping a link around a php value

I have the following table row printing on a webpage
echo "<tr><td id='counter1'>{$row['counter1']}</td><td><input type='button' name='counter1' onclick='submit();'</td></tr>";
While counter1 is 0,...
Forum: MySQL 05-24-2011, 10:36 PM
Replies: 5
Views: 834
Posted By rpjd
Cheers guys, its working now. Well if you've...

Cheers guys, its working now. Well if you've never heard of files have numbers as names, you have now!
Forum: MySQL 05-24-2011, 09:34 PM
Replies: 5
Views: 834
Posted By rpjd
Your suggested solution gives a syntax error at...

Your suggested solution gives a syntax error at 'As Male'
Forum: MySQL 05-24-2011, 07:04 PM
Replies: 5
Views: 834
Posted By rpjd
Count users by gender

I have two tables Users and Changes
Users
Username, Address, County, MemberType, Gender

Changes
Filename, Username

the query is to count the number of male and female users in various...
Forum: PHP 05-23-2011, 07:40 PM
Replies: 2
Views: 265
Posted By rpjd
When one of the buttons is clicked I can get the...

When one of the buttons is clicked I can get the user type using the session username. I then check the the appropriate button with
if(isset($_POST['ButtonName']))
I can then get the LineNo (first...
Forum: PHP 05-16-2011, 03:19 PM
Replies: 2
Views: 265
Posted By rpjd
Increasing counters

I have the following ouput as part of a POST submit form. There are 3 types of users with own counters and submit button. I use the Username(session) and Line No to increase counter. How do I...
Forum: JavaScript programming 05-11-2011, 11:33 AM
Replies: 4
Views: 723
Posted By rpjd
can someone advise on this? if(condition...

can someone advise on this?

if(condition true)
{
echo "<script type='text/javascript'>display('divID1');</script>";
echo "<div id='divID1'>div contents</div>";
}
else
{
echo "<script...
Forum: JavaScript programming 05-10-2011, 12:53 PM
Replies: 4
Views: 723
Posted By rpjd
I forgot the quotes. Correction: (if...

I forgot the quotes. Correction:


(if condition true)
echo "<script type='text/javascript'>display('divID1');</script>";
echo "<div id='divID1'>";
(if condition true)
echo "<script...
Forum: JavaScript programming 05-10-2011, 11:22 AM
Replies: 4
Views: 723
Posted By rpjd
table/div display

I'm using php to write nested div's to a page. The div's display depending on a condition

(if condition true)
echo "<script type='text/javascript'>display(divID1);</script>";
echo "<div...
Forum: DOM and JSON scripting 04-26-2011, 01:08 AM
Replies: 2
Views: 502
Posted By rpjd
finding document id using $_POST values

I'm want to find any id's on a page that are the same as values submitted to the $_POST['Ref'] array.
$source = file_get_contents( 'E:/wamp/www/Project/File.php' );
$document = new DOMDocument;...
Forum: Graphics and Multimedia discussions 04-24-2011, 01:41 AM
Replies: 0
Views: 637
Posted By rpjd
Turning a map into a form

I have a map (jpeg image) of a country with various regions outlined on the map, how can I turn the map into an interactive form, whereby clicking on any name/region on the map produces statistic for...
Forum: PHP 04-22-2011, 03:53 PM
Replies: 1
Views: 482
Posted By rpjd
finding html table id using session data

Is this the correct way to find a html table that is the same as a session variable?
$Ref = $_SESSION['Ref'];
for($i=0; $i<count($Ref); $i++)
{
$source = file_get_contents( 'CurrentPage.php' );...
Forum: MySQL 04-22-2011, 09:46 AM
Replies: 10
Views: 1,726
Posted By rpjd
Got it working. $sql = "create table `$var`...

Got it working.
$sql = "create table `$var` (colum names(types))";
Forum: MySQL 04-21-2011, 11:54 PM
Replies: 10
Views: 1,726
Posted By rpjd
If it works in the mysql console, I can't see why...

If it works in the mysql console, I can't see why it would work with php, possibly, probably different syntax. At least I hope!
Forum: MySQL 04-21-2011, 10:11 PM
Replies: 10
Views: 1,726
Posted By rpjd
I tried your solution Old Pendant but it did't...

I tried your solution Old Pendant but it did't work got this errror
Incorrect Table name.
Forum: MySQL 04-21-2011, 08:18 PM
Replies: 10
Views: 1,726
Posted By rpjd
I created a table called '2' in mysql console...

I created a table called '2' in mysql console using:
create table `2` (column1, column2,.....);
How can I do this using php if the table name is $var?
Forum: MySQL 04-21-2011, 07:50 PM
Replies: 10
Views: 1,726
Posted By rpjd
numeric table names

I want to create a table with numeric and partly numeric names such as '1' and '1-2'. Reading the mysql docs, tables can have numeric names as long as they are string literals. The table names are...
Forum: PHP 04-20-2011, 04:49 PM
Replies: 4
Views: 551
Posted By rpjd
The login password was the same as the password...

The login password was the same as the password on file but nothing was happening. The problem seemingly was the Password field in my passwords table. The max length of password at registration is...
Forum: PHP 04-20-2011, 02:51 PM
Replies: 4
Views: 551
Posted By rpjd
session not recognised

In my login script I have assigned
session_start();
$_SESSION['Username'] = $Username;

On my webpage I have
$session_start();
echo $_SESSION['Username'];
However, I am getting undefined...
Forum: MySQL 04-18-2011, 09:39 PM
Replies: 6
Views: 703
Posted By rpjd
I tried your solution Wojjie as is in mysql...

I tried your solution Wojjie as is in mysql console and it gave me unknown column Male. I tried it again with the Male and Female comparisons in single quotes, i.e Gender='Male' and Gender='Female'...
Forum: MySQL 04-18-2011, 08:52 PM
Replies: 6
Views: 703
Posted By rpjd
Using latest Wamp server, MyIsam engine. I was...

Using latest Wamp server, MyIsam engine. I was thinking of doing a main select on the party, then seperate select queries for each count or is there a more efficient approach?
Basically the...
Forum: MySQL 04-18-2011, 08:08 PM
Replies: 6
Views: 703
Posted By rpjd
3 queries in 1

I want to run the following query:
select the number of men and women who voted for each party in each US state. Can this be done in a single query? If so, whats the best way to approach it? ...
Forum: Graphics and Multimedia discussions 04-18-2011, 04:01 PM
Replies: 6
Views: 3,190
Posted By rpjd
Something along that line yes, where each state...

Something along that line yes, where each state would be clickable as a link, though not necessarily as a seperate image.
Showing results 1 to 25 of 123

 
Forum Jump

All times are GMT +1. The time now is 05:37 AM.