8,966 Posted Topics

Member Avatar for yavindu

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 …

Member Avatar for Atli
0
270
Member Avatar for milan.sabic

There's no need, check the [DAYNAME](http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_dayname) function.

Member Avatar for milan.sabic
0
78
Member Avatar for mmcdonald

> 1) Will they logout or will they just close the browser? They will close the browser, but you can still trap that with Javascript.

Member Avatar for mmcdonald
0
178
Member Avatar for Marie22

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.

Member Avatar for Marie22
0
677
Member Avatar for aido89
Member Avatar for mmcdonald

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

Member Avatar for mmcdonald
0
1K
Member Avatar for Dontain

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

Member Avatar for pritaeas
0
98
Member Avatar for devianleong
Member Avatar for pritaeas
0
189
Member Avatar for a.dhamumca
Member Avatar for pritaeas
0
255
Member Avatar for mmcdonald

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

Member Avatar for Atli
0
478
Member Avatar for flynismo

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

Member Avatar for pritaeas
0
193
Member Avatar for CrAzY347

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.

Member Avatar for pritaeas
0
201
Member Avatar for ruby_ms
Member Avatar for L-D

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.

Member Avatar for Zagga
0
263
Member Avatar for MWEB

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 …

Member Avatar for MWEB
0
206
Member Avatar for Zdneth_1

It's a little vague. What are you trying, and what doesn't work?

Member Avatar for Unimportant
0
131
Member Avatar for asprin
Member Avatar for Shikha_1
Re: php

`$value` is undefined. You need to assign it a value before you can evaluate it.

Member Avatar for kkbalwada
0
199
Member Avatar for |-|x

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

Member Avatar for rohitdubey
0
5K
Member Avatar for mmcdonald

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.

Member Avatar for mmcdonald
0
847
Member Avatar for jonsan32

Instead of `index++` use the `Math.random()` function. But you should try to avoid the same number being chosen again.

Member Avatar for jonsan32
0
194
Member Avatar for extjac

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.

Member Avatar for extjac
0
187
Member Avatar for thearts.beach

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

Member Avatar for thearts.beach
0
493
Member Avatar for Diogo Martinho

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.

Member Avatar for pritaeas
0
183
Member Avatar for layman114

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.

Member Avatar for pritaeas
0
81
Member Avatar for pritaeas

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 …

Member Avatar for pritaeas
1
467
Member Avatar for layman114

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.

Member Avatar for layman114
0
193
Member Avatar for OsaMasw

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

Member Avatar for OsaMasw
0
282
Member Avatar for Jahliah
Member Avatar for Jahliah
0
328
Member Avatar for kumar89hitesh
Re: cms

A lot of PHP CMS'es are open source. Just download them and look at the source code.

Member Avatar for crescendo
0
220
Member Avatar for london-G
Member Avatar for pritaeas
0
139
Member Avatar for carminaJoy
Member Avatar for Zagga

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.

Member Avatar for Zagga
0
250
Member Avatar for leandros.ioannou

> I used to try using "document.write" but as i learnt its not updateable Have a look at jQuery's `text` method.

Member Avatar for leandros.ioannou
0
331
Member Avatar for f5media
Member Avatar for EvolutionFallen
0
126
Member Avatar for corne.strydom2

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.

Member Avatar for caperjack
0
111
Member Avatar for sanjayphilan

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.

Member Avatar for mattster
0
320
Member Avatar for JasonPS

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 …

Member Avatar for markspend01
0
178
Member Avatar for Kratoswoo
Member Avatar for suno15

What do you need help with? You can create an upload form and overwrite the existing images.

Member Avatar for diafol
0
118
Member Avatar for Moderns
Member Avatar for Zagga
0
261
Member Avatar for Dani

It was sluggish this morning, around the time happygeek reported the spam fest. No speed issues atm.

Member Avatar for james.lu.75491856
0
500
Member Avatar for newbie26

What do you mean by "other remote server". You cannot use `opendir` and `readdir` across servers (unless you use ftp).

Member Avatar for newbie26
0
319
Member Avatar for ImZick
Member Avatar for broj1
0
2K
Member Avatar for sinopa
Member Avatar for diafol
0
1K
Member Avatar for Fiorentino01^

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.

Member Avatar for Fiorentino01^
0
354
Member Avatar for henkesky87
Member Avatar for nerdynewf

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.

Member Avatar for nerdynewf
0
252
Member Avatar for <M/>
Member Avatar for kg2989

Depends on the format of your resume. There isn't a single fail proof method to determine this.

Member Avatar for pritaeas
0
531

The End.