Jump to content

ameisez

Members
  • Content Count

    34
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ameisez

  • Rank
    Newbie
  1. Hi, I have a simple table with 6 column (mysql) I want to be able to update it via web form by means of uploading the csv file. Any one who can guide me what are the steps to take. My knowledge is php is very basic but I can follow instructions. Thanks
  2. Hi, Thanks a lot for your reply. Seems like this is all I need. I will check it out tonight. Thanks again.
  3. I got this code to edit/save a specific text file online. <?phpif($_POST['Submit']){$open = fopen("b1.txt","w+");$text = $_POST['update'];fwrite($open, $text);fclose($open);echo "File updated.<br />";echo "File:<br />";$file = file("b1.txt");foreach($file as $text) {echo $text."<br />";}}else{$file = file("b1.txt");echo "<form action=\"".$PHP_SELF."\" method=\"post\">";echo "<textarea Name=\"update\" cols=\"50\" rows=\"10\">";foreach($file as $text) {echo $text;}echo "</textarea>";echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n&
  4. Hi all, I haven't been here for a while and I was surprise with the new look of the forum. Just wondering what made you (the team) to decide moving from vbulletin to ipboard? And why not phpbb? Thanks.
  5. Hi, How can I make a 2 column div areas that are both centered. I looked at the CSS3 column feature but it looks like the browser automatically center the contents. I want to be able to place content and style each column independently except that both column should display everything centered, the rest is independent. My content is like. <div> Column 1 box 1</div><div> Column 2 box 2</div><div> Column 1 box 3</div><div> Column 2 box 4</div><div> Column 1 box 5</div><div> Column 2 box 6</div><div> Column 1 box 7<
  6. That is why the idea is to check on a specific timezone not on the clients time.
  7. I have video page that I wanted to shift when we have live event. Normally there is video loop playing 24/7 on the same page. What I wanted to do is to automatically embed the live video on cetain schedule.So when i visit the page and there is live event, it will be embeded on the page. Otherwise the normal video will be embeded.thanks
  8. can you provide a sample code?I mean, the "now" i typed is not a variable. That is what I am trying to say. is there now() function in JS?
  9. Hi ShadowMage,I checked the link you gave me and this is what I came up with...Start = Thursday 12:30am = ((getday() = 6) && (getHours() = 0) && (getMinutes() = 30) )End = Thursday 2:30am = ((getday() = 6) && (getHours() = 2) && (getMinutes() = 30) )My problems now are...1. how can I check it with Indian timezone regardless of where the page is being visited?2. how can I put in the the construct of...If (now > start && now < end) meaning If now is between start and end
  10. @ thescientistI don't need to display the dates. I only need this to load different codes based on schedules.Basically this date I mentioned is one of the schedule and I want to start off from that if I can see how it is coded.@ShadowMageI will check on that.Thanks to both of you.
  11. Hi,I don't know how date is computed in javascript.. can someone please convert my this....If (now is between thursday, 12:30AM, India time zone and thursday, 2:30AM, India time zone )do thiselsedo thisto javascript commands.Actually i need it in javascript and php. If it's possible to have it both here it will be great, otherwise here's the PHP postthanks
  12. Hi,I don't know how date is computed in php.. can someone please convert my this....If (now is between thursday, 12:30AM, India time zone and thursday, 2:30AM, India time zone )do thiselsedo thisin php commandsActually i need it in javascript and php. If it,s possible to have it both here it will be great, otherwise I will post anther topic in JS sectionEDIT: here is the JS postthanks
  13. Hi,Thanks all for your help.I think I got it. It turns out that the script I am using has it's own authentication method but not applied to all pages. I just replicate the authentication code to all the pages and it works.Your answers head me to the right direction.Thanks
  14. Didn't work.This is the exact code I put on top of the header.html file. <?phpif( ($_SERVER["SCRIPT_NAME"] != "signup.php") && (!$_SESSION['authed']) ){ header("location:signup.php"); };?> the site becomes blang page.
×
×
  • Create New...