LOOKING FOR PHP FILE

  • bob
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 6 months ago #138824 by bob
LOOKING FOR PHP FILE was created by bob
Hello mr tuan,

i created a new column in Table: josme_eb_events named "event_rating". how can I declare this columns in PHP with other columns like title, short_description, url and the others..

<?php echo $event->url; ?>
<?php echo $event->title; ?>

the code at above are working, but when I want to use a new column like this <?php echo $event->event_rating; ?> the output its not appear..

im using this code for adding some details in event_column.php

thank you

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #138825 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic LOOKING FOR PHP FILE
Hello

That's not possible. You will have to use something like this:

$rowEvent = EventbookingHelperDatabase::getEvent($event->id);

echo $rowEvent->event_rating;

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • bob
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 6 months ago #138827 by bob
Replied by bob on topic LOOKING FOR PHP FILE
its working now, thank you mr tuan :D

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #138829 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic LOOKING FOR PHP FILE
Great :)

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc