Jump to content

ponsho

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

About ponsho

  • Birthday 12/28/1982

Contact Methods

  • Website URL
    http://www.ima-studio.com

Profile Information

  • Gender
    Not Telling

ponsho's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i also noticed that you missed the comma between the NULL and the ip_adress $sql="INSERT INTO 'users' ('id', 'ip_address', 'name') VALUES (NULL,'$ip_address', '$_POST[\"name\"]')";
  2. I dont know if this topic belongs here, let me explain my doubt, i made a website content administrator, so when you update any data it also create a xml document with the info of the web section you just updated, cause i use it a lot of times with flash, so i was wondering whats the best, to retrieve the data directly with mysql or use those xml files for the normal content.
  3. Maybe the problem is when you use the $docroot cause your output string get like this '//master/config/functions/security.inc.php'. Im not sure just a suggestion
  4. Maybe you can use this [code] if(!is_numeric($value)){ ?><span class="notplayed">&nbsp;</span><? } else { if($scorehome == $scoreaway) { ?><span class="draw">Draw</span><? } else { if($home == York) { if($scorehome > $scoreaway) { $home?> <span class="win">Won</span> <? } else { $away?> <span class="loss">Loss</span> <? } } else { if($away == York) { if($scorehome < $scoreaway) { $home?> <span class="win">Won</span> <? } else { $away?> <span class="loss">Loss</span> <? } } } } } [/code]
  5. Maybe the problem is that when you press back you are trying to go to the page where you have just login so you are creating the session again.
  6. That problem regulary appears when you call a class function before calling the class. Just add this line [code] $result = new ADORecordSet_empty; [/code] before this [code] if($result->RecordCount() == 0){       echo "<meta HTTP-EQUIV='REFRESH' content='0; url=error.php?phrase=".$abbr."'>";       exit;   } else{       echo "<table border='1' bordercolor='#000000'>               <tr>"; [/code]
  7. Just get the table rows into an array. [code] $sql    = "SELECT images_column FROM your_table"; $result = mysql_query($sql); while($data = mysql_fetch_array($result)) $images_arr[] = $data["images_column"]; shuffle($images_arr); [/code]
  8. Just use the shuffle function. [code] $array = Array("image1.jpg","image2.jpg","image3.jpg","image4.jpg","image5.jpg"); shuffle($array); [/code]
  9. I totally agree with roopurt18, i would use the first option if i couldnt use mysql, maybe with an index file or something like that
  10. Try this [code] <?php $path = "./images";       if (is_dir("$path") )       {           $handle=opendir($path);           while (false!==($file = readdir($handle))) {               if ($file != "." && $file != "..") {                   $Diff = (time() - filectime("$path/$file"))/(3600*24);                   if ($Diff < 7)                   echo "$file was last modified: " . date ("F d Y H:i:s.", filectime("$path/$file"))."<br>";               }           }           closedir($handle);       } ?> [/code]
  11. list($year,$month,$day) = explode("-",$date); list($hour,$min,$sec)  = explode(":",$time); $time  = mktime(date("h"),date("i"),date("s"),date("m"),date("d"),date("Y")); $time2  = mktime($hour,$min,$sec,$month,$day,$year); $total  = round(($time-$time2)/3600,2);
  12. Try replacing $REMOTE_ADDR with $visitor_ipaddress
  13. That's weird, check whats into $_SERVER array and post it here. [code] print_r($_SERVER); [/code]
  14. maybe if you call the variable as $_SERVER['REMOTE_ADDR'] works
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.