Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have problem about PHP and MySQL. I write information to MySQL database, but "ü,ö,ğ,ç,ş," letters change to çşöğüıə.
Looks like an encoding problem.
Try utf8_encode() function.
You may wanna refer to this: utf8_encode() manual
Hope this helps.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I use MYSQL, PHP 7.2 and MVC architecture but sometimes after inserting data into invoice_table table, invoice_table shown as an empty table, after couple minutes data will come back again.
My Problem is solved by RESTARTING MySql service and thanks to #ADyson and #Your_Common_Sense for Helping me :|.
real Thanks to #Undry.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Can some of you tell me please why when I echo "<?", the <? is not displayed?
I'm sorry, maybe it's very stupid question, but I need to dig this language more deeper.
If you view the source it will be there. Its because the browser thinks its a tag.
Fix it by using htmlentities().
echo htmlentities("<?");
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I was trying to build a script that could get me definitions of words from the wikipedia API in php.
I tried several obtaining the definitions in an array and displaying the first definition but it didn't work. Can anyone please help me out. Any help is appreciated
Which parameters did you use in your request?
You can take this as an example:
https://en.wikipedia.org/w/api.php?action=opensearch&search=PHP&limit=1&format=json
You said there that you want only the first definition, so you can put limit=1. The response is in json.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Here is my example code
It actually works on server but I wonder why do I get this warning?
Thanks
You can't use float number as array index.
To change floats to integer use function like intval
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Laravel
What mistake am I actually doing?
Please have a look at the image below:
http://1drv.ms/1ybX4Cg
I think
$body['user_id'] = $user()->id;
should be
$body['user_id'] = $user->id;