View Full Version : Simple PHP Job
TechnoPanda
31-01-2009, 12:15 PM
Basically, I have a mysql table with userID and OfferID but I need Usertitle and offertitle to be submitted and for it to show up on the php page.
Luno1599
04-02-2009, 06:06 PM
I dont understand...
Dan
-Adam
11-02-2009, 09:44 PM
Erm
Just started PHP, so correct me if im wrong.
<?php
?>
<html>
<body>
<?php
include_once "db_connect.php";
$fetch=mysql_fetch_object($query);
$userid = $_GET['UserID'];
$userid = $_GET['offertitle'];
$fetch->UserID
$fetch->offertitle
echo "Welcome $userid & $offertitle";
?>
PUT THIS AS DB_CONNECT.PHP
<?php
$mysql_server = "localhost";
$mysql_user = "adam_adam";
$mysql_password = "flower";
$mysql_database = "adam_game";
$connection = mysql_connect("$mysql_server","$mysql_user","$mysql_password") or die ("Unable to connect to MySQL server.");
$db = mysql_select_db("$mysql_database") or die ("Unable to select requested database.");
?>
</body>
</html>
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.