|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
I think so but correct me...Test for php lol :)
<html><head><title>Welcome to DFWARSNETWORK!</title>
</head> <body> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="568"> <tr> <td width="100%" height="74"> <p align="center"><font size="7">DFWARSNETWORK</font></td> </tr> <tr> <td width="100%" height="19"> <p align="center">| Forums | Map DB | File DB | Squad Base | Links | About Us | </td> </tr> <tr> <td width="100%" height="473" valign="top"> <?php $host = "localhost" $username = "example" $password = "example" $db = mysql_connect("$host","$username","$password"); $result = mysql_query (select * FROM News); mysql_select_db (newsdb,$db); while ($myrow = $mysql_fetch_row ($result)) { printf ("<tr><td>Title: %s :: Written by %s</td><td><p> </p>News story: %s"); $myrow[1], $myrow[2], $myrow[3] }else{ Print ("No news at this time! Check back when you can!"); ?> <form method="post" action="searchresults.php"> Search: <input type="text" name="T1" size="20" style="font-size: 8pt; border-style: solid; border-width: 1"><input type="submit" value="Search" name="B1" style="font-size: 8pt; border-style: solid; border-width: 1"></p> </td> </tr> </table> </body> </html> Would this work to show news stories on like a front page? |
#3
|
||
|
I can't test it
|
#4
|
||
|
so i ask
|
#5
|
||
|
find a way to test.
put ["php"] // code here ["/php"] (without the quotes) tags around your code. and cut all the html. even better post the part that's producing the problem. so it's nice and simple. right now i dont want to help you cause i dont feel like looking at unhighlighted code with html in it
__________________
http://addf.net http://som.addf.net http://snmservers.com http://snmfuturedomination.com ------------------------------------- but there it's a different movie she stares into the screen and fantasies enter her harder than all those who will get to know her |
#6
|
||
|
PHP Code:
|
#7
|
||
|
Is there a certain color that means that's it's wrong?
|
#8
|
||
|
nope, it just makes it easier to look at me thinks
|
#9
|
||
|
As steve says, its there to make it pretty
You could set up a server on you computer to test these scripts |
#10
|
||
|
how do you do that?
|
#11
|
||
|
you querying a database before selecting one
you need to switch those two lines like this PHP Code:
__________________
http://addf.net http://som.addf.net http://snmservers.com http://snmfuturedomination.com ------------------------------------- but there it's a different movie she stares into the screen and fantasies enter her harder than all those who will get to know her |
#12
|
||
|
k
|
#13
|
|||
|
Quote:
Just let me know :-) IcI |
#14
|
|||
|
Quote:
|
#15
|
||
|
I have a php program that I use for the people I host and it has a web based ftp. You don't need to use an ftp client (although it would be easier).
Any ways, just thought I would offer. IcI |
#16
|
||
|
Sure if u have a web baseed thing that doesn't require ftp.
|
#17
|
||
|
Easyphp.org
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#18
|
||
|
thanks
|
#19
|
|||
|
Quote:
|
#20
|
||
|
search google for windows apache php/mysql installation
__________________
http://addf.net http://som.addf.net http://snmservers.com http://snmfuturedomination.com ------------------------------------- but there it's a different movie she stares into the screen and fantasies enter her harder than all those who will get to know her |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TEST TEST TEST!!!!! MY SIG IS P.I.M.P. lol | ShArP | Sigs and Graphics | 1 | 10-15-2007 08:36 PM |
For BB/Mike a test story lol:)!!!! | BADDOG | General Chat | 3 | 08-07-2005 06:35 AM |
index.php?act=test&cat=5 | Guest | phphq.Net Forums | 0 | 02-02-2005 04:46 PM |
TEST (LOL NEW SIG AGAIN BUT ALOT OF TIME INTO IT) | GFpBOND | Sigs and Graphics | 1 | 07-19-2002 03:51 PM |
Anouther test LOL | Blade | Sigs and Graphics | 0 | 07-17-2002 09:57 AM |