User Profile

Collapse

Profile Sidebar

Collapse
Deccypher
Deccypher
Last Activity: May 22 '08, 05:15 PM
Joined: Mar 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Deccypher
    started a topic Database based order form
    in PHP

    Database based order form

    Hi I am trying to give my customers an option to save favorite products for easy storage and reorderig.

    it works great and on the single item add to cart i have no problem, how ever i would also like to give them the option to virew all their fav's in an order form like format with a single add to cart button. the problem is that as its pulled from the database the inputs it generates are all called the same so it only add the very...
    See more | Go to post

  • Deccypher
    replied to database values to $_SESSION array
    in PHP
    thank for the responces it was the singel quote problem.

    i am so new to using database and sessions i was sure it was a problem there and not a basic php problem.

    i feel quite silly now

    and ty for the dump solution that will defentily come in handy
    See more | Go to post

    Leave a comment:


  • Deccypher
    replied to database values to $_SESSION array
    in PHP
    ok i was looking at the code and now i tried cangeing this



    [PHP]$userid=$_row["id"];
    $username=$_row["username"];
    $email=$_row["email"];
    $password=$_row["password"];
    $accesslevel=$_ row["accessleve l"];
    $account=$_row["account"];
    $firstname=$_ro w["firstname"];
    $lastname=$_row["lastname"];...
    See more | Go to post

    Leave a comment:


  • Deccypher
    replied to database values to $_SESSION array
    in PHP
    Thank you for the tip,however, i anm still getting the |$fail|$active| $enabled| come through rather than the values i set for each

    it appears that when i
    Code:
    $_SESSION ['fail'] = $fail;
    it sets the session variable to $fail rather than the value for $fail...
    See more | Go to post

    Leave a comment:


  • Deccypher
    started a topic database values to $_SESSION array
    in PHP

    database values to $_SESSION array

    Hi Im trying to do something a little more complex with my login script at the moment it works fine, checks the username and password with the database if its wrong it echo's a error and if its right redirects the user to the main page with the session variable logged_in = true

    but what i have done now is added more feileds into the user table name company email ect.

    what i want to do is on successful login pull the...
    See more | Go to post
    Last edited by ronverdonk; Apr 18 '08, 04:19 PM. Reason: php code tags

  • Deccypher
    replied to show message on no results
    in PHP
    Thanks, worked great
    See more | Go to post

    Leave a comment:


  • Deccypher
    started a topic show message on no results
    in PHP

    show message on no results

    HI the below code is working well with one exception if there is no results (which will happen a few times) then of course nothing is shown id like to put "sorry no results found here" of nothing is pulled from the database

    [CODE=php]$caslimitset = $_GET['caslimitset'];
    if ($caslimitset == "")
    {
    $caslimitset=4;
    }
    else
    {
    $caslimitset = $_GET['caslimitset'];
    ...
    See more | Go to post
    Last edited by Atli; Apr 12 '08, 12:41 AM. Reason: Changed [code] tags to [code=php].

  • Deccypher
    replied to count
    in PHP
    this bit will solve the overall problem thanks...
    See more | Go to post

    Leave a comment:


  • Deccypher
    replied to count
    in PHP
    Works great,

    thank you i just couldn't figure out how to show the results when the query itsself was the result and not generating variables.

    this is going in my bookmarks lol

    thanks again
    See more | Go to post

    Leave a comment:


  • Deccypher
    started a topic count
    in PHP

    count

    hi i got the count functon working but this it the first time i have ever used it
    [php]$_result = mysql_query(" SELECT COUNT( * ) FROM `table` WHERE `colum` = '$sid' ");
    echo "$_result Phones Supported"; [/php]
    i can tell my echo is wriong. but i dont know what i should be doing here

    Please enclose your posted code in [code] tags (See How to Ask a Question). Please use [code] tags in future....
    See more | Go to post
    Last edited by ronverdonk; Mar 24 '08, 12:02 AM. Reason: code within code tags

  • Deccypher
    started a topic insert for cross compatibility
    in PHP

    insert for cross compatibility

    sorry all i ever seam to do here is ask questions:(

    but im really stuck on the best way to do this

    what i have is 2 tables and im trying to make a 3rd table for compatibility

    example
    table 1
    id
    data
    name
    data1

    table2
    id
    data
    supplier
    data2

    what i want is a 3rd table

    table3
    id
    table1...
    See more | Go to post
    Last edited by ronverdonk; Mar 24 '08, 12:05 AM. Reason: code tags!!

  • Deccypher
    replied to sql query into a html table
    in PHP
    modified it a little and worked perfectly

    thank you sooo much
    See more | Go to post

    Leave a comment:


  • Deccypher
    replied to sql query into a html table
    in PHP
    Thank you this looks like what i need or ill re post to let you know if it succeeds...
    See more | Go to post

    Leave a comment:


  • Deccypher
    started a topic sql query into a html table
    in PHP

    sql query into a html table

    hi,
    ive seen may sofwares and lenghty scripts do to this . but im looking for a simple way to display sql queries into a html table

    example
    <a href='carrier.p hp?id=$id'><img src='Images/$item' />
    is the data from the sql table i want

    but instead of it showing as
    xxxxxxxx
    or
    x
    x
    x
    x

    i want it to show as
    xxxx
    xxxx...
    See more | Go to post
No activity results to display
Show More
Working...