how to convert object into string in php

Possible Duplicate:PHP ToString() equivalent how to convert object into string in php Actually i am dealing with web service APIs.i want to use output of one API as a input for another API. when i am trying to do this i got error like this:Catchable fatal error: Object of class std could not be converted … Read more

header location not working in my php code

That is because you have an output: results in blank line output. header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP Combine all your PHP codes and make sure you don’t have any spaces at the beginning of the file. also … Read more

Creating a php search bar

I want to put a search box so that when you type in a persons name it selects that persons details from the database. This is my search box: Then here is my PHP to return the users: How to get it to just return the user that i type in the search bar instead … Read more

Convert a date format in PHP

Use strtotime() and date(): (See the strtotime and date documentation on the PHP site.) Note that this was a quick solution to the original question. For more extensive conversions, you should really be using the DateTime class to parse and format 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)