8,966 Posted Topics
Re: You need to include it with an absolute path. It's usually something like this: include '/home/yourusername/public_html/insuranceGEO/includes/header.php'; | |
Re: You will need to use `json_decode` to create an array of your JSON. Then you can add your new data to that array. Finally use `json_encode` to create the new JSON. | |
| |
Re: What method are you using to build the XML, the MSXML DOM tools? | |
Re: Your link is dead (at least here). As for how... select a web language to build this in and start. | |
Re: Line 19 and 20. Use `$result` on both lines. | |
Re: Chaining is calling one function after another on the same object. Returning the object is a way to accomplish that. It allows you to write. anObject.method1().method2().method3(); | |
Re: > where to place the codes Can you explain what you mean? | |
Re: A simple search will give you loads of information. | |
Re: Of course I tested it before deploying... and I backed it up too. | |
Re: > i did the coding for displaying the datas but i got struct in viewing the data from two date ie from 1st date to the 2nd date. If you mean you need to adjust your query, then have a look at BETWEEN. | |
Re: What exactly does not work? Do you get errors? If so, show them. | |
Re: The error message states that `$dbh` is incorrect. Are you sure you included the connect script? | |
Re: You can use a `try .. catch` block, or `TryParse`. | |
Re: Where do you connect to the database? | |
Re: IMO having an options variable (array/object) is more readable, plus easier to change. Without it, overlooking a class when changing is easy, especially when the code grows. I think that these kind of identifiers do not belong in code. They can be variables or constants, but they should be defined … | |
Re: You are quoting PHP code in a string instead of executing it. | |
Re: If you export your XLS as CSV, then MySQL can import it with LOAD DATA. [Here](http://www.daniweb.com/web-development/databases/mysql/threads/189594/import-csvs-into-mysql-db)'s a thread about it. | |
Re: PHP has multiple methods available: http://php.net/manual/en/refs.xml.php | |
Re: > Does this get text that is brought to the page with java script ? No. It only returns the initial HTML source. | |
Re: > i want it to validate the email only if a value has been supplied You do this already in PHP. What exactly is the problem? | |
Re: Use an `if` to see if the rec or user value is null (or empty) before you assign it to the textbox. | |
Re: > how to force shut down?? The code is there. | |
Re: > will the application will start using the database on its own Only if the server name, user, password and database are identical to the one you used. Usually, you will have a config setting which contains all this information (ConnectionString). | |
Re: Something like Navicat Premium can do that. | |
Re: Perhaps [this thread](http://social.msdn.microsoft.com/Forums/en/sqldataaccess/thread/3e869ce7-d6df-4392-ba53-5d44a46e16d8) can help. | |
Re: > when I turn these queries into a 'Routine' the option to 'display chart' is taken away in the Query Results Operations task bar What tool are you using to do this? | |
Re: > $q = "SELECT TeamName FROM Master_Team WHERE TeamID = \"{TeamID[i]}\""; Should be: $q = "SELECT TeamName FROM Master_Team WHERE TeamID = '{$TeamID[$i]}'"; Apart from that add error checking to your queries, so you'll have an indication of what's wrong. | |
Re: [This thread](http://www.daniweb.com/web-development/php/threads/442314/fetch-the-data-from-other-website) shows you how to get it. If you want to use ready-made code, search the web, there are a lot of scripts to be found. | |
Re: > To correct it you have need to edit php.ini and set chmod 777 on your test folder. I recommend using **755** (777 is too vulnerable). I think the rights were the problem in the first place. | |
![]() | |
Re: There are some ways to extract the information if your date can be recognized as a specific one. The problem remains with a date like `2013-01-02`. There is no way to tell if the month is January or February. | |
Re: Can you provide some more background, security for what exactly? | |
Re: Looks like the image has no source file defined, but I cannot guess where you would need to change this. | |
| |
Re: Remove line 9. Also this: mysql_query('SELECT * FROM ccm3414.StudentInfo'); if (false) { die ('Unable to Select that DB : ' . mysql_error()); } doesn't work, use this: $result = mysql_query('SELECT * FROM ccm3414.StudentInfo') or die (mysql_error()); Lines 16-19 can be removed too. | |
Re: He should be able to provide you with an assembly containing all available methods. | |
Re: Off the top of my head: SELECT player, SUM(credit_a) AS SumA, SUM(credit_b) AS SumB, SUM(credit_c) AS SumC, SUM(credit_d) AS SumD, gameday FROM TransactionLog WHERE player IN ('NICK', 'PETER') AND gameday IN ( SELECT gameday FROM TransactionLog ORDER BY gameday DESC LIMIT 3 ) GROUP BY player, gameday ORDER BY player, … | |
Re: There are multiple ways to do this. You can build this yourself by creating/using a database (or file) and a backend administration page where you can change the classes by submitting a form. Since you mention cutenews, you could install this, as it is a ready to use cms. Another … | |
Re: You get an access token, after the user has logged in. Read more [here](http://msdn.microsoft.com/en-us/library/live/hh826543.aspx), or read more about the OAuth flow [here](http://msdn.microsoft.com/en-us/library/live/hh243647.aspx). | |
Re: Technically it would be no problem to this with functions only. In the long run however, you'll be better off understanding and (re)using classes/objects. ![]() | |
Re: I'm not sure it would be the best way, but you could use `preg_replace_callback` and use a global array to store whether the id is duplicate or not. | |
Re: With Pos you can find the position of that character. Then you can determine if it is at the start or end, or in the middle. Another option would be to use a regular expression. | |
![]() | Re: I think you forgot to set the id column to auto_increment. |
Re: You'd first need several insurance API's you can use to get the information required. Do you know of any? | |
Re: According to the docs you'll need to call `deleteFile` with the login, password and file-id. |
The End.