8,966 Posted Topics
Re: You may get deprecated warnings, which are not a problem yet, but may be in the future. Do you have PHP running locally on your computer? Tools like xampp and wampserver allow you to use the newer php version easily (as your tool is no longer maintained according to the … | |
Re: There's no need, check the [DAYNAME](http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_dayname) function. | |
Re: > 1) Will they logout or will they just close the browser? They will close the browser, but you can still trap that with Javascript. | |
Re: You'll need to do a self join. Can you give an sql dump of the structure and data? Basically it's: select all jake's answers and join them with all betty's answers. | |
Re: > Sensible way to check for errors in MySQLi Perhaps [this](http://www.daniweb.com/web-development/php/code/434480/using-phpmysqli-with-error-checking) may help. | |
Re: Try searching GitHub for exchange. This one is written in ASP.NET so it might not be what you want (since you posted this in PHP). | |
Re: > simple example code to do it. Simple example to do what exactly? | |
Re: You can use `NOW()` in your MySQL query which will store the current date and time. | |
Re: > I can't use header('Location: a-place.php'); because headers have already been called This should be the way. Perhaps you have a header, but no exit. You can also store the redirect in a variable while checking, and redirect at the end of the checks. Perhaps you should show some code. | |
Re: Basically, you can store all the rows in a single array variable and use the magic method `__get` to get the individual values. Have a look [here](http://www.php.net/manual/en/language.oop5.overloading.php#object.get). | |
Re: There are a lot of projects on GitHub and SourceForge. Get comfortable with those sites, choose a project, download, see if it is your level. If it is try to make changes. Once you're comfortable push new commits. | |
Re: Show what's in `connect.php`. Appears the query in `config.php` is failing too. BTW, I recommend to use `<?php` instead of `<?` If you'd added [error handling](http://www.daniweb.com/web-development/php/code/434415/using-phpmysql-with-error-checking) to your query, you would have seen this much earlier. ![]() | |
Re: If you are not getting the merge2, the problem must be in the PHP script. You can either debug that, or use the `done` and `fail` events available from jQuery 1.5+, as described [here](http://api.jquery.com/jQuery.post/). Is there a reason you are using a reference in line 1 of the script, it … | |
Re: `$value` is undefined. You need to assign it a value before you can evaluate it. | |
Re: <input type="checkbox" disabled="disabled" checked="checked"> `readonly` is indeed not supported. So if you need it to POST, include a hidden tag as well. | |
Re: If you create a single query which joins both tables, and order the results in the right way, you can suffice with a single foreach. | |
Re: Instead of `index++` use the `Math.random()` function. But you should try to avoid the same number being chosen again. | |
Re: Yes, it should be no problem. In your case the domain you're on should specify the view to use, and some database specifics perhaps. As you said, the controller and model is the same for all, it's just the layout that differs. | |
Re: > if I get id=1 then when next button is pressed it adds 1 to id and then over write the page ? No. That's not how it works. You will have to process these values yourself. Store the last use id, and check whether you want to increment or … | |
Re: http://msdn.microsoft.com/en-us/library/system.globalization.regioninfo.displayname.aspx See the **Remarks** section. The DisplayName is taken from your installed version of .NET, so even if you change the culture, your installed version probably does not have the correct resources installed. | |
Re: You don't have any downvotes. You got an **upvote** from me because you shared what solved your issue and marked the thread as solved. The "Flag Bad Post" link next to it is to notify moderators, and is not related to that number. | |
Attached is the code for my RSS dashboard, using the DaniWeb API. It's an improved version of the mashup I posted earlier, using jQuery to get all feeds asynchronously. The part which initially loads the forums is shown below. It creates an API object, and a Parser object. The first … | |
Re: I have the feeling that the success method (where it shows the data) is the success of a javascript form validation plugin. To send it, you'll have to submit the form, either directly to your getdata script, or use jQuery's ajax method to do so. | |
Re: Be sure to close your div correctly. Line 14 only executes if the row count is a multiple of 3. [Here](http://www.daniweb.com/web-development/php/code/425686/create-a-table-x-columns-wide) is my version (using tables). | |
Re: If you just want the time, why not use a regex match on `\d{2}:\d{2}:\d{2}` | |
Re: A lot of PHP CMS'es are open source. Just download them and look at the source code. | |
Re: I can no longer see the pages, but it looked like a CSS positioning issue. | |
![]() | Re: The only way to get to your usernames is when your webserver has been cracked already (unless you've been sloppy). So even if you use more accounts, they can get to it anyway at that point. IMO use only select/view/stored proc priviliges with heavy logging and no physical deletes. ![]() |
Re: > I used to try using "document.write" but as i learnt its not updateable Have a look at jQuery's `text` method. | |
Re: Check your file, probably a missing curly bracket or semi-colon somewhere. | |
Re: Am not much for hardware issues, but the beep indication should be described in your motherboard's manual. If you don't have it, am sure you can't find it online. | |
Re: Install Apache and PHP. Either download them separately or use a pre-built package that installs everything you need. What that is, depends on the OS you're running. Technically, [PHP](http://php.net/manual/en/tutorial.php) alone could suffice, as the latest version also includes a simple test server. | |
Re: I think that for the client to access the sensor, you'll need to use something other than a webbrowser (if that's what you had in mind). It won't have access. I recommend a desktop application. Transmitting the data using a webservice can work just fine. A lot of Javascript chart … | |
Re: What do you need help with? You can create an upload form and overwrite the existing images. ![]() | |
Re: It was sluggish this morning, around the time happygeek reported the spam fest. No speed issues atm. | |
Re: What do you mean by "other remote server". You cannot use `opendir` and `readdir` across servers (unless you use ftp). | |
Re: A third-party jQuery solution I can recommend is datatables.net | |
Re: [url]http://php.net/manual/en/curl.examples-basic.php[/url] ![]() | |
Re: It's about the tag `</table>` being in between the PHP code tags (`<?php` and `?>`). Either move the table tag after `?>` or change it to use an `echo` as stated above. | |
Re: Explain in more detail what you want to accomplish. | |
Re: Instead of just one file input called "theImage" you could turn that into multiple, each called "theImage[]". `$_FILES['theImage']` would become an array, so you'll have to modify that code to a loop. | |
Re: Depends on the format of your resume. There isn't a single fail proof method to determine this. |
The End.