User Profile

Collapse

Profile Sidebar

Collapse
fruityfreak
fruityfreak
Last Activity: Jan 11 '08, 01:23 AM
Joined: Jun 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • fruityfreak
    replied to Help...
    in PHP
    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'];
    ...
    See more | Go to post

    Leave a comment:


  • fruityfreak
    replied to Help...
    in PHP
    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???
    See more | Go to post

    Leave a comment:


  • fruityfreak
    replied to Is this in Java Languages???
    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...
    See more | Go to post

    Leave a comment:


  • fruityfreak
    started a topic Help...
    in PHP

    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'];

    ...
    See more | Go to post

  • fruityfreak
    started a topic Is this in Java Languages???

    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...
    See more | Go to post
    Last edited by acoder; Jan 10 '08, 12:29 PM. Reason: Added code tags

  • fruityfreak
    started a topic How to draw graph?
    in PHP

    How to draw graph?

    Anyone have any idea on how to draw a line graph with php using the data from mysql.
    See more | Go to post

  • fruityfreak
    started a topic Create PDF file using PHP...
    in PHP

    Create PDF file using PHP...

    Hello... Any idea how to create PDF file using PHP codes...
    See more | Go to post

  • fruityfreak
    replied to Use PHP to do Line Graph
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • fruityfreak
    started a topic Use PHP to do Line Graph
    in PHP

    Use PHP to do Line Graph

    Anyone have any idea on how to do a simple line graph using PHP codes?
    See more | Go to post

  • I just learned from my friend... Not sure if it works for yours...

    Add the following at the start of your codes...

    ob_start();
    See more | Go to post

    Leave a comment:


  • fruityfreak
    started a topic Drop Down Field to Drop Down Field
    in PHP

    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,...
    See more | Go to post

  • what do u mean by that??
    See more | Go to post

    Leave a comment:


  • 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');
    See more | Go to post

  • fruityfreak
    started a topic How to use refresh and location?
    in 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...
    See more | Go to post

  • fruityfreak
    started a topic transaction page
    in PHP

    transaction page

    Any idea on how to create a transaction.php page...
    See more | Go to post

  • fruityfreak
    replied to Retrieve other database table's data
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • fruityfreak
    replied to Retrieve other database table's data
    in PHP
    [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?
    See more | Go to post

    Leave a comment:


  • fruityfreak
    started a topic Retrieve other database table's data
    in PHP

    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...
    See more | Go to post

  • fruityfreak
    replied to Cannot upload data into database
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • fruityfreak
    replied to Cannot upload data into database
    in PHP
    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'];...
    See more | Go to post
    Last edited by Atli; Jun 30 '07, 04:41 AM. Reason: Added code tags

    Leave a comment:

No activity results to display
Show More
Working...