8,966 Posted Topics

Member Avatar for dottomm

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.

Member Avatar for pritaeas
0
171
Member Avatar for RaeesIqbal

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

Member Avatar for RaeesIqbal
0
282
Member Avatar for bikergeorge
Member Avatar for pritaeas
0
34
Member Avatar for aaloo
Member Avatar for caloy007

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.

Member Avatar for pritaeas
0
146
Member Avatar for B0716L

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.

Member Avatar for pritaeas
0
1K
Member Avatar for dinhunzvi
Member Avatar for silent lover
Member Avatar for JamesWon
Member Avatar for Squidge

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

Member Avatar for Squidge
0
134
Member Avatar for denikov

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

Member Avatar for pritaeas
0
266
Member Avatar for popsaine

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

Member Avatar for pritaeas
0
53
Member Avatar for bradly.spicer
Member Avatar for diafol
0
228
Member Avatar for Tinnin
Member Avatar for Tinnin
0
578
Member Avatar for mrexp21

From a quick glance, I can only see the num_rows and fetch_object functions. No connect, and no query is executed.

Member Avatar for pzuurveen
0
413
Member Avatar for Chesico

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.

Member Avatar for pritaeas
0
242
Member Avatar for hindu times
Member Avatar for bradly.spicer
0
363
Member Avatar for professor123

http://php.net/preg_match A pattern could be something like: \d{2} \d{7} [A-Z] \d{2} (depending on your exact requirements).

Member Avatar for professor123
0
161
Member Avatar for riahc3
Member Avatar for IIM

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.

Member Avatar for deceptikon
0
275
Member Avatar for hanan-kh

Since this thread has been resurrected, I want to add PhpStorm to the list. Not free, but a joy to work with.

Member Avatar for pritaeas
0
357
Member Avatar for foysal2012
Member Avatar for dwlamb

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

Member Avatar for LastMitch
0
221
Member Avatar for Mike Askew
Member Avatar for fheppell
Member Avatar for doraemon

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

Member Avatar for doraemon
0
1K
Member Avatar for kiLLer.zoh_1

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

Member Avatar for masterjiraya
0
174
Member Avatar for skliz

The query should return it as 24 hours format (according to the manual). What do you do with the result of the query?

Member Avatar for diafol
0
184
Member Avatar for phfilly

Have you tried the jQuery way of parsing? You can find an example [here](http://stackoverflow.com/questions/853740/jquery-xml-parsing-with-namespaces).

Member Avatar for phfilly
0
4K
Member Avatar for pritaeas

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

Member Avatar for pritaeas
2
433
Member Avatar for game06
Re: oop

What are the differences between your bullet classes? Just some different properties?

Member Avatar for Schol-R-LEA
0
116
Member Avatar for jessicam93xx

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

Member Avatar for IIM
0
291
Member Avatar for skliz

Disabling Indexing alone does not disable access to the files (assuming they can guess the filenames).

Member Avatar for diafol
0
162
Member Avatar for ehpratah

Just a thought, although date is allowed as a name, try putting backticks around your table and column names, just to be sure.

Member Avatar for ehpratah
0
313
Member Avatar for skliz

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 …

Member Avatar for pritaeas
0
1K
Member Avatar for LastMitch

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

Member Avatar for pritaeas
3
244
Member Avatar for hbm11
Member Avatar for NardCake

See some interesting code [here](http://www.ioccc.org/years.html).

Member Avatar for deceptikon
0
564
Member Avatar for aisha.edris1
Member Avatar for joeyliew7

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

Member Avatar for dorco
0
2K
Member Avatar for dalilice

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 …

Member Avatar for diafol
0
323
Member Avatar for daniel36

Your session value is never changed in this part of the code. Is there more?

Member Avatar for Webville312
0
174
Member Avatar for tacticalweb

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 …

Member Avatar for tacticalweb
0
293
Member Avatar for jessicam93xx
Member Avatar for pritaeas
0
307
Member Avatar for Martin C++

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.

Member Avatar for pritaeas
0
212
Member Avatar for ahmed.hayman

That means you do not have a database as specified on line 4, check your control panel, or with your webhost.

Member Avatar for pritaeas
0
112
Member Avatar for nice_true

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

Member Avatar for pritaeas
0
191
Member Avatar for riahc3

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.

Member Avatar for riahc3
0
162
Member Avatar for diafol

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

Member Avatar for diafol
3
455
Member Avatar for dinesh012

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.

Member Avatar for annaharris
0
139

The End.