Need Help in creating Table in SQL

Discussion in 'HTML & Website Design' started by MrPJH, Mar 31, 2007.

  1. #1
    in my web site there is data bas and connceted with sql but it is not recieving inputs from forms actully i am new to webs and this is non profit web so i cant pay i made it due to my personal intrests
    so please if any one can help me i ll be thankfull to you
    my web is
    www.gullsinn.netfast.org/morz
    and there is one forum too that is not running
    www.gullsinn.netfast.org/myforum
    i ll give you login and pw so please give me your email address to contact
    :confused:
     
    MrPJH, Mar 31, 2007 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Ah man, no need to pay :) I'll help you for free. Could you explain your problem a bit more clearly? Maybe post some snippets of your SQL and/or PHP code? I get the feeling you may have some code problems you may need to sort out.
     
    Louis11, Mar 31, 2007 IP
  3. MrPJH

    MrPJH Well-Known Member

    Messages:
    1,066
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    155
    #3
    i used PHP first time i tried to conect the data base with my sql server and i did it it is like a orkut or a community where students can make there profile
    but there are no tables in mysql i tried a lot but failed because i am tottaly new in php and the community code i downloaded from a web site and want to make it usefull for students in my country
    here is that community www.gullsinn.netfast.org/morz[url] ... server says there is an error uploading data
     
    MrPJH, Apr 1, 2007 IP
  4. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Put in a...

    
    or die(mysql_error());
    
    // like after your...
    // $sql = mysql_query("insert....") or die(mysql_error());
    
    PHP:
    after your SQL code. This way it will give us some more useful errors to analyze :)

    Basically you are going to need to create the tables if you havent already done so. Do you have PHPmyAdmin? It's pretty simple if you use that :)

    Otherwise...

    http://phpbash.com/article/3/Learn MySQL - Part 1

    You will then use insert statements to insert the necessary data. But from what I understand you don't have the tables setup in your database.
     
    Louis11, Apr 1, 2007 IP