My code does not work in certain versions of IE and I want to include a conditional comment that includes a different navigation file so that links to pure html5 content wont be there. is there a way to remove the include of the menu.php and then i can just include the IE menu.php? I know how to do the conditional comment, and include, just looking for a way to do a remove file.

Member Avatar
Member Avatar
+0 forum 2

Hi all. As a hobby I've been working on making a website with PHP and MySQL, both of which I am new to. I'm having some trouble with the comments system as I can't seem to be able to insert a date into the database. After the "insert", when I check it, no date has been entered and the date defaults to 01 Jan 1970. [code=php] $arr['postDate'] = date('j F Y', date()); mysql_query(" INSERT INTO comments(author,subject,email,comment,article_id,postDate) VALUES ( '".$arr['author']."', '".$arr['subject']."', '".$arr['email']."', '".$arr['comment']."', '".$arr['article_id']."', '".$arr['postDate']."' )"); [/code] The column where the date is to be inserted is of type date. I …

Member Avatar
Member Avatar
+0 forum 1

Hi, I tried a auto-comment bot for wordpress(in my website) and coded it. My plan is that I write names in names.txt file and sample comments in comments.txt file(a name or comment per line) and it will add a random comment with a random name into Wordpress's database in wp_comments table. I also planned to increase comment_count value in wp_posts table, however my code is not working. Here is the code: [CODE]<?php include "wp-config.php"; $asama1=@mysql_connect(DB_HOST,DB_USER,DB_PASSWORD) or die("<h1>Something was wrong.</h1>"); $asama2=@mysql_select_db(DB_NAME,$asama1) or die("<h1>Database could not be found.</h1>"); $isim=file(names.txt); $yorum=file(comments.txt); $id="1"; $idarray=explode(",",$id); $kactaneidvar=count($idarray); $kactaneidvar--; $rastgeleidal=rand(0,$kactaneidvar); $id=$idarray[$rastgeleidal]; $x=$_GET["kactane"]; $kactane=(integer) $x; $sayilari=count($isim); $sayilari2=count($yorum); $sayilari--; …

Member Avatar
Member Avatar
+1 forum 3

Hi all, I'm new and I currently am developing a website on fishing fred's fishing. The site is an experiment for a portfolio ect. There is a feature, the guestbook. The Guestbook is managed by a MySQL database and the PHP is responsible for creating and echoing the data. I would like it if i could remove a comment by having a cookie and clicking an image to remove a comment much like a delete button. The code below shows what I have written: [code=php] //Connecting to the database $connect = mysql_connect("localhost","***","***")or die("Error Connecting."); mysql_select_db("150742")or die("Error Selecting.");//selecting the data //query …

Member Avatar
Member Avatar
+0 forum 4

I would like to ask is it beneficial having a lot of comments from the same website with a great ranking in alexa(400,00) but different IP address and different email address?

Member Avatar
Member Avatar
+0 forum 3

The End.