Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 To: claude fox
  Where is claude fox?
 Centreville
 Virginia - United States
 claude fox
 Tags
Subject: RE: Scripting vs. traditional compiled
Thread ID: 268278 Message ID: 268843 # Views: 28 # Ratings: 0
Version: Not Applicable Category: Web Applications
Date: Wednesday, July 14, 2010 11:26:52 PM         
   


PHP vs. ActiveVFP: Which would you rather code?

+ + + + + PHP + + + + + + +
<*?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("my_db", $con);

$result = mysql_query("SELECT * FROM Persons
WHERE FirstName='Peter'");

while($row = mysql_fetch_array($result))
{
echo $row['FirstName'] . " " . $row['LastName'];
echo "
";
}
?>
+ + + + + ActiveVFP + + + + + + +
<%
  SELECT * FROM Persons WHERE FirstName='Peter' ;
     INTO Cursor tCursor 

  SET TEXTMERGE ON NOSHOW
  SCAN
    \<<TRIM(tCursor.FirstName)>> <<TRIM(tCursor.LastName)>></BR> 
  ENDSCAN
  SET TEXTMERGE OFF
%>


Reference: http://www.w3schools.com/php/php_mysql_where.asp

Dan B.


> No reason why VFP can't be a better PHP than PHP.

ENTIRE THREAD

Scripting vs. traditional compiled Posted by claude fox @ 7/9/2010 5:28:02 PM
RE: Scripting vs. traditional compiled Posted by Mike Yearwood @ 7/9/2010 8:31:58 PM
RE: Scripting vs. traditional compiled Posted by claude fox @ 7/9/2010 8:36:50 PM
RE: Scripting vs. traditional compiled Posted by Mike Yearwood @ 7/13/2010 3:57:25 PM
RE: Scripting vs. traditional compiled Posted by claude fox @ 7/13/2010 4:44:18 PM
RE: Scripting vs. traditional compiled Posted by Mike Yearwood @ 7/13/2010 5:55:00 PM
RE: Scripting vs. traditional compiled Posted by claude fox @ 7/13/2010 7:06:18 PM
RE: Scripting vs. traditional compiled Posted by Mike Yearwood @ 7/13/2010 7:38:18 PM
RE: Scripting vs. traditional compiled Posted by Dan Baker @ 7/14/2010 9:38:35 PM
RE: Scripting vs. traditional compiled Posted by claude fox @ 7/14/2010 10:17:53 PM
RE: Scripting vs. traditional compiled Posted by Dan Baker @ 7/14/2010 11:26:52 PM
RE: Scripting vs. traditional compiled Posted by Neeraj Charne @ 7/15/2010 8:21:12 AM