[PHP] should be simple
I am trying to pull html code out of a database to put in page something like this which I have stored in a database under cheader html head title/title /head body div align='center' img src=../autowebpages/autosetup.gif' width='406'height='158'border='0' alt=''/div It seams all I have to do is put ?echo $cheader? at the top of the page and it should work just like putting variables into a page. But is does nothing. I would look in the manual or the archives but I don't no wear or what to look for. It seams this should be simple what am I missing hear Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] should be simple
It seams all I have to do is put ?echo $cheader? at the top of the page and it should work just like putting variables into a page. But is does nothing. I would look in the manual or the archives but I don't no wear or what to look for. It seams this should be simple what am I missing hear It sounds to me like you're trying to store PHP code in the database and have it execute it before sending it to the browser, is this correct? If it is: You can't do this just like that. Your PHP code is text in the database, and when PHP pulls it out and echo's the whole thing it'll just send it to the browser. You might need to use eval(). More info: http://www.php.net/manual/en/function.eval.php If it's not: I got the wrong idea, so please explain some more. :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] should be simple
Hello Richard, Never Mind It was a stupid mistake I am querying all the data in a function and forgot to add the variable to the global list work just fine DU!! Monday, May 21, 2001, 7:08:16 AM, you wrote: Richard Kurth I am trying to pull html code out of a database to put in page Richard Kurth something like this which I have stored in a database under cheader Richard Kurth html Richard Kurth head Richard Kurth title/title Richard Kurth /head Richard Kurth body Richard Kurth div align='center' Richard Kurth img src=../autowebpages/autosetup.gif' Richard Kurth width='406'height='158'border='0' alt=''/div Richard Kurth It seams all I have to do is put ?echo $cheader? at the top of the Richard Kurth page and it should work just like putting variables into a page. Richard Kurth But is does nothing. I would look in the manual or the archives but I Richard Kurth don't no wear or what to look for. It seams this should be simple what Richard Kurth am I missing hear Richard Kurth Best regards, Richard Kurth Richard Richard Kurth mailto:[EMAIL PROTECTED] -- Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] should be simple
Richard, Forgive me for stating the obvious. How are you filling the variable $cheader? If you are simply putting an echo command without pulling the info from the database first you will obviously be getting nothing. Gerard -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 10:08 AM To: [EMAIL PROTECTED] Subject: [PHP] should be simple I am trying to pull html code out of a database to put in page something like this which I have stored in a database under cheader html head title/title /head body div align='center' img src=../autowebpages/autosetup.gif' width='406'height='158'border='0' alt=''/div It seams all I have to do is put ?echo $cheader? at the top of the page and it should work just like putting variables into a page. But is does nothing. I would look in the manual or the archives but I don't no wear or what to look for. It seams this should be simple what am I missing hear Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]