• Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Facebook PHP SDK, how to get number of feed's comments per person?

    You apparently have an array with comments. Just loop them and increment a counter for every user you find in that particular feed.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in File names PHP, MySQL

    Lines 15 and 25 use `$file['name']` instead of `$file2['name']` and `$file3['name']` respectively.
  • Member Avatar for pritaeas
    pritaeas

    Edited Simple online Email form

    Hi, If anybody want to test simple email online form, here is a sample: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> …
  • Member Avatar for pritaeas
    pritaeas

    Edited thesis

    any thesis title for an IT student?
  • Member Avatar for pritaeas
    pritaeas

    Edited graphic design software question

    Hi, I'm new to this community forum. I have a web marketing company and have a potential client that needs a website with a feature that allows the visitor to …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Allow data transfer only through AJAX, never direct.

    For example: if (count($_POST) == 0) exit();
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Replace only if the entire string matches, not just a part.

    Order them longest to shortest (descending order).
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Order By with numbers countdown

    That's what the variable is for.
  • Member Avatar for pritaeas
    pritaeas

    Edited encryption and decrytpion

    I want to encrypt and decrypt the password and username of my login table I already populate my login table with 5 rows Can anyone suggest some Encryption and decryption …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Search timeout

    Can you also show the two table structures.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Order By with numbers countdown

    Then just add another `<img src="/path/$idx.png" />` or whatever. Define `$idx` before the `foreach` and increment before the end of the loop.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Allow data transfer only through AJAX, never direct.

    I'd probably choose to allow only POST'ing to the script (die on a GET request), and when rendering the page add a token which needs to be sent in the …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Search timeout

    > I have tried both suggestions but still times out only that it takes slightly longer now to time out I wonder if it's something else. The query should be …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Search timeout

    What is the column type of `Exam_number` and is it indexed? You can also try: cmd.CommandText = "select r.Surname, r.First_name, r.Sex, c.type from dbo.cand_results AS r LEFT JOIN dbo.centres AS …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Order By with numbers countdown

    Show your code, you just have to add a variable to your output loop.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in How can i get a Highest value from multidimensional Array from mysql?

    This should work too: $max = max(array_map('max', $dimensional));
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in How can i get a Highest value from multidimensional Array from mysql?

    http://php.net/array_keys http://php.net/max
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Hello all!

    Welcome to DaniWeb.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Regex woes

    Are you sure, because that last one also removes the `\r`. If that's what you want then it's fine.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Regex woes

    I ran this: string output = "1.2.3.4 sometext \r\n9.8.7.6 othertext\r\n5.6.7.8 moretext\t"; output = Regex.Replace(output, @"(.*?)[ \t]+$", "$1", RegexOptions.Multiline); with the debugger the tab is clearly gone. VS2015 community console app, …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Regex woes

    Perhaps: output = Regex.Replace(output, @"(.*?)[ \t]+$", "$1", RegexOptions.Multiline); It searches for spaces and tabs before the newline and replaces it with everything before it.
  • Member Avatar for pritaeas
    pritaeas

    Edited Regex woes

    I have this string, it looks like this 1.2.3.4 sometext 9.8.7.6 othertext 5.6.7.8 moretext sometext has a space before new line and moretext has a tab at the end (and …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in converting image templates to a mobile app

    Without processing... impossible. Assuming there would be an app, how would it create any logic based on an image?
  • Member Avatar for pritaeas
    pritaeas

    Edited undefined reference to ?

    I have four files in c++ 1. BankAccount.h 2. BankDatabase.h 3. Main.cpp BankAccount.h #include <string> class BankAccount { public: BankAccount(int accNumber,const std::string& accName); void setAccNumber(const int accNumber); int getAccNumber() const; …
  • Member Avatar for pritaeas
    pritaeas

    Edited Java

    Help pls. I need to make a program. A program that calculates an employee’s pay per week. Obtain from the user an hourly pay rate and the number of hours …
  • Member Avatar for pritaeas
    pritaeas

    Edited Mvc

    How to diable a button
  • Member Avatar for pritaeas
    pritaeas

    Edited how craete filter for input in php

    hello how create filter for input password in php
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in how craete filter for input in php

    Closed. https://www.daniweb.com/web-development/php/threads/498215/how-craete-filter-for-input-in-php
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Mvc

    What language?
  • Member Avatar for pritaeas
    pritaeas

    Edited win32 - how put a control on center depending on parent size?

    heres my function for convert to client using RECT: void ScreenToClient(HWND WindowDestination, RECT *WindowRectangle) { POINT a={WindowRectangle->right, WindowRectangle->bottom}; WindowRectangle->left=0; WindowRectangle->top=0; ::ScreenToClient(WindowDestination,&a); WindowRectangle->right=a.x; WindowRectangle->bottom=a.y; } maybe have some errors too :( …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Hello everyone!

    Welcome to DaniWeb.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in query regarding connectivity to database

    So what's the question?
  • Member Avatar for pritaeas
    pritaeas

    Edited query regarding connectivity to database

    try { frmCombination.Mode = "Add"; this.Clear_All_Controls(); this.Enable_All_Controls(); if (!(this.Form_Name == "Secured Life")) ; this.btnGenerate.Enabled = true; this.btnChange.Enabled = true; this.mskReportDate.Text = Convert.ToString(DateTime.Now); ****** if (this.Form_Name == "Secured Life") this.txtQuotation.Text = …
  • Member Avatar for pritaeas
    pritaeas

    Edited A thought to Dani

    Hi Dani. I was wondering is it possible to add a feature where when there is a watched article update(s) on top on the menus where it say (Watched) have …
  • Member Avatar for pritaeas
    pritaeas

    Edited How to upgrade database fields

    So I just got an entry level job at a company, and I have been given a business application to tweak and improve. I have a senior, and more experienced …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Hola..!

    Welcome to DaniWeb.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Hi, I'm Oliver I'm here to learn.

    Welcome to DaniWeb.
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Loading related objects from database

    No need to apologize, it is not urgent. Next week am off anyway, and they might have seen the light to switch to EF for new projects.
  • Member Avatar for pritaeas
    pritaeas

    Edited no e-mail received to complete registeration process

    Your not sending e-mail verifications, I've been trying to register but I cant User=GeneralKlag e-mail=mark@example.com
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in difference between UL and OL in html

    > What is the use of using ol and ul in a HTML Page Defining lists. Here are the official definitions: http://www.w3.org/TR/html5/grouping-content.html#the-ol-element http://www.w3.org/TR/html5/grouping-content.html#the-ul-element
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Edit a post

    You cannot. Editing is enabled only for 30 minutes. I suggest you reply with the missing information.
  • Member Avatar for pritaeas
    pritaeas

    Edited no e-mail received to complete registeration process

    Your not sending e-mail verifications, I've been trying to register but I cant User=GeneralKlag e-mail=mark@example.com
  • Member Avatar for pritaeas
    pritaeas

    Edited fkLookup field displays boxes in OnFilterRecord in Delphi 7

    I have a 3 character fkLookup field sat_site in a table. I'm using TAdsTable table component. When I filter out records in my grid on a field sat_site, grid does …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Unable to update PDO prepare statement

    > I am facing an issue What's the issue? Am guessing the colons before your parameter names in bindParam...
  • Member Avatar for pritaeas
    pritaeas

    Revoked Solved Status for plugin prob

    how to social plugin in my site in custom php .please help me .....
  • Member Avatar for pritaeas
    pritaeas

    Edited joins in codeigniter

    In Codeigniter, how we handle many to many relationship between table....how we handle the pivot table?
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in User status validation problem

    Shouldn't you be querying for only the user that is trying to login, instead of getting all users? Similar to [this question](https://www.daniweb.com/web-development/php/threads/497864/getting-error-while-using-in_array-function).
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in Hello to everyone!

    Welcome to DaniWeb.
  • Member Avatar for pritaeas
    pritaeas

    Edited show retrieve data in drop down list in codeigniter

    Its my controller code <?php class Booking_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('Books_model'); } This is my model code <?php class Books_model extends CI_Model{ public function __construct(){ $this->load->database(); } …
  • Member Avatar for pritaeas
    pritaeas

    Replied To a Post in ASP.net weather Condition Bot

    What's the question?

The End.