Continued news script, confused
Hey all, i'm still working on the news script, i'v aquired help from Blackbelt, and all is good... well sort of.
------------------------ What I've done so far: - Succesfully create MySQL tables. - Connect to the database. - Make a form to submit news Problems: - So far i have submitted 2 news items, which have been submitted to the database, and confirmed. - The to items appear on the news page, but the text doesn't. ------------------------ The url to the script is www.members.lycos.co.uk/sc20032004/bb-t2-news/ . Please treat the script with respect, and dont download or use this script without my permission(thnx). Does anyone know what i'm doing wrong? I would like to thank BlackBelt for helping me here, i'v learnt alot whilst making this script :) - Warm regards |
perhaps i could see a script...it could kind of help > :) lol , but if you don't want to cuz of some people who may "steal" your script i understand. :) i made a news script a while back, there not as easy as i thought it would be...
|
elite, shall i PM you the code? :)
|
first of all get .htacces orso in it, or delete the install php form the directory,
It seems like the script echo's the $news_title Author: $news_author $news_content $news_title Author: $news_author $news_content instead of the text you entered. So i think you have to look at the code again m8 |
sure/i won't steal it lol :)
|
Ok, i might aswell put the code here, it has a copyright towards it anyway. :)
And apperntly your PM inbox is full, so this is the easy way round i guess. Config.php PHP Code:
PHP Code:
PHP Code:
PHP Code:
<html> <body> <table width="358" border="1" cellpadding="0" cellspacing="0"> <tr> <td width="358" height="17" valign="top">$news_title Author: news_author</td> </tr> <tr> <td height="92" valign="top">$news_content</td> </tr> </table> <br> </body> </html> __________________________________ do u think u can help me here m8? I would be most greatful if u could. - warm regards;) |
ooo, now its not showing atall :|
|
it can't be in html make it like this <td height="92" valign="top"><? echo"$news_content"; ?></td>
</tr> except do that for everything ... |
o wait hey on this whole layout.html ... i didn't realize it was a different page lolz anywayz instead of including it go ... :
PHP Code:
|
i dont know much PHP but isnt HTML embedded into the PHP code? so the php close tag ( ?>) comes at the end of the html part here?
|
html is not embedded in php, but it can be ... but then things like <border="0"> would have to be echo"<border=\"0\">"; so sometimes with large html scripts it's easier to keep it not intergrated into php.
|
no katana m8, you can save a php file as a .php file if it has html in it, but the html either needs to be in echo() array or outside the <?php ?> tags :).
P.s. Thnx elite :)... but it didn't do much atall LOL it isn't showing all the news anymore. http://www.members.lycos.co.uk/sc200.../show_news.php :*( Panther can you help us? |
lol :) i guess i can't do it...ahhhhhhhh bak to sitting bak... :)
|
lol sorry elite, refresh that post i just posted lol
|
here is the script i would dO:::
PHP Code:
|
give that one a try, it is a lil different but is basically the same ... if it doesn't work that's my last try we'll just let a pro come in lol
|
All times are GMT -5. The time now is 09:24 PM. |
Powered by vBulletin®