Adam Bell wrote:
THIS IS THE CODE FOR THE LOGIN!
<?
$sql = "SELECT * FROM jtrs_user ORDER BY user";
$connection = mysql_connect("localhost:3306", "", "") or die ("Couldn't connect to server.");
$db = mysql_select_db("JTRS", $connection) or die ("Couldn't select database.");
$sql_result = mysql_query($sql) or die("Couldn't execute query.");
+++++++++++++++==================++++++++++++
And this the code for the task table!
<?php
switch( $do )
{
case "authenticate":
$connection = mysql_connect("localhost:3306","","") or die ("Couldn't connect to server.");
$db = mysql_select_db("JTRS") or die ("Unable to select database.");
$result = mysql_query($sql) or die ("Couldn't get results.");
$sql = "SELECT * FROM JTRS ORDER BY Task_ID";
$sql_result = mysql_query($sql,$connection) or die ("Couldn't execute query.");
$num = mysql_numrows($result);
then it just says how to display the problem! any more help would be much appreciated.
you are asking how to get data for only one user, right? you will need to save the name/code/something_unique of this user and use a query like this:
$sql = "SELECT * FROM jtrs WHERE user='$some_var'";
i really dont know if this is the question, but, for me, it means that you dont know basic sql sintaxe.. in this case, try a sql basic book (there are thounsands out there)
[and sorry for my poor english]