Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to display events from two different tables in mysql how? #756

Open
vincentdabs opened this issue Sep 30, 2018 · 3 comments
Open

Comments

@vincentdabs
Copy link

vincentdabs commented Sep 30, 2018

No description provided.

@R-Caser
Copy link

R-Caser commented Oct 2, 2018

$sqlEvents = "SELECT * FROM table1 WHERE xy ='yx'";
$resultset = mysqli_query($conn, $sqlEvents) or die("database error:".mysqli_error($conn));
$calendar = array();

while( $rows = mysqli_fetch_assoc($resultset) ) {
    // convert date to milliseconds
    $calendar[] = array(
    'id' =>$rows['id'],
    'title' =>$dt." ". $rows['title'],
    'url' => "#",
    "class" => 'event-important',
    'start' => $rows["start"],
    'end' => $rows["end"]
    );
}

$sqlEvents = "SELECT * FROM table2 WHERE xy ='yx'";
$resultset = mysqli_query($conn, $sqlEvents) or die("database error:".mysqli_error($conn));
$calendar = array();

while( $rows = mysqli_fetch_assoc($resultset) ) {
    // convert date to milliseconds
    $calendar[] = array(
    'id' =>$rows['id'],
    'title' =>$dt." ". $rows['title'],
    'url' => "#",
    "class" => 'event-important',
    'start' => $rows["start"],
    'end' => $rows["end"]
    );
}

$calendarData = array(
"success" => 1,
"result"=>$calendar);

@vincentdabs
Copy link
Author

can i also ask why the calendar is not displaying in chrome and mozilla in other computers? but in my own its displaying?

@cablegunmaster
Copy link

cablegunmaster commented Oct 5, 2018

Yes , because you don't host it online . Only on your own pc? (assumption)
So do you got any server for your calendar?

My suggestion if you don't, buy some webstorage and webadress name and put all your files there.
Either that or you are hosting at your own pc but the pc is not able to be connected from outside. which are port issues (port forwarding required).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants