sorry...
[code=php]
<?php
session_start() ;
require('db.php ');
mysql_connect(M ACHINE, USER, '');
mysql_select_db (DBNAME);
//Obtaining session variables (From do_login.php)
$uname = $_SESSION['username'];
$pwd =$_SESSION['pwd'];
$outletid = $_SESSION['outletid'];
$role = $_SESSION['role'];
$userid = $_SESSION['userid'];
...
User Profile
Collapse
-
I've done a bit of it before... But I've never came across something like this... (A mixture of PHP and the bold part codes) Mmm... Any idea how can I label my x-axis and y-axis???Leave a comment:
-
mmm.... i can't name both the x-axis and y-axis... i can only get the labels for the axis... so it's PHP codes... ok... sorry for posting it here...Leave a comment:
-
Help...
What languages is this in???
<?php
session_start() ;
require('db.php ');
mysql_connect(M ACHINE, USER, '');
mysql_select_db (DBNAME);
//Obtaining session variables (From do_login.php)
$uname = $_SESSION['username'];
$pwd =$_SESSION['pwd'];
$outletid = $_SESSION['outletid'];
$role = $_SESSION['role'];
$userid = $_SESSION['userid'];
... -
Is this in Java Languages???
Hi... I would like to know if the bold part is using java languages or is it some other languages???
[PHP]<?php
session_start() ;
require('db.php ');
mysql_connect(M ACHINE, USER, '');
mysql_select_db (DBNAME);
//Obtaining session variables (From do_login.php)
$uname = $_SESSION['username'];
$pwd =$_SESSION['pwd'];
$outletid = $_SESSION['outletid'];
$role... -
How to draw graph?
Anyone have any idea on how to draw a line graph with php using the data from mysql. -
Create PDF file using PHP...
Hello... Any idea how to create PDF file using PHP codes... -
How can i use something like this to do a line graph??? Anyone can give me any clue on that???
http://www.daniweb.com/forums/thread100930.ht ml
<?php
include_once 'db.php';
$qt=mysql_query ("select * from gd_graph1 order by sales");
header ("Content-type: image/gif");
$x_gap=40; // The gap between each point in y axis...Leave a comment:
-
Use PHP to do Line Graph
Anyone have any idea on how to do a simple line graph using PHP codes? -
I just learned from my friend... Not sure if it works for yours...
Add the following at the start of your codes...
ob_start();Leave a comment:
-
Drop Down Field to Drop Down Field
Hi everyone!
I was just wondering if it's possible to do the following... And is it hard to implement such function into PHP codes...
Assume that I have a drop down field whereby a user can select the different brand mobile phone i.e. Nokia, Samsung...
For instance, when a user selects Nokia, another drop down field will update its values to the available Nokia models stated in the database, for example,... -
-
is it possible to have more than one header(location: );
is it possible to have more than one header(location : );
or can i have one
header('Refresh : 3; url=login.php') ;
and
echo header('locatio n: index.php'); -
How to use refresh and location?
I've got problem using
header('Refresh : 2; login.php');
i understand the concept behind it just that it can't work on my system.
can anyone help me solve my problem.
my error message is the following:
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs \fyp\do_login.p hp:60) in C:\xampp\htdocs \fyp\do_login.p hp on... -
-
But my userid is a variable it'll change according to the logged in user's userid... so can i put it as
[code=php]userid = $_GET['userid'];
$sql = "SELECT outletid, customerid, userid FROM customer, users
WHERE users.outletid = reservation.out letid, customer.custom erid = reservation.cus tomerid, users.userid = reservation.use rid
WHERE users.userid = $userid"; [/code]
Then how about...Leave a comment:
-
[code=php]$sql = "SELECT outletid, customerid, userid FROM customer, users
WHERE users.outletid = reservation.out letid, customer.custom erid = reservation.cus tomerid, users.userid = reservation.use rid";
$result = mysql_query($sq l);
$row = mysql_fetch_arr ay($result); [/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
you mean something like this?Leave a comment:
-
Retrieve other database table's data
I would like to know how to I retrieve information from another database table...
Instead of keying in manually, I would like to retrieve data directly from the logged in user row. For the user table, i have outletid in it.
Outlet ID: <input type="text" name="outletid" > (Manually)
Outlet ID: <?php echo $row['outletid']; ?> (Is this how it looks like if I want to retrieve data... -
Thanks everyone... I manage solve it... Actually there isn't any error... All i did was drop my table and change it to another new table (I tried my luck by changing the table name)... It works after that... But after all, I still wanna thank u guys for spending your time looking thru my codes and help me look for error... A BIG THANK YOU...Leave a comment:
-
Mmm... Thanks Nathj... I've tried using the one u gave me... I did some editing before using... But it still can't work... I'm wondering if there's something wrong with my reservation.php
[code=php]
<?
session_start() ;
require("db.php ");
mysql_connect(M ACHINE, USER, '');
mysql_select_db (DBNAME);
$uname = $_SESSION['username'];
$pwd =$_SESSION['pwd'];...Leave a comment:
No activity results to display
Show More
Leave a comment: