Hi,
I have created a standard html page using CSS...
In the page I have put some href links that reference points further down in the page using name tags <a name="tag1">
I have then created some CSS behaviours for the links to hide the underline, change link colors etc...
The problem I am...
Hi everyone....
not sure if this is the correct forum as i'm not sure what te problem actually is but i thought i would at least start here...
I have a friend who i'm trying to help out with his new pc it is a 64 bit machine running windows 7 -
the 64 bit EI seems to be working ok - but of...
OK... so I need to change the following line of code...
while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)){
$row_Recordset1['prod_cat'] = empty($_GET['var2']) ? $row_Recordset1['prod_cat'] : $_GET['var2'];
to something with an UPDATE command in it... however I am struggling to...
My apologies... the loop does work however it misses 1 record... I was using a category that had only 2 records and only 1 was coming up - but I tried again with a cat that had 36 records and 35 came up...
The Bird from Down Under- Bigbird 3156 [upsidedown]
Ok, thanks for that... I have another look into it and see if i can work it out before I ask for the inevitable help...
having said that however I did choose a category that had multiple records associated with it ... yet only got the one record actually showing up
The Bird from Down Under-...
Thanks for that Jpadie...
I tried your code and it did not work...
firstly it did not loop, only showing the first record and secondly it did not actually update the record it showed either...
I assume that the
{$row_Recordset1['prod_cat']} Updated!
inside the frame should display the...
I can't get this to work...
maybe it is the setup of the rest of the page... can you have a quick look...
<body>
<p>Changing category <?php echo $_GET['val1']?> to <?php echo $_GET['val2']?></p>
<p>Updated Records</p>
<?php do { ?>
<table width="650" border="0" align="center">
<tr>...
Hi...
If I pass a variable from another page and want it to replace the contents of a field from the database is there a simple way to do it???...
what would it look like??
i.e I want the contents of the variable "var2" to replace the contents of "$row_Recordset1['prod_cat']"...
And here is the culprit....
<input name="val1 " type="text" id="val1" value="test" />
so don't worry I have solved it myself!!
The Bird from Down Under- Bigbird 3156 [upsidedown]
There are 2 reasons I was going post instead of get...
first is I assumed through what I have done that get only allows you to sent 1 variable and although I have not said as much above I want to send 2 variables....
the second reason is that I need to use URLencode or another similar...
I have created an edit record page that has two dropdown menus in it that are populated by another recordset in the database...
when they are populated they display the stored value of the record as the default unless that value has a special character(case in point a designer by the name of...
Hi,
if I have a text field on a page and I want to add the content of that field into a url once it has been submitted how do I call it?
for the sake of this example, I have a text field called "Tfield" and I want the URL after submitting the form to look like...
thanks feherke...
OK point taken I changed the link back to & and it DID work...
I do not know why it was not working before I changed it back to the & as the only thing that I changed was this link and then BOOM it worked... now I change it back and it still works...
anyway thanks for...
This particular link is in a page that gives a bio of the particular designer... the link accesses another record set in my database that contains a catalogue of all products... by selecting the link the user is selecting to see only products created by that particular designer...
all pages are...
ah yes, sorry ... I had another look at what I was doing and it all makes sense now...
it was changing the ambersand in the href above that was causing me problems and made me think that I needed to use a urldecode... once I changed the & back to & it all worked fine...
what you said about...
...and then there is the question of urldecode...
Again I am trying to get my head around it, but I just can't figure it out...
I assume that the function needs to affect the following code?? - am I getting warm or am I way off... can you give me any hints???
$colname_view_des_cat = "-1"...
Thanks for the hint...
I have been looking around a bit and cant for the life of me figure out how to use the urlencode function on a href like this...
<a href="catalogue.php?page=des_cat&designer="<?php echo $row_view_catalogue['designer']; ?>">
can anyone give me an idea? (obviously it...
Hi... if I am passing a string variable from one page to another that contains an ampersand I get all sorts of problems...
I know there are special characters like & and & but if these values are saved in an SQL file then it still passes the ambersand and not the special charcter...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.