SQL/PHP include problem |
![]() ![]() |
SQL/PHP include problem |
May 5 2008, 01:10 AM
Post
#1
|
|
|
New Member ![]() Posts: 1 OS: XP, Linux |
Im beginner in php and sql and i have a site, a recipe database. Im trying to make a recipe of the day box, that other people could add to their sites. .$serno is the varible that contais the day's script, and somehow i want to make it include itself automatically, not via a link. This is the link form, it works. echo '<a href="index.php?rs=200&id='.$serno.'">'.$name_of_recipe.'</a>'; And this is the way i want it to be. include ("index.php?rs=200&id='.$serno.'"); but the problem is that it understands the $serno, then starts to look it as a file, not from the batabase. Can i not add SQL variables to include, is there another way or am i just missing something obivious? Im not really good at explaining this, but i hope you understood it |
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies / Views | Topic Information | |||||
|---|---|---|---|---|---|---|---|
![]() |
1 / 331 | 14th December 2006 - 07:23 PM sunny441 started - last by mpfeif101 |
|||||
![]() |
5 / 400 | 3rd January 2008 - 02:19 PM Linden started - last by Metallica |
|||||
![]() |
1 / 492 | 4th January 2008 - 05:33 AM Linden started - last by gunner12 |
|||||
![]() |
8 / 513 | 10th June 2008 - 12:20 PM Alex_McIntosh started - last by Major Payne |
|||||
|
Time is now: 2nd December 2008 - 10:40 PM |
| Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk. |