Search:
Type: Posts; User: badben
Search :
Search took 0.01 seconds.
Just a quick note but i'm not sure if this works for leap years etc but it should do. I've not tested it yet though.
This should work
<?php
$calStartDate = "2012-03-01";
$calEndDate = "2012-03-31";
$tasks = array(
I take it that you want to display an html calendar showing dates between say x and y.
I take it that you have therefore got a list of tasks from a database that either start or end between the x...
The answer to this question is the most sought after piece of knowledge on the Internet. The answer is with hard work and as BrianJames says put content on your site that is informative, original,...
This is to a certain extend dependent on the demographics of your site vistors but there are some stats available here:
gs.statcounter.com
marketshare.hitslink.com
stats.wikimedia.org
The following should work and will allow you to add files to an existing zip archive according to the documentation. I have not tried it though. See www.php.net/manual/en/ziparchive.addfile.php
...
if your results are in an array for example:
$results = array(
array('heading', '#', '#'),
array('test result 1', 1, 3),
array('another result 2', 2, 3)
);
Try using the following plugin for wordpress which is great for redirecting pages:
http://urbangiraffe.com/plugins/redirection/
I suppose this depends on what format you are outputting to (i.e txt, rtf, html) and what you are outputting from (ie array etc)?
It depends entirely on what features you require for your store.
In my experience Magento has many features but is slow and takes forever to set up. I would suggest a vp or dedicated server to...
Your WHERE statement should be before the ORDER By so try:
$sql = mysql_query("SELECT * FROM mytable ".$where." ORDER BY id DESC ". $limit);
try changing your code to:
$whereClauses = array();
if (! empty($_POST['Locations'])) $whereClauses[] ="Locations='".mysql_real_escape_string($_POST['Locations'])."'";
if (!...
simply place the code in your <div> tag. The <?php and ?> specify the php code.
I would suggest looking into jquery if you want to avoid flash.
I agree that xml is probably a better way of doing things.
If you use an xml format like in a file called readings.xml:
<?xml version="1.0"?>
<Readings>
<Reading date="2012/03/17"...
$xmlDoc = new DOMDocument();
$xmlDoc->load( 'cdocument-2012-03-05.xml' );
$thisnodeone = $xmlDoc->getElementsByTagName('ConferenceData');
foreach ($thisnodeone as $node ) {
///// ...
try:
echo ini_get('upload_max_filesize');
to see what the actual max filesize is. If you are on a shared hosting package sometimes they will either not allow you to change this value or will...
This is a little bit difficult to answer without knowing what some of the values are for $header etc.
As stated in the php manual for the mail function "Returns TRUE if the mail was successfully...
I personally would get the file extension using php's native function like this:
$file_info = pathinfo($file_name);
$file_ext = $file_info['extension'];
Assuming that your xml file now looks like:
<?xml version="1.0"?>
<conferences>
<ConferenceData>
<Event value="myevent" />
<Scheduling-Data>
<Conference>
What exactly do you want to do with the daily readings?
Do you want to display them in a html table, import them to a database, upload the .txt file to your website.
Please provide a little...
try
$xmlDoc = new DOMDocument();
$xmlDoc->load( 'cdocument-2012-03-05.xml' );
$thisnodeone = $xmlDoc->getElementsByTagName('ConferenceData');
foreach ($thisnodeone as $node ) {
/////...
I would give them an example of a badly designed/insecure script or simple application and ask them to suggest improvements for the code.
This tells you how good they are at reading code, how well...
when uploading a file you should check not only the extension but also that is the correct mime type also and that the filesize is not too large.
I would also use the native php functions for...