8,966 Posted Topics
Re: You have not specified that digits are allowed. The reason the first validates is that the pattern specifies that it needs to end with what's between the `[]`, but doesn't care what comes before that. Basically `01234567890123456789A` is validated now. Changing the pattern correctly requires some sample data. | |
Re: > I want to show these all echos in HTML in a table So what have you tried? I assume you know the HTML markup for a table, so changing the div's shouldn't be too difficult. | |
Re: Because it's down... I get a 404. Perhaps he didn't pay his bills. | |
Re: I think your webhost has blocked everyhing, I suggest you contact them. | |
Re: I don't have Oracle to test with, but I think anyone that has will need the table structure and sample data to test with. | |
Re: It's just a checkbox. You should have code on submit to store enough information to login in a cookie. When you access your page, you can check if it exists with valid info, and if so, submit automatically. | |
Re: `getElementsByTagName()` would give you a list of nodes. | |
Re: Tutorials are always welcome. Write it up, post it, and then use "Flag bad post" to request an administrator to turn it into a tutorial (you can't do that yourself, nor can I). | |
Re: See [Example #1 in the manual](http://php.net/manual/en/mysqli-stmt.bind-param.php). You can see `sssd` followed by the variables. `s` is for string, `d` for doubles values. $stmt->bind_param('sss', $reverse[0], $reverse[1], $reverse[2]); | |
Re: > I want the system to let me know when a client pays back an instalment without the client having to submit the receipt from the bank Technically, you could get this information from your account payments, but it's highly unlikely you'll have programmatic access to it. | |
Re: `mysqli_connect` does not combine with `mysql_query` ![]() | |
Re: The first should be fine, you are running on SQL Server? | |
Re: From a quick glance, I can only see the num_rows and fetch_object functions. No connect, and no query is executed. | |
Re: You are trying to insert a row into the new menuitem table, that has a category ID, not yet in the category table. Make sure your new category table is filled correctly first. | |
Re: At first glance it looks like you can add your content between lines 172 and 173. | |
Re: http://php.net/preg_match A pattern could be something like: \d{2} \d{7} [A-Z] \d{2} (depending on your exact requirements). | |
Re: Wouldn't it be easier to ask your host? | |
Re: If you browse through this forum, you'll see more threads with a similar topic. It's highly unlikely that the current system will be changed. | |
Re: Since this thread has been resurrected, I want to add PhpStorm to the list. Not free, but a joy to work with. | |
Re: You'll need a Javascript solution, I'm moving the thread. ![]() | |
Re: > What is the syntax to have the replace take the letter it finds and strip out the HTML around it? A backreference, something like this: </p>\n\n (<p class="calibre2">)([a-z]) The replace would be: $1 $2 The actual syntax depends on the regex engine used by your editor. ![]() | |
Re: > Do I have to install whole oracle client into my web server in order to run my application on the web? Yes. I don't think just copying assemblies will work. | |
Re: > false means no row returned That is correct. That usually means an error in your query. In this case, on line 30, change `LIMIT =1` to `LIMIT 1` | |
Re: The query should return it as 24 hours format (according to the manual). What do you do with the result of the query? ![]() | |
Re: Have you tried the jQuery way of parsing? You can find an example [here](http://stackoverflow.com/questions/853740/jquery-xml-parsing-with-namespaces). | |
Here's my base class and class for the unauthenticated DaniWeb API calls. Not every method has all features implemented yet, and it's not been fully tested either. Here's how to start using it: include 'DwApiBase.class.php'; include 'DwApiOpen.class.php'; $dwapi = new DwApiOpen(); $result = $dwapi->GetMemberActivityPoints(94719); $result = $dwapi->GetMemberEndorsements(94719); $result = $dwapi->GetMemberReputationComments(94719); … | |
Re: What are the differences between your bullet classes? Just some different properties? | |
Re: > I tried changing the storage type to innoDB, but the option is not available to me I've come across web-hosts that have this feature disabled. | |
Re: Disabling Indexing alone does not disable access to the files (assuming they can guess the filenames). ![]() | |
Re: Just a thought, although date is allowed as a name, try putting backticks around your table and column names, just to be sure. | |
Re: Sidenote, assuming you build this from scratch: suppose you implement long polling for an AJAX call to PHP. This would just move the problem to the PHP script, as it would need to implement the same original polling mechanism to get info from the database. Perhaps moving to Javascript for … | |
![]() | Re: > Downvote for a suggestion? In my experience this is only to show that they do not like the suggestion (don't want to see it implemented). |
Re: See some interesting code [here](http://www.ioccc.org/years.html). | |
Re: > $filename=('../'.'$orderdate'.'_'.'$outlet'.'.pdf'); Variables are NOT PARSED within single quotes. Try this: $filename=("../{$orderdate}_{$outlet}.pdf"); Apart from that, you never execute the query on line 9. You should use `mysql_query` and `mysql_fetch_array` to get the data you need. | |
Re: You can create a `UNION`. It's a little weird but should work: select * from (select * from news where category LIKE '$cat1' order by id desc limit 1) a union select * from (select * from news where category LIKE '$cat2' order by id desc limit 1) b union … ![]() | |
Re: Your session value is never changed in this part of the code. Is there more? | |
Re: If you don't close the connection, it will time out after 180 seconds by default (because PHP is basically stateless, a connection is never re-used). Then it is re-added to the connection pool. If you close the connection as you should, this does not happen, and there will be no … | |
Re: You must call session start BEFORE outputting the doctype (before ANY output). | |
Re: If the user closes the browser, then you can trap that with javascript, and use ajax to call a php script. For idling, you can set aa timer for 5 minutes in ajax, and restart it every time the user does something. | |
Re: That means you do not have a database as specified on line 4, check your control panel, or with your webhost. | |
Re: > search for records that have similar values in the first three columns Similar for a human eye is not that easy to translate into a "simple" query. The only way to do that is to create a lookup table containing your "similar" values. Some similarities may be programmed with … | |
Re: It should be possible to include the image file base64 encoded into the HTML. Am sure if you google this, you'll find a solution. | |
![]() | Re: > I know pritaeas post a couple of ones but I find hard make it work so I didn't make any comment until I understand what pritaeas wrote. Just ask. ![]() |
Re: Show the full error message. What database are you using? For debugging, create your query in a variable so you can output it to check for errors. |
The End.