Type: Posts; User:
You can link to a html page as easily as a php page. The problem is what the server loads by default.
www.mywebsite.com/index.php will load the php index page,
Ok got it working
SELECT Items, COUNT(Items) FROM `mytable` WHERE Col1 LIKE '1%' GROUP BY Items
Trying to issue a MySQL query that will retrieve a list of items and the number of each item
There are more columns than shown, but each Item will have entries in multiple rows.
I think you can edit the icons you want to show in the menu in the .cfg or .ini file for ckeditor
I had a web site that did it like this www.mywebsite.com/20121209355/title-of-my-page
The numeric part was the publish date in the form of yyyymmdd appended with the article number nnn, and the...
Dates are stored in the format yyyy-mm-dd in MySQL but can be displayed as in many ways using date_format.
SELECT DATE_FORMAT(date, %M %e, %Y) AS mydate FROM mytable
I recently installed Skype on my Windows 7 system. I also periodically run WAMP Server.
Started WAMP over the weekend, but nothing would show up in //localhost or any sub folder. When I ran...
echo $dbusername . "<br>";
You could use $headers .= 'Cc: Me <firstname.lastname@example.org>' . "\r\n";
Of course you need to use an actual email address.
Does the mail go out but not to the sender? Or does mail not go out at all?
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Me <email@example.com>' . "\r\n";
$headers .= 'Cc: firstname.lastname@example.org' . "\r\n";
You might try running the query in phpMyadmin to make sure the query returns the right data. Is the conn.php connecting ok?
It is not a good practice to store the password in a readable format. ...
You want it to say;
If you have more than one row of results what do you want to do?
You might consider installing XAMPP or WAMP on your system. They provide support for apache web server, mysql, and php. Both are free. You can still use your MS program to make pages with.
<input type="checkbox" /> This is some text on the same line.<br>
I think you have two ways to go; a relative path from the directory the php file is to the image file, or a full path to the image file such as
The code must also be the first thing on the page, above <html><header>... etc.
I agree with rtrethewey that config.php needs ending ?>
You might try it with the config.php merged into the...
You can do those things with .htaccess and php code in the page. The "directory" is really a variable for the image title, and the number of course is the image number. .htaccess can parse the long...
In my home brew CMS I order the articles by sticky, priority, and articleID. Sticky stay at the top until unstickied, and priority higher than one will move them to the bottom of the stack which is...
The totaling can all be done in your MySQL query.
Not sure about all of your directives in .htaccess.
But you might add:
DirectoryIndex index.php index.html
PHP is essentially web based, but that can mean several things. I first learned to use PHP because I had need for a database application. It ran locally on my computer. I just considered the browser...
shouldn't it be
$arts_id = $_GET['id'];
since it is ?id=99 in the url.
You could create the file, and then edit out the line breaks where not wanted, or eliminate the line breaks in excel.. Each line in a csv is terminated with a line break.
$p = $_GET['p'];
echo "<div>Sample text</div>";