Welcome Guest ( Log In | Register )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
      
 
Reply to this topicStart new topic
SQL/PHP include problem
blindet
post May 5 2008, 01:10 AM
Post #1


New Member
*
Posts: 1
OS: XP, Linux



Hello there!
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 laughing.gif

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts
1 / 313 14th December 2006 - 07:23 PM
sunny441 started - last by mpfeif101
No New Posts  
0 / 343 21st August 2007 - 12:59 PM
dustygal started - last by dustygal
No New Posts
5 / 367 3rd January 2008 - 02:19 PM
Linden started - last by Metallica
No New Posts  
1 / 470 4th January 2008 - 05:33 AM
Linden started - last by gunner12
No New Posts  
8 / 441 10th June 2008 - 12:20 PM
Alex_McIntosh started - last by Major Payne

RSS Time is now: 7th October 2008 - 02:14 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.