User Profile

Collapse

Profile Sidebar

Collapse
harintfs
harintfs
Last Activity: Jun 8 '15, 08:47 AM
Joined: Dec 2 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to insert string into mysql contains double backslash

    Code:
    $str="james//bond";
    $str= mysqli_real_escape_string($con,$str);
    //insert query
    after successful insert in database it value shows as "james/bond"

    how I can insert exact string? anyone pls help.
    See more | Go to post
    Last edited by Rabbit; Jun 6 '15, 08:53 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • harintfs
    replied to php session expiry
    in PHP
    Yes, I using session_set_coo kie_params(1080 0); before calling session_start .. each page. Wheter I need edit php.ini? And also I am attaching my current php.ini config file.
    Thanks...
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to php session expiry
    in PHP
    Dear Friend,
    I used session_set_coo kie_params(1080 0); But now I am facing some problem. After 1 hr (on 65th min)even with activity (frequent clicks on page) at the time of submitting my page its expires, What may be problem? How to fix it?. I tried to work 45 min with activity and submit there is no expiry problem.
    I am using shared hosting.
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to php session expiry
    in PHP
    Great,
    Thanks lot,
    Then why there is two functions for same purpose?
    anyway thanks once again. Let i work with this, If problem persists, I ll inform y.
    See more | Go to post

    Leave a comment:


  • harintfs
    started a topic php session expiry
    in PHP

    php session expiry

    Dear
    I would like to set session expire time to 3hrs,
    Which one is best ?
    ini_set("sessio n.cookie_lifeti me","10800"); or session_set_coo kie_params(3600 * 3);
    Or can I use both?
    Is it compulsary to place every page b4 where ever session_start() ;
    And one more above said syntax is correct or not? because some people using "10800" and some '10800' others just 10800. how to set?...
    See more | Go to post

  • how i can open my php file as pop up window through php header function.

    Dear,
    I am using show my payment history window as follows..

    Code:
    <form name="myform" method="post" action="payhistory.php">
    
    <input name="pay_his" type="submit" class="memberhistory" value="Payment history" onclick="myform.target='POPUPW'; POPUPW = window.open('about:blank','POPUPW','width=550,height=400','scrollbars = yes','title= ' );"
    ...
    See more | Go to post
    Last edited by Stewart Ross; Feb 1 '12, 08:25 PM. Reason: Code tags added

  • harintfs
    replied to SQL Injection PHP
    in PHP
    Thank you very much. Bye.
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to SQL Injection PHP
    in PHP
    Pls one more ..
    what are the dependency for get_magic_quote s_gpc(); to turn on or off...
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to SQL Injection PHP
    in PHP
    Pls one more ..
    what are the dependency for get_magic_quote s_gpc();
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to SQL Injection PHP
    in PHP
    then whats purpose of mysql_real_esca pe_string()
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to SQL Injection PHP
    in PHP
    if get_magic_quote s_gpc() is turn on, why should I care about sql injection, I thing it ll take care all...
    See more | Go to post

    Leave a comment:


  • harintfs
    started a topic SQL Injection PHP
    in PHP

    SQL Injection PHP

    Dear Friend,
    get_magic_quote s_gpc() is turned on or off, where it decided? whether its depends on Hosting server Or, PHP Version. One more, if get_magic_quote s_gpc() turn on that means i don't need to use precaution code like mysql_real_esca pe_string, addslashes etc..am i correct or not? Please Thanks.
    See more | Go to post

  • harintfs
    replied to php session
    in PHP
    when using <? session_start() ; ?> ..my variable values are reset. showing wrong answers.
    See more | Go to post

    Leave a comment:


  • harintfs
    replied to php session
    in PHP
    Pls , Can you explain, with little sample? Whether i need to place <? session_start() ; ?> before </form>.. Thanks
    See more | Go to post

    Leave a comment:


  • harintfs
    started a topic php session
    in PHP

    php session

    My Php page get expired in 15 min of no activity. But I didn't find any program code mentioning time limit for session expire. (I am sure)

    So I thing it is default setting. How I can change it? I would like to set 2 hrs for session expire. And also after time limit i want to display message to user that 'Seesion expired. Pls try again' like that. After that page has to be loaded again. is it possible? How? Advance thanks. friends.
    See more | Go to post

  • harintfs
    replied to calling some other php file from php file
    in PHP
    ya thanks for reply...
    ya each db has userid (auto) & status for user whether he is online or not
    ...once user login his status ll be ;Y; at the time of logout or after 3 hrs his status ll be ;N;, so we can get count{id) where status ;Y;
    .... If count more than 150 ... I have to call Sales2/index.php...b4 calling I have to verity whether db2 have enough room, otherwise Sales3/index.php.... like that....Adv thanks to soulti...
    See more | Go to post

    Leave a comment:


  • harintfs
    started a topic calling some other php file from php file
    in PHP

    calling some other php file from php file

    hi,

    I am having data base in MySql connecting with PHP. Working nice.
    I have folder name "sales" where have all my php file.
    I usually call sales/index.php from my html file.

    As I am using shared hosting, which have limitation for MySql concurrent connection, which is limited to 200 connection.

    To solve problem i created 5 database with same scripts.
    And also I created 5...
    See more | Go to post
No activity results to display
Show More
Working...