עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

עזרה php

Featured Replies

פורסם

בס"ד

 

היי אני בונה פרויקט קטן ב PHP JQUERY ו MYSQL 

בדף לוגין כאשר אני מבצע היתחברות אני מקבל את השגיאה :

......Fatal error: Uncaught Error: Call to a member function query() on null

ההתחברות מתבצעת שאחרי שאני לוחץ SUBMIT הוא שולח בקשת POST לקלאס לוגין ואז שם יש פונקציית לוגין.

את אותה שגיאה הוא שולח לי גם כאשר אני פונה לפונקציית לוגאוט.

כאשר אני מריץ את השאילתה מחוץ לקלאס זה עובד בלי בעיות.

‏‏צילום מסך (2).png

‏‏צילום מסך (3).png

פורסם

קודם כל, לקרוא קוד מסקרין שוט זה אחד הדברים הכי לא נוחים שאפשר לעשות. תשתמש ב-Gist כדי להעתיק לשם את הקוד ושים פה קישור.

 

דבר שני, אני לא רואה בקוד שפירסמת שאתה קורא לפונקציה query, או בכלל מאתחל את ה-DB קלאס. תצרף גם את החלק הזה בבקשה.

פורסם

המשתנה _query לא מאותחל.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.