Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
About Me

gfg

Interests
gdfg
PC Specs
gdfgf
Favorite Forums
Favorite Tags
Member Avatar for labise

<?php // Set up the database connection $dsn = 'mysql:host=localhost;dbname=lafamosa_plaincart; $username = 'lafamosa_kermis'; $password = 'lafamosa1980'; $options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION); try { $db = new PDO($dsn, $username, $password, $options); } catch (PDOException $e) { $error_message = $e->getMessage(); include('errors/db_error_connect.php'); exit(); } ?> Parse error: syntax error, unexpected T_STRING in /home/lafamosa/public_html/dene/model/database.php …

Member Avatar for phorce
0
139
Member Avatar for labise

[CODE] <?php /* Check if a session user id exist or not. If not set redirect to login page. If the user session id exist and there's found $_GET['logout'] in the query string logout the user */ function checkUser() { // if the session id is not set, redirect to …

Member Avatar for pritaeas
0
64
Member Avatar for labise

for experiment i pull data from mysql to xml to use in flash how can i add ahref to id in xml to achieve like this [url]http://www.kalitekolik.x10.mx/product.php?id=1[/url] [url]http://www.kalitekolik.x10.mx/PHP_MySQL_Flash_FINISHED.swf[/url] my database like this id/ product_name/ price/ details [CODE] <?PHP $link = mysql_connect("localhost","lafamosa_kermis","lafamosa1000"); mysql_select_db("lafamosa"); $query = 'SELECT * FROM products'; $results = …

Member Avatar for shahbaz13
0
121
Member Avatar for labise

i get such a error:"Deprecated: Function eregi_replace() is deprecated " [CODE] <?php // let's initialize vars to be printed to page in the HTML section so our script does not return errors // they must be initialized in some server environments $errorMsg = ""; $firstname = ""; $lastname = ""; …

Member Avatar for pritaeas
0
185
Member Avatar for labise

i can not get mail from forgot_password.php why? I use a free hosting. [CODE] <?php // Require the configuration before any PHP code as the configuration controls error reporting: require ('./includes/config.inc.php'); // The config file also starts the session. // Include the header file: $page_title = 'Forgot Your Password?'; include …

Member Avatar for labise
0
273
Member Avatar for labise

the admin page goes nowhere before it works very well [CODE] <?php session_start(); if (isset($_SESSION["manager"])) { header("location: index.php"); exit(); } ?> <?php // Parse the log in form if the user has filled it out and pressed "Log In" if (isset($_POST["username"]) && isset($_POST["password"])) { $manager = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["username"]); // …

Member Avatar for labise
0
138
Member Avatar for labise

How can i add a pop-up window with below code? [CODE]<a href="inventory_images/<?php echo $id; ?>.jpg">View Full Size Image</a></td>[/CODE]

Member Avatar for jcarbillon
0
106
Member Avatar for labise

[CODE] <html> <head> <title>search</title> </head> <body> <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="599" border="1"> <tr> <th>Keyword <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_GET["txtKeyword"] != "") { $objConnect = mysql_connect("localhost","lafamosa_kermis","lafamosa1980") or die(mysql_error()); $objDB = mysql_select_db("lafamosa_mystore"); // Search By Name or Email $strSQL = "SELECT * FROM …

Member Avatar for pritaeas
0
213