Search found 5 matches

by earny
Wed Jul 22, 2009 11:35 pm
Forum: PHP - Code
Topic: One table database
Replies: 4
Views: 817

Re: One table database

thanks a bunch, i got it fixed. One more question. This is my first database site i am building. It is a simple one I am know in the process of adding dynamic meta tags and title. Here is what i have so far but it does not work. What mistakes am i making <head> <?php include('config.php'); $id = $_G...
by earny
Wed Jul 22, 2009 4:25 pm
Forum: PHP - Code
Topic: One table database
Replies: 4
Views: 817

One table database

I have a one table database with a title column. I am trying to make the titles appear dynamically with html link but i keep getting error in step 2: Could not locate the specified joke ID. I can clearly see the title in the mysql database and i am able to see all the contents of the table through a...
by earny
Tue Jul 21, 2009 5:28 pm
Forum: PHP - Code
Topic: ereg on date and time
Replies: 4
Views: 254

Re: ereg on date and time

thanks a million. i will follow up on this
by earny
Tue Jul 21, 2009 12:38 pm
Forum: PHP - Code
Topic: ereg on date and time
Replies: 4
Views: 254

Re: ereg on date and time

thank you. I had to add one more thing to it to make it work the way i wanted it to. Here is what it now looks like

. $row['post_date'] = date("Y/m/d",strtotime($row['post_date']))
by earny
Tue Jul 21, 2009 10:41 am
Forum: PHP - Code
Topic: ereg on date and time
Replies: 4
Views: 254

ereg on date and time

Hi I have a date and time in one column as for example 2008-04-16 10:41:20. I would like to do a ereg_replace so that the date and time will be converted only to date as 2008/04/16 I want to add the code to this echo '<p> <a href=" '/' . $row['post_date'] . '/' . $row['post_name'] . '/ ">'...