User Profile

Collapse

Profile Sidebar

Collapse
nse111
nse111
Last Activity: Aug 24 '09, 10:15 AM
Joined: Jul 7 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Can I have a session array that gets added dynamically?

    Is it possible to have a Session variable as an array in PHP where,


    that array gets values added to it dynamically?


    Im trying to create a inquiry cart where the product ids of all the items that a customer inquires about gets stored in a session variable. how can I do this?

    the ids can be sepperated by a delimeter dynamically. I just cant get this done. pls help if you know. thans in a...
    See more | Go to post

  • Hey thanks so much for your answer. but even this way i keep loosing the value when I navigate to another page and back from abc.php.

    Well im thinkin may be cookies is the solution

    like:

    setcookie("cook name", $_SESSION["pid"], time()+60*60*24 *100, "/");

    if there's someother way smone pls let me know. thanks in advance!!


    See what I want...
    See more | Go to post

    Leave a comment:


  • Using Sessions to pass a value from one page to another in PHP

    I use PHP sessions to pass a value from one page to another.



    In my 1st page I pass a value called 'id' to my 2nd page using a hyperlink.

    explained:

    <a href="abc.php?i d=<?php print"$image_id ";?>"></a>

    so in my 2nd page (abc.php) I capture the value for id using $_GET.

    I want to know how I can do the same using session variables....
    See more | Go to post
    Last edited by pbmods; Aug 12 '08, 11:19 AM. Reason: Fixed CODE tags.

  • ok............. ........ thanks froggy...
    See more | Go to post

    Leave a comment:


  • How can I determine the height and width of the flowwong php mysql tag cloud?

    [code=php]
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hope this works</title>
    <link href="./Art/stylesheets/cloud_style.css "...
    See more | Go to post
    Last edited by Atli; Aug 11 '08, 05:28 AM. Reason: Added [code] tags

  • nse111
    replied to Data isn't saving to mysql database
    in PHP
    sorry it's a silly question. found the answer. for anyone who seeks tha answer it's simply that the

    or


    should be

    ||
    See more | Go to post

    Leave a comment:


  • nse111
    replied to Data isn't saving to mysql database
    in PHP
    and one of those $fname within if() should be $email. sorry mistyped.

    I get this smg all the time. just cnt c y

    "Please fill all required fields"
    See more | Go to post

    Leave a comment:


  • nse111
    started a topic Data isn't saving to mysql database
    in PHP

    Data isn't saving to mysql database

    I hv a form in my php file to accept some data from the user.

    Then as shown below I capture the data using PHP.

    the data is getting captured in the variables no prob with that.

    but the data isn't getting saved to the database.

    it should have something to do with my if cluases. pls let me knw the error.

    thanks in advance...!!!! :)

    [code=php]
    <?php...
    See more | Go to post
    Last edited by pbmods; Aug 7 '08, 10:45 AM. Reason: Added CODE tags.

  • nse111
    replied to how to display image from database?
    in PHP
    OMG!! I'v bin lookin for this for sooooooooooo long! all of u r life savers!!!!! thaaaaaaaaaaaaa aaaaaaaanks!!! I'm a newbie myself :( thanks thanks... :)
    See more | Go to post

    Leave a comment:


  • Hmmm really interesting facts guys.. thanks so much I will really consider them! thanks again
    See more | Go to post

    Leave a comment:


  • nse111
    replied to match an exact word within a string
    in PHP
    pls help!!! someone...
    See more | Go to post

    Leave a comment:


  • nse111
    replied to match an exact word within a string
    in PHP
    This is why..

    the 'tags' field in my table stores all the tags for a particular image.

    like,

    example: cherry:tree:gar den:hotel:mount ain

    so after accepting a tag/tags from a user n assigning it to a variable/variables
    how do I query my database?

    can you pls help?...
    See more | Go to post

    Leave a comment:


  • nse111
    started a topic match an exact word within a string
    in PHP

    match an exact word within a string

    Hey yaaaaaaa guys n gals!

    I want to know how I can match a whole word within a string using php.

    these are the results returned by the mysql query:

    tree:sweet:hous e:gate:tent
    candy:lollipop: choco:street:ch ild

    i want to search the word 'tree' wich I take from the user dynamically.

    when I use the following code:

    [CODE=PHP]
    if (isset($_POST['findtag']))...
    See more | Go to post
    Last edited by ak1dnar; Aug 5 '08, 02:31 PM. Reason: Fixed <CODE=PHP> with [CODE=PHP] [/CODE]

  • thanks......... ............... .............
    See more | Go to post

    Leave a comment:


  • sorry guys i guess thats ike really simple. i used implode
    See more | Go to post

    Leave a comment:


  • nse111
    started a topic I want to know how I can do this using PHP & MySQL
    in PHP

    I want to know how I can do this using PHP & MySQL

    I want to add tags for a paricular image in my db table.
    I want these tags to be stored in one table field.
    lets say I entered the following tags for an image:

    house
    mountainside
    lake
    greenery

    I want these tags to be saved in 1 field named Tags separated by a delimiter.

    house:mountains ide:lake:greene ry

    the above is wat shld be stored in my database. ...
    See more | Go to post

  • thanks all :) for the info on tags, links n abt the advice on attitude arnd here :)
    See more | Go to post

    Leave a comment:


  • Gosh stop being rude! by the way thanks for that link but that also explains displaying just ONE image. see thats the prob I'v got. I want to display multiple images (thumbnail list).
    See more | Go to post

    Leave a comment:


  • Blob does not display multiple images from mysql database

    [code=php]<?php
    //header('Content-Type: image/jpeg');
    header('Content-Type: text/html');
    @mysql_connect( "localhost","ro ot","dba") or die("Error");
    @mysql_select_d b("gallery");
    $result = mysql_query("SE LECT * FROM paintings");
    while($row = mysql_fetch_ass oc($result)){
    print $row[p_painting_id]."</br>";
    //print $row[p_painting_imag e];...
    See more | Go to post
    Last edited by pbmods; Jul 29 '08, 10:53 AM. Reason: Added CODE tags.

  • nse111
    started a topic Paging isnt working
    in PHP

    Paging isnt working

    I am trying to get some data and show it usig paging. my coding displays and also the paging is also visible on my web page. but it doesnt work. as in when i click next the next set of results aren't shown. Pls tell me wats wron wit my coding.

    pls not that this is a jst a snippet from my coding.so ignore unclosed tags n all.
    [code=php]
    $db_host = 'localhost';
    $db_user = 'root';
    $db_pwd = 'dba';
    ...
    See more | Go to post
    Last edited by pbmods; Jul 18 '08, 10:53 AM. Reason: Added CODE tags.
No activity results to display
Show More
Working...