8,966 Posted Topics
| |
Re: I think you'll have to dig into the Facebook Graph API. Start with the documentation. | |
Re: 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 } | |
Re: `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`? | |
Re: -1 Open for append. -2 `Rename()`. -3 Not sure what you mean. If you want more specific answers, show your code. | |
![]() | Re: 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. |
Re: http://www.cmsmatrix.org/ You can check which one better suits your needs. | |
Re: 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). | |
Re: Group by user and date: SELECT user, date, COUNT(*) AS count FROM usertransactions GROUP BY user, date WHERE user = 'mike' | |
Re: That is a Javascript function. You cannot just include it into a PHP script like that. | |
Re: 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); | |
Re: You are right. sophiec016's post is about coding paths, which is completely unrelated to your original question. | |
Re: On what line do you get this error? | |
Re: > 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. | |
Re: This perhaps: http://www.phplivedocx.org/ | |
Re: Can you give an example? | |
| |
Re: Just store the info of the first form in a session, and add it to the query after the second form. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: > 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. | |
Re: That is usually the error message when your query has failed. Add error checking. | |
Re: Show your table structure. What have you tried so far? | |
Re: If they don't work then the reason must be that you are using PHP4. | |
![]() | |
Re: 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. | |
Re: 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. | |
Re: 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? | |
Re: You will need to explain what you have. Are you doing this in PHP only, or are you using templates? We need more information. | |
Re: Start here: http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call- | |
Re: 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 | |
![]() | Re: 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, … ![]() |
Re: 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. | |
Re: Line 2 and 3 belong together: $dsn = 'mysql:host=localhost;dbname=my_store'; | |
Re: Correct. It is deprecated as of PHP5. Move to the `preg_xxx` functions, in your case [preg_match](http://php.net/preg_match). | |
Re: Probably forgot the backticks... | |
Re: 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 | |
| |
Re: > Is this correct? Yes. The useful part of datetime over a timestamp is that you can use the MySQL date functions. | |
Re: 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. | |
Re: http://www.nczonline.net/blog/2008/05/17/browser-cookie-restrictions/ |
The End.