Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 5 1 2 3 4 5
Re: PHP help [Re: Blade280891] #202178
04/13/08 18:45
04/13/08 18:45
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
 Code:
"CREATE TABLE "user"(


probably should be:
 Code:
"CREATE TABLE 'user'(



Click and join the 3dgs irc community!
Room: #3dgs
Re: PHP help [Re: Joozey] #202180
04/13/08 18:47
04/13/08 18:47
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline OP
Serious User
Blade280891  Offline OP
Serious User

Joined: Jan 2008
Posts: 1,580
unfortunatly not.


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] #202181
04/13/08 18:51
04/13/08 18:51
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
and if you backslash the doublequotes?
 Code:
\"user\"



Click and join the 3dgs irc community!
Room: #3dgs
Re: PHP help [Re: Joozey] #202182
04/13/08 18:56
04/13/08 18:56
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline OP
Serious User
Blade280891  Offline 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 Offline OP
Serious User
Blade280891  Offline 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: Blade280891] #202185
04/13/08 19:06
04/13/08 19:06
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
The echo wasn't working because there was a syntax error in the file. The query, like you had it, has to be one of the errors as the string is cut off at 'user' and the word 'user' wont be recognised by php, resulting in a "crash".


Click and join the 3dgs irc community!
Room: #3dgs
Re: PHP help [Re: Joozey] #202186
04/13/08 19:08
04/13/08 19:08
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline OP
Serious User
Blade280891  Offline 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 Offline OP
Serious User
Blade280891  Offline OP
Serious User

Joined: Jan 2008
Posts: 1,580
Hi again, i have another problem,this is the code
 PHP:
$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 Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
echo $dbhost, if it contains the proper information, try:
 Code:
if (!empty($dbhost)) {

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 Offline OP
Serious User
Blade280891  Offline 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.
 Code:
<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"
Page 4 of 5 1 2 3 4 5

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1