Jump to content

giwrgos

New Members
  • Posts

    3
  • Joined

  • Last visited

giwrgos's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. categoryid is a field. if a make this loop fooreach ($test as $row){ echo $row->categoryid; } it will print all the values of the field categoryid
  2. Im using PDO where i'm getting values from the database as an object "setFetchMode(PDO::FETCH_OBJ)" Then i return this values in the test variable and i want to make a foreach loop for any of the files that the test has. for example i can make foreach (test->categoryid as $categoryvalue) ?
  3. Hello everyone. i'm new on this site and also new on PHP coding. I want to make a loop using the values of an object (name of the object is test). my object has categoryid,parentid and i want to make something like this forearch(categoryid){ foreach(parentid){ if (parentid == categoryid){ do something } } } Can anyone help me to do this loop? Thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.