Search found 7 matches
- Wed Jan 25, 2012 6:43 am
- Forum: PHP - Code
- Topic: Pass variables from Select to another form..help required
- Replies: 2
- Views: 852
Re: Pass variables from Select to another form..help require
thanks for that idea, i am trying to put it into action, but am stuck on how to capture the variable from the SELECT so i can pass into the hidden value...? <form action="insert_story.php" method="post" onsubmit="return validate()"> <input type="hidden" name=&...
- Tue Jan 24, 2012 4:11 pm
- Forum: PHP - Code
- Topic: Pass variables from Select to another form..help required
- Replies: 2
- Views: 852
Pass variables from Select to another form..help required
Hi, See code below.... I want to values pass 'id', 'used', 'partno' to the next form opened so i can update a table... See 1st form.... Followed by second form that does the Update.... any help greatly appreciated. Thanks <form action="insert_story.php" method="post" onsubmit=&qu...
- Tue Oct 20, 2009 11:09 am
- Forum: PHP - Code
- Topic: Trying to display a blob ...
- Replies: 4
- Views: 263
Re: Trying to display a blob ...
image.php : <?php // change this to whatever you have as primary key $id = (int)$_GET['id']; $query = "SELECT * FROM people WHERE id = $id"; $data = mysql_query($query); $info = mysql_fetch_array($data); header('Content-type: image/jpeg'); $info['person_photo']; ?> display_person.php P...
- Tue Oct 20, 2009 7:50 am
- Forum: PHP - Code
- Topic: Trying to display a blob ...
- Replies: 4
- Views: 263
Trying to display a blob ...
Am trying to display some php fields in a html table.... all ok except the blob file 'person_photo' which displays as garbage... is it syntax or me ?? [color=#BF0000]<?php[/color] $query = "select * FROM people WHERE person_country = 81" ; $data = mysql_query($query) ; Print $query; ...
- Mon Jun 08, 2009 8:02 pm
- Forum: PHP - Code
- Topic: Change my Query Value , following Select, selection
- Replies: 4
- Views: 176
Re: Change my Query Value , following Select, selection
Wondered how it was done... thanks
- Mon Jun 08, 2009 4:32 pm
- Forum: PHP - Code
- Topic: Change my Query Value , following Select, selection
- Replies: 4
- Views: 176
Re: Change my Query Value , following Select, selection
Thanks for pointing me in the right direction...... I now have a screen with 3 selections... What i want to do is take the result of the three queries and run one query on a table. This is where i'm missing something... See code i'm using (two php forms...): <? echo "<form name=sel>\...
- Tue Jun 02, 2009 6:52 am
- Forum: PHP - Code
- Topic: Change my Query Value , following Select, selection
- Replies: 4
- Views: 176
Change my Query Value , following Select, selection
See below my code...... I populate a select box, with a list of Countries, which have and ID number associated with each. I then want to run my query using the countries ID value (currently hardcoded to 81) Any help greatly appreciated.... as you will see i'm still new to php... :!: <html> <head> </...