8,966 Posted Topics

Member Avatar for vicky30312
Member Avatar for eminenz cw
Member Avatar for Squit
Member Avatar for SautinSoft
0
2K
Member Avatar for Rizi004
Member Avatar for pritaeas
0
46
Member Avatar for PriteshP23

The `die()` outputs that particular message. You are trying to insert a value that already exists in a unique column. You should do it like this: $query = "..."; $result = mysql_query($query); if ($result) { // output successfully registered script } else { // insert failed }

Member Avatar for PriteshP23
0
152
Member Avatar for branding4you

`AddStringAttachment` adds the file as a string, so you should open it and add the contents. Are you sure there is no easier method you can use, like `AddAttachment`?

Member Avatar for branding4you
0
100
Member Avatar for eminenz cw
Member Avatar for Blousey17

-1 Open for append. -2 `Rename()`. -3 Not sure what you mean. If you want more specific answers, show your code.

Member Avatar for pritaeas
0
584
Member Avatar for napninjanx

Basically yes, but it's not that easy. What are you getting at? The design side, or the backend programming side? Perhaps some more explanation will clarify.

Member Avatar for pritaeas
-1
35
Member Avatar for suavedesign

http://www.cmsmatrix.org/ You can check which one better suits your needs.

Member Avatar for bestwsd
0
74
Member Avatar for Khav

He probably used `anything` because he didn't know your columns. You can replace it with `*` to get all columns from the table. You query should be: $query = "SELECT * FROM copyright WHERE copyr_md5 = '$md5check' LIMIT 1"; For more information on how to use mysql, [read this](http://www.daniweb.com/web-development/php/code/434415/using-phpmysql-with-error-checking).

Member Avatar for Khav
0
247
Member Avatar for CLICROI
Member Avatar for branding4you

Group by user and date: SELECT user, date, COUNT(*) AS count FROM usertransactions GROUP BY user, date WHERE user = 'mike'

Member Avatar for pritaeas
0
1K
Member Avatar for Eggstraordinary

That is a Javascript function. You cannot just include it into a PHP script like that.

Member Avatar for Eggstraordinary
0
391
Member Avatar for adishardis

Something like this: $data = array (); while ($row = mysql_fetch_assoc($result)) { $data[] = array ( date("M,Y", strtotime($row['Datum'])), $row['forsta']); } echo json_encode($data);

Member Avatar for adishardis
0
114
Member Avatar for hwoarang69

You are right. sophiec016's post is about coding paths, which is completely unrelated to your original question.

Member Avatar for pritaeas
0
250
Member Avatar for samsonmitu
Member Avatar for PriteshP23

> It should be in ascending Ascending by what column? Remove line 3, and adjust `logid` to the column you want to use for the initial sort.

Member Avatar for PriteshP23
0
257
Member Avatar for Mitnick06
Member Avatar for daniel36
Member Avatar for ganges
Member Avatar for andreas.rew

Just store the info of the first form in a session, and add it to the query after the second form.

Member Avatar for pritaeas
0
139
Member Avatar for kirtee2209

Add some conditions. When x is one of those return 1, if y is return -1. Add more checks if they need to be sorted too.

Member Avatar for kirtee2209
0
133
Member Avatar for hwoarang69

Depends on the job. A data analyst builds queries/stored proces/triggers to store/retrieve information. Some people like this, but most I know find it very boring. A DBA's salary will be higher as he is responsible for database design and performance as well.

Member Avatar for JorgeM
0
512
Member Avatar for hwoarang69

Try a quiz style application, where you can insert multiple choice data in various formats. That way you can also perform statistics on the results that can be shown on a dashboard page. You can use queries, views, stored procedures and triggers when building it. Don't forget normalization, indexes and …

Member Avatar for pritaeas
0
132
Member Avatar for nCODE

> just changed the variables which That is the function of an obfuscator, it makes your code hard to read. If you want serious protection (encoding) then you'll have to pay.

Member Avatar for pritaeas
0
269
Member Avatar for daniel.adjeiboye
Member Avatar for pritaeas
0
54
Member Avatar for Vijaysin07
Member Avatar for rotten69

That is usually the error message when your query has failed. Add error checking.

Member Avatar for paulinetaylor85
0
195
Member Avatar for Darshan Belani
Member Avatar for eburlea
Member Avatar for eburlea
0
325
Member Avatar for LastMitch
Member Avatar for davy_yg

Probably because `.js` is missing from line 2, and you have not included the google map javascript (with your API key). View the source from that demo page, and include the missing stuff.

Member Avatar for pritaeas
0
181
Member Avatar for dansonyun

I'll give you a hint, the classes are making it more difficult, you don't need them. Adapt the loop that reads the data file to output whats in the section in the template file.

Member Avatar for dansonyun
0
229
Member Avatar for janskey15

Apparently, your query does not return any results. Are you sure you entered the right combination, and you inserted the password correctly in the first place?

Member Avatar for NardCake
0
97
Member Avatar for johndohmen1963
Member Avatar for johndohmen1963
0
135
Member Avatar for BigPaw
Member Avatar for deceptikon
0
199
Member Avatar for PHPGhost

You will need to explain what you have. Are you doing this in PHP only, or are you using templates? We need more information.

Member Avatar for eighta
0
218
Member Avatar for Venter

Start here: http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call-

Member Avatar for david.leatherman.908
0
412
Member Avatar for Riu 2009

You mean like this: SELECT courses.id AS cid, courses.title, courses.subjectsid, subjects.id AS sid, subjects.subjectname, requestrecord.status FROM courses, subjects LEFT JOIN requestrecord ON courses.id = requestrecord.coursesid WHERE courses.subjectsid = subjects.id

Member Avatar for Riu 2009
0
233
Member Avatar for LastMitch

Just adding some info: - In more languages, a public function with the same name as the class is actually a constructor. In PHP this still holds true, if there is no `__construct()` found, it will search for a function named like the class (this is considered the old way, …

Member Avatar for LastMitch
0
143
Member Avatar for hanzo2001

216 is an access violation. Most likely you're not allowed to write to the dynamic array like that. Apart from that, you set the dynamic array to the filesize. It should be filesize divided by the size of a single record.

Member Avatar for hanzo2001
0
565
Member Avatar for vivosmith
Member Avatar for daniel36

Correct. It is deprecated as of PHP5. Move to the `preg_xxx` functions, in your case [preg_match](http://php.net/preg_match).

Member Avatar for pritaeas
0
157
Member Avatar for aritabacan
Member Avatar for adam.adamski.96155

Something like this: SELECT a.AID, a.Name, COUNT(*) AS QuoteCount FROM author a LEFT JOIN quote q ON a.AID = q .AuthID GROUP BY a.AID ORDER BY a.Name

Member Avatar for Icone
0
295
Member Avatar for patsfans
Member Avatar for atkinsonsits

> Is this correct? Yes. The useful part of datetime over a timestamp is that you can use the MySQL date functions.

Member Avatar for Icone
0
1K
Member Avatar for flynismo

I suggest you do a `str_replace`, replacing the searched text with the searched text pre-/appended with the bold tag, in the info field.

Member Avatar for flynismo
0
626
Member Avatar for riahc3
Member Avatar for riahc3
0
118

The End.