![]() |
| ||
| post submitting values not working? My earlier post works ok now to display I have been working on how to transfer the info to be displayed on another page. I can't get it to work in theory i thik it should be working can anyone give me an idea what I have done wrong. on the display page I call data from the data base it explodes on echo and displays 9 news headlines. the ["newsTit"] is the whole news article headline ["newsMn"] is the main news article text. here is the code i have put on the display page. <p> displays ok it also goes to the news.php when the article is clicked on but when the news.php opens it remain blank here is the code which i have used on many other pages and it works and displays posted data ok but not in this case why??? <? |
| ||
| Re: post submitting values not working? Quote:
|
| ||
| Re: post submitting values not working? ok i tried that made no change still doesn't work ti now looks like this <p> second page is still the same and also doesn't work <? |
| ||
| Re: post submitting values not working? Try this. echo'<input name="tradeaid" type="hidden" id="tradeaid" value="'.$tradeaid.'">'; I think its a bad practice to use <?=$varname instead of <?php echo $varname; ?> Edit: And please use code tags while posting your code. It really helps. |
| ||
| Re: post submitting values not working? mmm tried that everything in the echo displays everything all the news articles not just the headlines like before on the 1st page doesn't even submit to the news.php using that. I think my submit is in the wrong place as when it did submit it is trying to submit all the echos and can't distinguish one of them so displays nothing???? |
| ||
| Re: post submitting values not working? i will try this with the script in [] tags i think that is what you meant. I have almost solved it the following works in that it diplays a news ad headline and main text on the news.php just as i want it to the problem is it does not display the news ad i click on or want to display it always displays the last one in the list. here is my new revised code on the main page it does not seem to seperate the 9 displayed artices and will always link to the last one if i change the desc to asc it displays the first one not quite what i wanted but almost i want it to post the one i click on any ideas?
When i change desc to asc it stops showing headlines it shows headlines and whole news articles? |
| ||
| Re: post submitting values not working? got this script to a state where when i hover over each headline it gives me the links as having id numbers associated eample news.php?id=4 for the 4th headline id=5 for the 5th now I need to know how to carry the data to the news.php here is my new script
|
| ||
| Re: post submitting values not working? In news.php, request id's value and fetch the data from the table for that particular id. For example, news.php?id=4 //news.php |
| ||
| Re: post submitting values not working? hi do i put that i the head or body as i keep gettig this error message mysql_fetch_array(): supplied argument is not a valid MySQL result resource in E: with <? |
| ||
| Re: post submitting values not working? Change the table name (and column name) ! |
| All times are GMT -4. The time now is 5:11 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC