I have a login thing on my website, but how do I make it so that it says the username on the success page when logged in?
Offline
Here's the code
$sql = "SELECT * FROM Person"; mysql_query($sql,$con);
$con is the connection details.
Offline
ProgrammingFreak wrote:
Here's the code
Code:
$sql = "SELECT * FROM Person"; mysql_query($sql,$con);$con is the connection details.
![]()
What does the "SELECT * FROM person" do?
Offline
WindowsExplorer wrote:
ProgrammingFreak wrote:
Here's the code
Code:
$sql = "SELECT * FROM Person"; mysql_query($sql,$con);$con is the connection details.
![]()
What does the "SELECT * FROM person" do?
The SELECT statement is used to select data from a database.
FROM tells what the command is selecting from. In the example, its selecting from the 'person' table.
Offline
WindowsExplorer I suggest learning how to program in MySQL before actually doing it and asking help every time you need something. How about making one thread "My Site Development Thread" and ask all your questions there.
I learned by downloading an Adoptables script ( PHP and MySQL ) and then looked through the code and modded it for more stuff, like money, shops, etc.
Though the script I learned from is gone, but, http://http://www.mysidiaadoptables.com/ looks like an interesting adoptables script ( in fact, I might try it out ) that you could try modding and there is a community there that could help you mod it as well.
So learn the basics of PHP and MySQL and then start creating things from blank pages.
Last edited by Magnie (2011-09-09 09:21:12)
Offline
Magnie wrote:
GP1 I suggest learning how to program in MySQL before actually doing it and asking help every time you need something. How about making one thread "My Site Development Thread" and ask all your questions there.
I learned by downloading an Adoptables script ( PHP and MySQL ) and then looked through the code and modded it for more stuff, like money, shops, etc.
Though the script I learned from is gone, but, http://http://www.mysidiaadoptables.com/ looks like an interesting adoptables script ( in fact, I might try it out ) that you could try modding and there is a community there that could help you mod it as well.
So learn the basics of PHP and MySQL and then start creating things from blank pages.![]()
uuuuuhhhhhhhhhh, I ALREADY know MySql, and php. I don't know WHO your talking to, but its not me.
Offline
Magnie wrote:
GP1 I suggest learning how to program in MySQL before actually doing it and asking help every time you need something. How about making one thread "My Site Development Thread" and ask all your questions there.
I learned by downloading an Adoptables script ( PHP and MySQL ) and then looked through the code and modded it for more stuff, like money, shops, etc.
Though the script I learned from is gone, but, http://http://www.mysidiaadoptables.com/ looks like an interesting adoptables script ( in fact, I might try it out ) that you could try modding and there is a community there that could help you mod it as well.
So learn the basics of PHP and MySQL and then start creating things from blank pages.![]()
I think you're talking about WindowsExplorer.
Offline
GP1 wrote:
Magnie wrote:
GP1 I suggest learning how to program in MySQL before actually doing it and asking help every time you need something. How about making one thread "My Site Development Thread" and ask all your questions there.
I learned by downloading an Adoptables script ( PHP and MySQL ) and then looked through the code and modded it for more stuff, like money, shops, etc.
Though the script I learned from is gone, but, http://http://www.mysidiaadoptables.com/ looks like an interesting adoptables script ( in fact, I might try it out ) that you could try modding and there is a community there that could help you mod it as well.
So learn the basics of PHP and MySQL and then start creating things from blank pages.![]()
uuuuuhhhhhhhhhh, I ALREADY know MySql, and php. I don't know WHO your talking to, but its not me.
*head desk* Sorry GP1, I must have some unconscious grudge or something. I fixed who it was pointed towards.
Offline
You could always visit w3schools.
Offline