|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
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 |
#2
|
||
|
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...
|
#3
|
||
|
elite, shall i PM you the code?
|
#4
|
|||
|
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
__________________
<- Sponsored by Chris Found on Youtube: Quote:
|
#5
|
||
|
sure/i won't steal it lol
|
#6
|
||
|
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 |
#7
|
||
|
ooo, now its not showing atall
|
#8
|
||
|
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 ... |
#9
|
||
|
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:
|
#10
|
|||
|
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?
__________________
<- Sponsored by Chris Found on Youtube: Quote:
|
#11
|
||
|
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.
|
#12
|
||
|
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? Last edited by Stu; 11-28-2004 at 03:19 PM. |
#13
|
||
|
lol i guess i can't do it...ahhhhhhhh bak to sitting bak...
Last edited by JonM; 11-28-2004 at 03:27 PM. |
#14
|
||
|
lol sorry elite, refresh that post i just posted lol
|
#15
|
||
|
here is the script i would dO:::
PHP Code:
|
#16
|
||
|
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
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple News Script | EDGE | phphq.Net Forums | 7 | 06-25-2007 05:52 PM |
News Script | JonM | Web design and Programming | 2 | 11-09-2004 04:11 PM |
html news script? | macd_m2 | Web design and Programming | 4 | 06-10-2003 12:35 PM |
News script to Headlines | þúÑî$h€® | Web design and Programming | 8 | 05-10-2003 11:45 AM |
php news script? | Se7eN | Web design and Programming | 2 | 05-04-2003 12:09 PM |