Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > PHP / MySQL Assistance

PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-2008, 05:17 PM
Junior Member
 
Join Date: Mar 2008
Posts: 20
Exclamation New at this. Please help.

Hi to you all,

Big problem. I have my page ready but i need help to create database and connect it with register and login pages. I am using dreamweaver. My friend that was going to help me is abroad for work so I am stuck here.

Can you help me please?

Thank you advance.
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 05:40 PM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,144
Default

To create a database, login to cPanel then click on MySQL Databases. From there you will be presented with an easy walk-through to create the DB. Video on creating a MySQL DB. That video is based on X2 theme but still does the trick
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
  #3 (permalink)  
Old 03-27-2008, 04:36 PM
Junior Member
 
Join Date: Mar 2008
Posts: 20
Smile Thanks

Thanks a lot mate.

I will check it during the weekend.
Reply With Quote
  #4 (permalink)  
Old 03-27-2008, 05:18 PM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,144
Default

No problem. Hope it helps you.
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
  #5 (permalink)  
Old 04-05-2008, 06:17 AM
Junior Member
 
Join Date: Mar 2008
Posts: 20
Default

many thanks.

just today i found time to do it and it was pretty easy.

now can you give me guidelines on how to connect my database with my fields?

Thank you in advance
Reply With Quote
  #6 (permalink)  
Old 04-05-2008, 12:43 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,772
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

are you talking about connecting locally or external (remote)?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #7 (permalink)  
Old 04-14-2008, 04:47 PM
Junior Member
 
Join Date: Mar 2008
Posts: 20
Default localy

Hi
Sorry for late replies. I have a lot of work and little time for my web. For now at least.

It is for a local connection. I wrote an update.php file based in my allready written dreamweaver form but it doesn't seem to work. error HTTP 500

Here is what I wrote (for localhost I used localhost. Is it correct??)

<?php
$Name = $_Post['Name'];
$Surname = $_Post['Surname'];
$Birthday = $_Post['Birhday'];
$Phone_No = $_Post['Phone_No'];
$E_mail = $_Post['E_mail'];
$Mail_Address = $_Post['Mail_Address'];
$Username = $_Post['Username'];
$Password = $_Post['Password'];
$Conf_Password = $_Post['Conf_Password'];

mysql_connect ("localhost", "username", "password") or die ('Error: ' . mysql_error());
mysql_select_db ("sonophoe_Registration");

$query="INSETR INTO Register (ID, Name, Surname, Birthday, Phone_No, E_mail, Mail_Address, Username, Password, Conf_Password)VALUES ('NULL','"$Name"','"$Surname"','"$Birthday"','"$Ph one_No"','"$E_mail"','"$Mail_Adrdress"','"$Usernam e"','"$Password"','"$Conf_Password"')";mysql_query ($query) or die ('Error: Not Updated!!!');

echo "Database Update With: ".$Name." ".$Surname." ".$Birthday." ".$Phone_No." ".$E_mail." ".$Mail_Address." ".$Username." ".$Password." ".$Conf_Password."";
?>

Thank you in advance and for your patient.
Reply With Quote
  #8 (permalink)  
Old 04-14-2008, 04:52 PM
Junior Member
 
Join Date: Mar 2008
Posts: 20
Default

Oh

I want to add that I have created mysql database with the above fields using cpanel.
Reply With Quote
  #9 (permalink)  
Old 04-14-2008, 08:45 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,772
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by Pavlos1316 View Post
Oh

I want to add that I have created mysql database with the above fields using cpanel.
Hello,

What you should do is:

1. cpanel_x3_mysql
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #10 (permalink)  
Old 04-25-2008, 02:30 PM
itwasntme's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 120
Default

Quote:
Originally Posted by Pavlos1316 View Post
$query="INSETR INTO Register (ID, Name, Surname, Birthday, Phone_No, E_mail, Mail_Address, Username, Password, Conf_Password)VALUES ('NULL','"$Name"','"$Surname"','"$Birthday"','"$Ph one_No"','"$E_mail"','"$Mail_Adrdress"','"$Usernam e"','"$Password"','"$Conf_Password"')";mysql_query ($query) or die ('Error: Not Updated!!!');
If this is the actual query you are using, you spelled INSERT wrong. That will definitely give you problems, but probably not a 500 error.

By the way, where did you get this code? It's not very secure. This is the second time I have seen something on the forums here very similar.

Last edited by itwasntme; 04-25-2008 at 02:33 PM.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.