Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6119909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:36:26+00:00 2026-05-23T15:36:26+00:00

I have a file for a calendar made with javascript called calendar_db.js, in it

  • 0

I have a file for a calendar made with javascript called calendar_db.js, in it there is this if statment:

        if (d_current.getDay() != 3 && d_current.getDay() != 6)
            a_class[a_class.length] = 'available';

it checks if the day is not the 3d or the 6th then. So my question is how to make a php mysql query to get those numbers (3 and 6) because I want to change them with mysql databse.
What are your suggestions?

Thank you for your time and help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:36:27+00:00Added an answer on May 23, 2026 at 3:36 pm

    EDIT:

    Read the javascript file by using fopen(), file_get_contents(), or CURL:

    http://www.php-mysql-tutorial.com/wikis/php-tutorial/reading-a-remote-file-using-php.aspx

    Use some kind of regex to parse the javascript file looking for the particular match of the line with your values. If your javascript file isn’t going to change much, it might be easier to just count lines and characters and get the number at exactly some position. This assumes your numbers will always be single digits.

    Is this what you’re after?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this file: <h1>Calendar view</h1> <div class=events> <% @events.each do |e| %>
I have some calendar information (scheduling, appointments, etc). Is there a (XML based) file
I have the calendar.ics file. I have to read that file from my application
I have a calendar application, and in that calendar application, there is a mini
I have this code: <body onLoad=subcatSelection();> The function is inside a .js file which
I have a SharePoint calendar event that can have any type of file as
I have the code for a javascript calendar and it works perfectly as it
i search alot for this but can't find an aswer... I have made a
This is my .java file in src: package com.wao.texttime; import java.util.Calendar; import android.app.Activity; import
I am trying to add this module . I have added the zip file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.