₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,381 members, 8,440,331 topics. Date: Monday, 06 July 2026 at 07:27 PM

Toggle theme

How Do I Use This In Several Programs - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow Do I Use This In Several Programs (765 Views)

1 Reply

How Do I Use This In Several Programs by ckdoublene(op): 8:21pm On Jan 23, 2011
<?php
$apt=$_POST['search_term'];
$stat = mysql_connect("localhost","root",""wink;
$stat = mysql_select_db("prerentdb"wink;
$query = "SELECT name FROM payments Where apt='$apt'";
$stat = @mysql_fetch_assoc(mysql_query($query));
echo $stat["name"];
?>
Re: How Do I Use This In Several Programs by Beaf: 2:58am On Jan 24, 2011
Throw that code away, because it wouldn't take a toddler to download your whole database.

Start from scratch, properly validate all user input and encapsulate you code in a class. You can then call the class through an include file on any page its functionality is needed.
1 Reply

Java online compiler for swing programsC/C++ Doctor: Get Help In Writing C/C++ ProgramsStep-by-step Method Of Writing Contiki Programs234

Teach MeEssay On IctClosed