Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for AliHurworth

Evening all, I'm trying to create a javascript loop to output a range of radio buttons numbered 1 to 10. This is part of a form, which will display the input on the next page. So I have two problems. For testing only, I'd like to alert the value of …

Member Avatar for adam.adamski.96155
0
206
Member Avatar for AliHurworth

Hi all, I have a database which I would like to use to power an HTML list. I'm struggling to get the loop to print out more than one line. This is the script: [CODE] <?php $query = "SELECT * FROM `table` ORDER BY `year` ASC"; $resultID = mysql_query($query, $conn) …

Member Avatar for AliHurworth
0
202
Member Avatar for AliHurworth

Hi, can anyone help with formatting a date range query in MySQL? It's just a form to enter two dates, and a second page to run the query and show the output. The form looks like so: [CODE]<form id="getdate" action="tracking_result.php" method="post"> <table> <tr> <td> <input type="radio" value="single" checked="checked" name="type"/> </td> …

Member Avatar for AliHurworth
0
257
Member Avatar for AliHurworth

Hi, I'm trying to create a drop down menu with dynamically populated options. So, within a typical HTML form I have: [CODE] $conn = mysql_connect ("localhost", "xxxx", "xxxx"); mysql_select_db ("wkho_TTX", $conn); $query = "SELECT * FROM venues"; $result = mysql_query($query) or die(mysql_error()); $num=mysql_numrows($result); $i=0; while ($i < $num) { $option …

Member Avatar for lyrico
0
110
Member Avatar for AliHurworth

hi all. i'm struggling with the following code - can't seem to get the variables within the function to work... [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Teabag calculator</title> <script language="javascript" type="text/javascript"> var single=0; var dbl=80; var total=single + dbl; …

Member Avatar for Airshow
0
87
Member Avatar for AliHurworth

Hi, I'm struggling with writng an AJAX query function. It seemed to work in IE and Opera, but not in Firefox - but now won't seem to fire at all. The page can be seen at: [url]http://localhost/CRITS/index.php[/url]. Waht should happen is that as you click on the top left image, …

Member Avatar for AliHurworth
0
141
Member Avatar for AliHurworth

Hi, I am running the scripts below which should return a string containing a URL. So far, it cannot find the form contents in Firefox, but displays the non-dynamic data such as [I]?Location=[/I]. It won't work at all in IE. Can any one help? This is the form: [CODE] <!DOCTYPE …

Member Avatar for BlueIceStudios
0
190
Member Avatar for AliHurworth

Hi all, I have a div I would like to show and hide. I've used a script before which works, but now reusing it I can't make it fly. As I can't see where I am going wrong, can anyone else help? This is the one that works: [CODE] <!--script …

Member Avatar for AliHurworth
0
149
Member Avatar for AliHurworth

Hi all, I have a div I would like to show and hide. I've used a script before which works, but now reusing it I can't make it fly. As I can't see where I am going wrong, can anyone else help? This is the one that works: [code] <!--script …

Member Avatar for Will Gresham
0
138
Member Avatar for AliHurworth

Hi all, I have a two-part form intended to replicate the output from a toolbar, with the aim of sending data to a database. So the data is generated by the following code (sim1.php): [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for cwarn23
0
139
Member Avatar for AliHurworth

Hi, I'm creating a small application with a "mood generator" on it. Basically, the user chooses a colour and a saturation, and this data is queried against a database to produce a sentence. For example, choosing a deep red in a very pale shade might show "I'm really angry, but …

Member Avatar for AliHurworth
0
139
Member Avatar for AliHurworth

Hi all, Where am I going wrong here? I'm getting a syntax error... [QUOTE]Database ERROR1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1[/QUOTE] [code=php] <?php require_once('Connections/connect.php'); # this is …

Member Avatar for nav33n
0
89
Member Avatar for AliHurworth

Hi all, I'm struggling to write an SQL query. I'd like to search a database for either a person or an organisation. I have an HTML form on a homepage, and this returns two values: [LIST] [*]a search term [*]a search type, either 'person' or 'organisation' [/LIST] code: [code=php] <form …

Member Avatar for AliHurworth
0
172
Member Avatar for AliHurworth

Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. However I'm getting errors on the second table [icode]mysql_num_rows(): supplied argument is not a valid MySQL result resource [/icode] and [icode]mysql_fetch_array(): supplied argument is not a valid …

Member Avatar for R0bb0b
0
133
Member Avatar for AliHurworth

Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. However I'm getting errors on the second table [icode]mysql_num_rows(): supplied argument is not a valid MySQL result resource [/icode] and [icode]mysql_fetch_array(): supplied argument is not a valid …

Member Avatar for somedude3488
0
233