1 registered members (AndrewAMD),
684
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: PHP help
[Re: Joozey]
#202180
04/13/08 18:47
04/13/08 18:47
|
Joined: Jan 2008
Posts: 1,580
Blade280891
OP
Serious User
|
OP
Serious User
Joined: Jan 2008
Posts: 1,580
|
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: PHP help
[Re: Joozey]
#202182
04/13/08 18:56
04/13/08 18:56
|
Joined: Jan 2008
Posts: 1,580
Blade280891
OP
Serious User
|
OP
Serious User
Joined: Jan 2008
Posts: 1,580
|
no, also the echo doesn't seem to worl
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: PHP help
[Re: Blade280891]
#202184
04/13/08 19:01
04/13/08 19:01
|
Joined: Jan 2008
Posts: 1,580
Blade280891
OP
Serious User
|
OP
Serious User
Joined: Jan 2008
Posts: 1,580
|
ok, i have fixed it thanks, for the advice though
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: PHP help
[Re: Joozey]
#202186
04/13/08 19:08
04/13/08 19:08
|
Joined: Jan 2008
Posts: 1,580
Blade280891
OP
Serious User
|
OP
Serious User
Joined: Jan 2008
Posts: 1,580
|
yer, i found out that i had put a link wrong so i was viewing the wrong page.
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: PHP help
[Re: Blade280891]
#202210
04/13/08 20:31
04/13/08 20:31
|
Joined: Jan 2008
Posts: 1,580
Blade280891
OP
Serious User
|
OP
Serious User
Joined: Jan 2008
Posts: 1,580
|
Hi again, i have another problem,this is the code $dbhost = $_POST["dbhost"]; // Database Host
if ($dbhost)
{
echo ("Table name's saved, press continue to create the table.");
include ("config_writetable.php");
}
else
{
echo ("Please go back and fill in the required fields");
}
and the problem is that it only shows the else echo not the if echo, i have the form filled in and it still shows else. Any ideas. all the other codes related to this are correct, just this bit
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: PHP help
[Re: Blade280891]
#202212
04/13/08 20:46
04/13/08 20:46
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
echo $dbhost, if it contains the proper information, try: otherwise, show the form with the "dbhost" field.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: PHP help
[Re: Joozey]
#202213
04/13/08 20:49
04/13/08 20:49
|
Joined: Jan 2008
Posts: 1,580
Blade280891
OP
Serious User
|
OP
Serious User
Joined: Jan 2008
Posts: 1,580
|
no, it still does the same. this is the code for the page that goes to it.
<html>
<body bgcolor="#999999">
<p align="center"><font color="#000099" size="+2">Please enter the table names you want, or if you want to use the preset names click continue. NOTE: Each table must be a different name. Please do not leave any blank spaces.</font></p>
<table align="center" bgcolor="#333333" width="300px" border="0">
<form method='post' action='create_tablenames.php'>
<tr><td>
<font color="#FFFFFF">
User Details:</td><td>
<input type="text" name="user" value="rgd_users"><br></td></tr>
<tr><td></td><td><input type='submit' value='Continue' name='check'></td></tr>
</font>
</form>
</table>
</body>
</html>
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
|