php

March 8, 2009

How do I connect to two MySQL databases at two different servers from a single php page?

mysql
mortal asked:


I need to extract data from 2 MySQL databases located at two different servers. How is it possible from one single PHP page?

Filed under Programming & Design by administrator

Permalink Print 3 Comments

January 31, 2009

How can I convert a MySQL timestamp into a format I want using PHP?

mysql
danny asked:


I have a colum in a MySQL database that uses datatype TIMESTAMP to save the date and time that a new row is inserted. This displays like 2008-09-21 09:31:25 when retrieved and echoed using PHP.

How can I use PHP to display the data like 21-Sep-08?

Filed under Programming & Design by administrator

Permalink Print 3 Comments

October 1, 2008

Using PHP How do you display data from mysql with a CSS style?

mysql
Howdy^_^ asked:


I am making a comment system. At the moment, the data is retrieved from mysql into a layer.

I would like to make it so that I can apply CSS styles to this retrieved data.

Any ideas?

Filed under Programming & Design by administrator

Permalink Print 1 Comment

September 26, 2008

Php Mysql

fannehh posted video:

php mysql

Filed under Tech by administrator

Permalink Print 23 Comments

September 18, 2008

How do I protect a MySQL statement from a malicious injection, but not write backslashes to my database?

mysql
nkbsbl asked:


I am using PHP and right now I am using the function mysql_escape_string on the strings I am writing. Unfortunately this puts a backslash into my database, which is ugly and I do not want to have to escape backslashes upon pulling data out.

Example: That’s is getting written as That\’s

Filed under Programming & Design by administrator

Permalink Print 2 Comments