RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick

Hi,

Maybe..

$sql = "SELECT Title, SubT, Author, Story FROM SiteNews;"


should be 

$sql = "SELECT Title, SubT, Author, Story FROM SiteNews";


-Original Message-
From: Stevie D Peele [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 5:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help with parse error

I have a parse error on line 12 --
---
");
  echo("");
  echo($row['Title']. "");
  echo("");
  echo("");
  echo($row['SubT']."");
  echo("");
  echo("");
  echo($row['Author']. "");
  echo($row['Story']);
  echo("");
  
}
  }
}
else{
   echo("Queryproblem");
}

 ?>
--

Can anyone see what the error is?? I can't

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Session problem in back button

2003-08-26 Thread Paul Fitzpatrick

Hi,

This will stop them seeing the login once they are in a registered
session
Only diplay the login form if NOT a registered session variable
'sessionname' (or some other session variable)


If (!isset($_SESSION['sessionname']))
{
   //Display login form code goes here
}

Cheers.




-Original Message-
From: murugesan [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 9:55 AM
To: murugesan; Cody Phanekham; [EMAIL PROTECTED]
Subject: [PHP] Session problem in back button

Hello all,
Now i have a problem in back button.
After signing in when I click back button It goes to login page.
But
when I click the forward button it is going to the main page.
How can I prevent this.

-murugesan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Paul Fitzpatrick


* Thus wrote Giz ([EMAIL PROTECTED]):
> Access is a pc database.  It doesn't run on unix.  Why people insist
on
> beating their heads against the wall in this manner I will never know.
> Ignorance I suppose.  The alternative is to have your friend use a
> relational database and have a few simple forms that will allow him to
> insert/update/delete.  Best of both worlds, and the open source/free
> databases mysql/postgresql are used on thousands of websites every
day.


Programmers often get their heads banged against a wall 'by' clients.

I recently had to go through the whole issue of trying to use a client's
favorite Access DB on a Linux server with no success.  I tried
convincing him to switch to MySQL etc. but of course he wanted to stay
with what he knew.

Maybe try for some MSSQL capable hosting with this job, PEAR and ADODB
are great for ODBC, the only issue is setting up an ACCESS DSN, which
can't be done on a Unix box at this time.  I have heard of tricky
windows/linux bridging techniques though, but what ISP is going to set
up an extra windows box for one Access db?

Cheers,
Paul

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php