8,966 Posted Topics
Re: Line 50 is missing an `=` Line 61: single quotes are missing from your query for string data. | |
Re: > It seems obvious to me that you do not want that database code inside input.php. because you don't want your web site users able to initialise databases. Yes, it is good practice to keep them separated. However, PHP code is not readable by your website users, they only see … | |
Re: Remove `ERROR_REPORTING(0);` as this disables all error messages. | |
Re: From the error messages I conclude you should've aliased your resulting columns. Next to that 8 is missing the dollar sign, 9 is missing a column. | |
Re: > what is EXEC sp_cycle_errorlog? http://technet.microsoft.com/en-us/library/ms182512.aspx | |
Re: I've been using IE11/Win8.1Pro for over a month, without a hitch. Only difference is that I do not use FB/G+ to login. | |
Re: `mysql_query` does not allow multiple queries to be sent at once. If you want to use this feature, I suggest you switch to MySQLi where you can use `mysqli_multi_query` | |
Re: That should be `&&`, and the comparison reversed. ![]() | |
Re: If you have no experience, wouldn't it be better to start with an existing package and go from there? There are already discussions on ASP.NET versus PHP, so I suggest you use the search feature to find out more about those. | |
Re: Just copy what's set for password, to username and lastname. | |
Re: AFAIK there still isn't. I return a 404 page. | |
Re: Please repost here: http://www.daniweb.com/business-exchange/jobs-and-resumes/52 Closed. | |
Re: Instead of pasting the PHPMailer source, it would be better if you show YOUR code, so we can see how you called it. | |
Re: If for every invoice you count the lines for each unique loc_cd, and then group them (by invoice and loc_cd), you can then select the invoices that have only one count. | |
Re: > Or is it just better to start with CMS (e.g. DotNetNuke)? If you think DNN has all you need, why not just start with that and see if it suits your needs. | |
![]() | Re: Me too, although I haven't had time to debug yet. It stops after the redirect which returns the code (all I can see so far). |
Re: Never use(d) it much, but it appears more relevant than before. | |
Re: Can you show the rest of the PHP code. It looks like you're outputting the 2311 too. | |
Re: > Below code working fine in firefox What exactly isn't working? | |
Re: This is one option: class SiteSettings { public $Settings = array (); public function __construct() { $this->Settings['WS-Filepath'] = '/wamp/crud/view.php/'; $this->Settings['WS-HTTPpath'] = 'http://localhost/crud/view.php/'; $this->Settings['DB-Hostname'] = 'localhost'; $this->Settings['DB-Username'] = 'root'; $this->Settings['DB-Password'] = ''; $this->Settings['DB-Database'] = 'db301847341'; } } $siteSettings = new SiteSettings(); header('Location: ' . $siteSettings->Settings['WS-HTTPpath']); | |
Re: IMO, security through obscurity isn't really a solution, nor worth the effort. | |
Re: After executing `query` you need to fetch the results first. See my [code snippet](http://www.daniweb.com/web-development/php/code/435142/using-phppdo-with-error-checking). `$result` does NOT contain the returned rows. | |
Re: You query is missing comma's and single quotes. It will never run. You should change $_POST['$moba'] to either $_POST['moba'] or $moba | |
Re: I think you need something like this: var uploadedFile = document.getElementById('f1'); var fileHeight = uploadedFile.files[0].height; | |
Re: http://www.mono-project.com/Main_Page Mono should be able to allow you to run .NET on Tomcat. I've seen other threads about this, but am not sure if they were answered. | |
Re: Is this different from [this](http://www.daniweb.com/web-development/aspnet/threads/468966/executescalar-requires-an-open-and-available-connection.-the-connections-c) ? If not, what's the error? | |
Re: > how much it will cost for the whole development Hard to say without more specific requirements. Are you looking for cost in hours, or money? | |
Re: Sounds like you need to open your connection, before using the command. | |
![]() | Re: You should be able to use a combination of `CURDATE` with `DATE_ADD`. Take the date part of today, and add two hours for the start date, add a day and two hours for the end date. https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-add ![]() |
Re: Something like: SELECT * FROM Schedule GROUP BY classroom_id HAVING COUNT(*) < 8 Am sure you can do the rest. | |
Re: Since array is not a class, I think what you describe in your last paragraph is the way to go. Whether it's overhead... I wouldn't implement it but if you find this easier/better to use, then why not. | |
Re: What's the problem exactly? Is your date in the format `yyyy-mm-dd` ? | |
Re: You want to duplicate the complete structure in code? | |
Re: Since User is a parameter you should be using `@User` instead of `@[User]` | |
Re: Do this: $result = mysql_query($query) or die(mysql_error()); Reply with the error message. | |
Re: SELECT SUM(num) FROM ( SELECT COUNT(*) num FROM svn_headline a where a.newstypeid=2 UNION SELECT COUNT(*) num FROM svn_crimenews b where b.newstypeid=2 ) | |
See attached image. I've seen this a couple of times after replying, or editing an article (Opera and IE).  | |
Anybody familiar with AutoVue? Am using Desktop V20.2.2 embedded in a WinForm. Am looking if it's possible to set the background color. So far I haven't found any conclusive answer whether or not this is possible. | |
Re: > can i earn online You mean as a freelancer? Basically that's possible. | |
Re: Other suggestions? Other than the dropdowns? A list you can reorder (dragging or up/down buttons), or rows/columns of checkboxes (4x4). Clicking a checkbox should disable the ones on the same row, and in the same column. | |
Re: See the `CREATE USER` and `GRANT` commands in the database maunal. | |
Re: Depending on the server that file is hosted on, you can request the file size, and whether the server supports resume. If it does, then you can use the HTTP Range header to specify which block of data you want. | |
Re: I made a code snippet about this a while back. You can find it under the [PHP code snippets](http://www.daniweb.com/web-development/php/code/425686/create-a-table-x-columns-wide) tab. |
The End.