- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
21 Posted Topics
Re: What you need to do is create an OnClickListener for your button. Inside the onClick() method, you need to create an "Intent" to invoke the desired activity ("screen" in your post). One example for starting an activity: http://stackoverflow.com/questions/4186021/how-to-start-new-activity-on-button-click If you post your code I can provide more concrete help. | |
Re: Instead of android:name="Dungeon_Dice_Roller" try this: android:name=".Dungeon_Dice_Roller" The dot (.) is important as it denotes the class name which will be appended to the package name by the compiler. | |
Re: In your PageKindCheck() function you actually return when you find a checked checkbox. That is why only one div displays: [code] if (theForm.elements["PageKind"][i].checked) { PageKind = theForm.elements["PageKind"][i].value; return PageKind //alert(PageKind) break; } [/code] What you could do is populate an array with all the checked page kinds, then return that … | |
Re: Another consideration is that you are matching the entire line, so it compares $name against the entire line you are processing in each iteration instead of doing a pattern match. For just matching $name somewhere in $line you should use preg_match(). | |
Re: Hi, Could you please show us the relevant code? Without that, it is impossible to answer your question, as you could be referring to any of an unlimited number of scenarios... Cheers | |
Re: Hi, The only way I can think of to do this would be to add a rewrite rule in your .htaccess file: [code] RewriteEngine On RewriteRule ^/path/yourfile.xml$ /path/yourfile.php [/code] This will basically execute the php file in the background while the user only sees the .xml extension. | |
Re: You are contributing the following post: This section in the code does it: [code=php] foreach($_POST as $key=>$value) { $message .= $key.": ".$value."\n\r"; } [/code] It puts the name and value of each of your form fields in $message, which is then sent as an email. I don't know why above … | |
Re: Hi, You need to make sure you know where your DocumentRoot is. That is where your PHP scripts go. Then you also need to know which URL will actually reach it (usually something like [url]http://localhost/yourscript.php[/url]). Maybe this will help: [url]http://www.tagbytag.org/tutorials/getting-started/web-design-software/wamp-guide[/url] Good luck! | |
Re: If you are talking about a numerical autoincrement field, the easiest is to use this query: select max(insertid) from tablename; You need to substitute the actual column and table name. Then you add 1 to the result and you have your next insert ID. As the above poster pointed out, … | |
Re: Can you provide an example of the expected operation? Does the table contain numerical values? You need to provide more details in order for someone to be able to help... ![]() | |
Re: One question: why are you using uppercase letters (<SCRIPT...>) instead of lowercase, which is required by your doctype of choice, XHTML. I don't know if that causes Firefox not to load it, but it should be changed anyway in order to be compliant with the standard. Several posters above put … | |
Re: It seems that you have a typo in your query in line 19, unless your "course_code" column in the "courses" table is correctly spelled as "course_coode" with an extra o. Also in line 96 you have this: WHEREcourse_code=$coursecode There should be a space between "WHERE" and "course". | |
Re: Did you include logic on your myaccount page (and all the other pages on your site) to redirect to the login page if no active session is detected? If not, I think that would be a way to solve your problem. | |
Re: You can reference files outside the DocumentRoot in your PHP scripts. You can use either relative or absolute path names, since PHP can "see" the whole file system. | |
Re: Have you tried escaping the single quotes like this? $sql = mysql_query("SELECT * FROM {$table} WHERE Suburb='$suburb'"); The problem with the single quotes is that PHP interprets anything in single quotes as literal. Hope this helps | |
Re: I agree with ardav. Pulling predictable static numerical data from a server does not make sense. Javascript can generate that. If, on the other hand, you need to retrieve some data from a database (or a file on the server) in order to fill in the secondary combobox, AJAX makes … ![]() | |
Re: No, you don't have to create a new folder for every page. However, in order for php code to be executed, you not only need to make sure to use the <?php opening and ?> closing tags, but also make sure that the directory is in fact configured as a … | |
Re: Your closing bracket (the last '}' ) does not have a corresponding opening bracket. That is why this is not valid PHP syntax. It may help to indent your code so you can spot things like this more easily :-) | |
Re: If you press the power button for at least 5 seconds the machine will power off (same effect as unplugging the power). If your system has somehow been corrupted, however, you may not be able to boot it again. In that case I would recommend taking a backup of all … | |
Re: When I tried it on my server, it worked. Are you sure that the machine you are doing this on is able to access alertbox.in ? The error seems to point to the computer not being able to reach that address. |
The End.