Jump to content

linux1880

Members
  • Posts

    136
  • Joined

  • Last visited

Posts posted by linux1880

  1. blank page appear with this mysqli code, pls help

    <?php
    			// Load in our navigation links from the MySQL database
    			require("abc/conn.php");
    			$sql = "SELECT * FROM nav";
    			$result = $conn->query($sql) or die(mysqli_error());
    			if($result){
    				while($row = $result->fetch_object()){
    					echo "<li><a href='{$row->url}' title='{$row->title}'>{$row->name}</a></li>";					
    				}
    			}
    
    		?>
    

  2. actually i just created script but everything below this script disappear in the live site. Please help

     

    
    <?php
    
    
    $dateTime = new DateTime("now", new DateTimeZone('Europe/Warsaw'));
    //echo "Warsaw" . $dateTime->format("G:i");
    
    $dateTimeZone = new DateTimeZone('GMT');
    $dateTime->setTimezone($dateTimeZone);
    echo "<br />";
    echo "UK " . $dateTime->format("G:i");
    
    echo " | ";
    
    $dateTimeZoneAu = new DateTimeZone('Australia/Sydney');
    $dateTime->setTimezone($dateTimeZoneAu);
    echo "AUS(SYD) " . $dateTime->format("G:i");
    ?>
    
    

  3. Hi friends i am trying to add some feature in one script, I see everywhere in the script like $data_set["something"] and $another_set["another_thing"] like that, how do i actually know where in the script has this array defined ? Or is that array referring to a table with all the fields ? Or can people define such array on the fly and assume variables as they want ? Please help. Thank you.

×
×
  • 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.