User Profile

Collapse

Profile Sidebar

Collapse
agphoto
agphoto
Last Activity: Sep 16 '06, 07:22 PM
Joined: Sep 11 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hello,

    that was just in hurry while posting, that S, nut when i code is all right . coding is not problem, if any code wrong then , script does not run.

    you try with same sql query for num rows and while(),

    try it i am running all my db system, thing is if it work proper then i had not to run two different sql query...

    thanks
    See more | Go to post

    Leave a comment:


  • while($row = ) fetch row from table show not complete result..

    when we do mysql_query with while and mysql_num_rows( ) together then while do no show the first row from table in database..

    example :
    <?
    $conn = mysql_connect($ DBhost,$DBuser, $DBpass) or die("Unable toconnect to database");
    @mysql_select_d b("$DBName") or die("Unable to select database $DBName"); $sqlquery = "SELECT * FROM $table WHERE opinion = 'is great'";
    $result...
    See more | Go to post

  • agphoto
    started a topic open file in read and write mode..w+
    in PHP

    open file in read and write mode..w+

    There is big or problem in open file in read and write mode..
    Code:
    $file = "data.txt";
    
    $fp = fopen($file,"w+");
    $line = fgets($fp,"120"); // i need only 1st line to read and upto 120 bytes
    echo $line;
    fclose($fp);
    coding is not problem, The problem is file modifier as mention in PHP
    use " w+ " for read the data in file and then overwrite the new data....
    See more | Go to post
    Last edited by pbmods; Jan 24 '09, 08:28 AM. Reason: Added CODE tags.

  • agphoto
    replied to how to share a Session
    in PHP
    Basically i want to run a counter by the use of session

    As on first request i set the session_counter = 1
    then i want whenever other different user send request he found the session_counter = 1 and after his request it become session_counter = 1++;

    i do not want to use any file and database system, as with them i can do that. but i am looking from sessions ....

    how to.....??
    See more | Go to post

    Leave a comment:


  • agphoto
    started a topic how to share a Session
    in PHP

    how to share a Session

    hello !

    i am to share a same session value used by different user request to a script.

    > as when first request come then session is created and then other request come with the same subject and then another session is created with other session id,

    .but i want to use the same session value created at first request for other same request by different user later ..how this can be done..

    ...
    See more | Go to post
No activity results to display
Show More
Working...