Jump to content

WeExClan

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by WeExClan

  1. Dont bother going there, admins are imature changing you're name. Banning you for no reason.... I'm glad i found a good php forum. So much better than this one!
  2. OH, sorry. I had to take away caps, Members to members and FirstName to firstname. Thanks for the help..
  3. Sorry, i didnt understand that but i can connect to it with the same info on the registration/login form... And yes, i'm using phpmyadmin
  4. Its still the same error... :-\
  5. Ok, when i added your thingy it said some could not connect thing but i fixed it and now its the same as it was... This is the code now: <?php $con = mysql_connect("****","****","****"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db_con = mysql_select_db("****", $con); if (!$db_con) { die('Could not connect to "****": ' . mysql_error()); } $result = mysql_query("SELECT * FROM Members"); echo "<table border='1'> <tr> <th>PSN Navn</th> <th>Navn</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['login'] . "</td>"; echo "<td>" . $row['FirstName'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?> The error is still: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /~/www/****.tk/members/index.php on line 22
  6. Here is the error in the browser: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /~/www/****.tk/members/index.php on line 18 **** = I'm hiding whats really there... Here is the script: <?php $con = mysql_connect("***","***","****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $result = mysql_query("SELECT * FROM Members"); echo "<table border='1'> <tr> <th>PSN Navn</th> <th>Navn</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['login'] . "</td>"; echo "<td>" . $row['FirstName'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?>
  7. I try that and i get a error about this: while($row = mysql_fetch_array($result))
  8. No, i mean like. I have a "Members" list on my website. And when they register i want their names to be in a list automaticly on my website. Their name and their playstation network name...
  9. How can i see tables and stuff directly on my website, i want to make like a members list and when they register i want to see user name and the name table.. From THE MYSQL caps
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.