Login Password

kalpesh Ruparel

Activity stream

  • kalpesh Ruparel posted a new activity comment:   1 year, 5 months ago · View

    NO, I am trying to edit the record from form..

    In reply to - Cindy N answered the question “PHP HELP” Are you trying to edit a record within a database? · View
  • kalpesh Ruparel posted an update in the group AvatarVisual Basic:   1 year, 6 months ago · View

    Can anyone tell me the ADODB connect code and example.I tried some code but there was a error.

    • Avatar Image
      willko · 1 year, 2 months ago

      I am just learning about connecting to a database with vb. The usual handling of tables of a database requires creating TableAdapter and DataSet objects from what I am understanding. I’m not sure exactly what you mean by connect code. I have used Microsoft Access Databases (.mdb files) In Visual Studio only, and it uses a wizard to set the connection, but the generated SELECT statements look the same as SQL. Post the code that you are getting the error on if you can.

  • kalpesh Ruparel posted an update in the group AvatarPHP:   1 year, 6 months ago · View

    Anyone suggest me about PHP truncate function

    • Avatar Image
      Daniel Gutierrez · 1 year, 6 months ago

      Maybe this one could be useful for you…

      This function returns the first 10 characters of your string $str followed by three dots.

      function TruncateText ($str, $length=10, $trailing=’…’)
      {
      $length-=strlen($trailing);
      if (strlen($str) > $length)
      {
      // string exceeded length, truncate and add trailing dots
      return substr($str,0,$length).$trailing;
      }
      else
      {
      // string was already short enough, return the string
      $res = $str;
      }
      return $res;
      }

bettercodes.org is released as free software without warranties under GNU Affero GPL v3