8,966 Posted Topics

Member Avatar for BenzZz
Member Avatar for johndohmen1963

`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).

Member Avatar for johndohmen1963
0
159
Member Avatar for samvilla
Member Avatar for mionazraelmiranda

If product code is a string, you may need single quotes around your variable, just like you did in the insert query.

Member Avatar for mionazraelmiranda
0
180
Member Avatar for parul853

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.

Member Avatar for JorgeM
-1
119
Member Avatar for vistamizer101

Not sure if this is the case, but in other languages you need to reset the position of myMS to zero before using it.

Member Avatar for TnTinMN
0
381
Member Avatar for daniel36

> 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 …

Member Avatar for daniel36
0
333
Member Avatar for daniel36
Member Avatar for henryhawjjins

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.

Member Avatar for pritaeas
0
99
Member Avatar for pranay1995

`session_start()` needs to be at the top of your script, before anything is outputted.

Member Avatar for pranay1995
0
248
Member Avatar for scorpionz
Member Avatar for Albert Pinto
Member Avatar for lifeworks

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']))

Member Avatar for eelias75
0
345
Member Avatar for priya667

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).

Member Avatar for diafol
0
2K
Member Avatar for daniel36
Member Avatar for niladri.prima

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

Member Avatar for BitBlt
0
112
Member Avatar for cutiexhubx_1

What project is that? Provide some more (background) information. If you have a problem, provide that part of your code.

Member Avatar for pritaeas
0
59
Member Avatar for divyakrishnan

The difference between your code and the one on php.net is that that one uses an absolute file path.

Member Avatar for ainosilva
0
1K
Member Avatar for rotten69
Member Avatar for rotten69
2
417
Member Avatar for andyy121
Member Avatar for Xantipius
Member Avatar for Majestics
Member Avatar for prajwalk73

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.

Member Avatar for prajwalk73
0
243
Member Avatar for shinsaki
Member Avatar for Venom Rush

You are inserting a text node. DOMDocument has a specific function to create a CDATA section: http://php.net/manual/en/domdocument.createcdatasection.php

Member Avatar for Venom Rush
0
977
Member Avatar for VenusCrystal
Member Avatar for stbuchok
0
138
Member Avatar for rotten69

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 …

Member Avatar for rotten69
0
355
Member Avatar for gilgil2

if (file_exists("upload/$new_file_name")) unlink("upload/$new_file_name");

Member Avatar for gilgil2
0
181
Member Avatar for pattmorter
Member Avatar for akosiartas_1

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.

Member Avatar for pritaeas
0
57
Member Avatar for vijayram
Member Avatar for jamojo
Member Avatar for rajilakshmi
Member Avatar for pritaeas
0
152
Member Avatar for Dendei

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).

Member Avatar for Dendei
0
247
Member Avatar for kny_jay88

`die()` stops the script, so if any HTML you need is somewhere after that line, it will never be outputted.

Member Avatar for kny_jay88
0
376
Member Avatar for junehrndez
Member Avatar for tapuwa2002
Member Avatar for scales

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" …

Member Avatar for scales
0
466
Member Avatar for niladri.prima

If the new table matches the output of the query, you can just use `INSERT INTO newtable SELECT ...`

Member Avatar for BitBlt
0
153
Member Avatar for dstoltz

Does MUMPS have a forum/documentation/FAQ? If they have a client library you can use then it should be possible.

Member Avatar for dstoltz
0
111
Member Avatar for kny_jay88
Member Avatar for kny_jay88
0
231
Member Avatar for kishoresai438
Member Avatar for Violet_82

AFAIK `onChange` isn't triggered properly because the checkbox does not have input focus. You may want to try `onClick` instead.

Member Avatar for Violet_82
0
3K
Member Avatar for riahc3
Member Avatar for Irina54
0
163
Member Avatar for xescjp

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.

Member Avatar for xescjp
0
175
Member Avatar for Huruf Timbul

You'll probably get answers if you can be a little more specific on what you want to build.

Member Avatar for pritaeas
0
205
Member Avatar for raj-uk

The documentation only shows `minDate`. There appears to be no `maxDate` yet.

Member Avatar for pritaeas
0
65
Member Avatar for LondonBill

`/volunteers` does not exist. `Volunteers.html` does. So what is the actual issue?

Member Avatar for pritaeas
0
33
Member Avatar for oded.taizi
Member Avatar for LastMitch

`echo` just display what you type into it. If you want to execute the page, use `include`: case 1: include 'page1.php'; break;

Member Avatar for LastMitch
3
114

The End.