8,966 Posted Topics
| |
Re: `date('N')` returns `1..7`. Your array defines `0..6`. You can use `date('w')` to match that. Read about it in [the manual](http://php.net/manual/en/function.date.php). | |
Re: If product code is a string, you may need single quotes around your variable, just like you did in the insert query. | |
Re: A finished sitemap is usually in your website's root folder. You can create it by hand, use a website or desktop tool, or create a script yourself. | |
Re: Not sure if this is the case, but in other languages you need to reset the position of myMS to zero before using it. | |
Re: > Is it possible to disable right click Yes. Easily found with a search engine. > disable save as option of browser's file menu No. Even if you decide to disable the right click menu, it will only annoy your users. There are a lot of other ways they can … | |
Re: What is the reason for hiding the URL? | |
Re: The code you mentioned is built with Flash. It is quite possible to build something like this in Javascript though. You'll need to read up on Javascript/AJAX at least. | |
Re: `session_start()` needs to be at the top of your script, before anything is outputted. | |
Re: try: include '../config.php'; | |
Re: Without an URL to your page it's impossible to tell. | |
Re: No, your $_POST is correct. The notice is given when the specified variable is not set. If you want to remove the notice you should use something like this: if(isset($_POST['save'])) | |
Re: Correct, it doesn't work out-of-the-box on most hosts, but it does work if you add the correct handler to the htaccess file (as specified by bloclue). ![]() | |
Re: > But it is not working Explain what's not working. Show error messages if you have them. My guess is that `Subscribed_to_Business_XL` as alias won't work. | |
Re: What project is that? Provide some more (background) information. If you have a problem, provide that part of your code. | |
Re: The difference between your code and the one on php.net is that that one uses an absolute file path. | |
Re: The second demo in the HighCharts demo gallery shows the flow you need. | |
![]() | |
Re: Unexpected end is usually caused by missing braces, but from a quick glance I see you are NOT terminating all your lines with a semi-colon. Fix that too. | |
Re: You are inserting a text node. DOMDocument has a specific function to create a CDATA section: http://php.net/manual/en/domdocument.createcdatasection.php | |
Re: On focus of what ? A radiobutton could be problematic, try change on that one instead. ![]() | |
Re: Something like this? // loop through all posts foreach ($posts as $post) { // get the comments for this post $id = (int)$post['id']; $comments = get_comments($id); // output the post information here echo "<h1>" .$post['title'] ." id:" .$post['id'] ."</h1>"; echo $post['body'] ."<br/>"; echo " <small>Asked at " .$post['date_published'] ."</small>"; echo … | |
Re: if (file_exists("upload/$new_file_name")) unlink("upload/$new_file_name"); | |
Re: Administrator's Guide: Information on installing, setting up, creating users. Developer's Guide: How does the program work, what features, what to do when you need to add a new feature. | |
Re: https://code.google.com/p/jquery-rotate/ | |
Re: If you search this forum for "phpmailer" then you'll get lots of threads with examples. | |
Re: If you really need all those, why not use a class for the customer data. Then you can use a single parameter, and the class can handle additional checks if needed (checking required fields before saving). | |
Re: `die()` stops the script, so if any HTML you need is somewhere after that line, it will never be outputted. | |
Re: Can you isolate the problem with a small piece of code? | |
Re: What is the problem you are having? | |
Re: If you indent your code: <?php if($this->countModules('user6')) : ?> <table class="nopad user6user7"> <tr valign="top"> <?php if($this->countModules('user6')) : ?> <td> <jdoc:include type="modules" name="user6" style="xhtml" ></jdoc:include> </td> <?php endif; ?> <?php if ($this->countModules('user6') and $this->countModules('user7')) : ?> <td class="greyline"> </td> <?php endif; ?> <?php if ($this->countModules('user7')) : ?> <td> <td> <jdoc:include type="modules" … | |
Re: If the new table matches the output of the query, you can just use `INSERT INTO newtable SELECT ...` | |
Re: Does MUMPS have a forum/documentation/FAQ? If they have a client library you can use then it should be possible. | |
Re: What are you looking for, form validation? Please explain in more detail. | |
Re: What kind of restrictions do you mean? | |
Re: AFAIK `onChange` isn't triggered properly because the checkbox does not have input focus. You may want to try `onClick` instead. | |
Re: Can you provide more information? This is a little vague. | |
Re: See [this](http://css-tricks.com/the-css-box-model/) for an explanation of the box model. As you can see, you also need to include margin and padding into your calculation. | |
Re: You'll probably get answers if you can be a little more specific on what you want to build. | |
Re: The documentation only shows `minDate`. There appears to be no `maxDate` yet. | |
Re: `/volunteers` does not exist. `Volunteers.html` does. So what is the actual issue? | |
Re: Can you paste what is outputted to the browser? | |
![]() | Re: `echo` just display what you type into it. If you want to execute the page, use `include`: case 1: include 'page1.php'; break; ![]() |
The End.