I wrote a Python script which writes its output into a txt file. Then I included that file in my html/php website. – works good so far. Only remaining problem: I can’t execute the .py file automatically while opening the site. I know that this isn’t the best solution <?PHP exec(“python3 Auswertung.py”); ?> doesn’t seem to work Answer I used
Tag: web
Can someone clarify what is happening in this part of the code?
So I have part of code like this I have database where I have table-categories and table-items categories table and items look like this: What I don’t understand is what happens with categories and inventory in this part of code -> Do they get joined? Also in this part what item means here, there is no column named item in
Why does a database query in python not return an integer value?
Why does this work: cash = db.execute(“SELECT cash FROM users WHERE id = :user_id”, user_id = session[“user_id”]) # Ensure user can afford the stock if cash[0][“cash”] < share * quote["price"]…