is there anyone skilled in php
anyone is skilled in php?
i want him to make a simple index.php file that makes the other plugin read from it the menus. |
Re: is there anyone skilled in php
Do you want to read <tr> inside <table> ?
|
Re: is there anyone skilled in php
Quote:
|
Re: is there anyone skilled in php
How is this related to plugins? If it's not then you'll want to search online for PHP info.
|
Re: is there anyone skilled in php
Quote:
|
Re: is there anyone skilled in php
so im using a plugin to store player played time in MySql server which is currently working,
the only problem i have is with the php files not being able to read the data from MySql server. here is MySql info: SQL_HOST = 127.0.0.1 SQL_PORT = 8080 SQL_USER = lmao SQL_PASS = husam123Hane SQL_DB = bym_cod the data of players time played are stored in mysql without any problem i just need the php to fetch there data and store them in a MOTD. here is the php files i am using(not working):- https://pastebin.com/2a0R2HV4 // btw sorry for being late in answers its because I am busy looking for universities to study in because I just finished high school. \\ |
Re: is there anyone skilled in php
FYI, you have an SQL Injection security vulnerability in your code. You need to use prepared queries.
While I commend you for posting your code, you should also have the list or errors that you get when you run your code. I noticed a couple things in your code after looking at it briefly. 1) You have a SQL Injection vulnerability and you should switch to prepared queries to resolve it. 2) You're hard coding your database connection info in the PDO constructor instead of using your $GLOBALS variable. This is how I do it: PHP Code:
Some other tips: get the actual query string and test it in your database using something like phpMyAdmin to make sure that it works. It looks like it should work but you should verify the actual string that gets passed (i.e. your $_GET parameter might not be what you're expecting). |
Re: is there anyone skilled in php
Quote:
|
Re: is there anyone skilled in php
I would recommend using something like phpMyAdmin to build a query for you and then you can replace the search criteria with your variable (hopefully via prepared queries).
|
Re: is there anyone skilled in php
Quote:
|
All times are GMT -4. The time now is 22:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.