8,966 Posted Topics
Re: > has some performance issues First get it to work, then worry about performance. *“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” -- Knuth.* | |
Re: > Hey guys i need your help Help with what exactly? | |
Re: 1. You are mixing values with formatted values (doubles and strings). 2. what is `$row_panier`? | |
Re: [This thread](http://www.vbforums.com/showthread.php?628536-Detect-if-the-application-is-a-console-or-WinForms-application) shows some options in VB.NET. | |
Re: echo "Your name is:" . $_GET['text1'] . "<br/>"; echo "Your city is:" . $_GET['text2'] . "<br/>"; echo "Your mobile is:" . $_GET['text3']; | |
Re: Since you are already familiar with C# I suggest you go for ASP.NET. Language wise PHP is a step back IMO. | |
Re: > I guess I must modify config file in order to access the database This should have been taken care of for you by your webhost. If it isn't working correctly as you say, contact them and have them fix it. | |
Re: That's too small to identify. | |
Re: > Table 'surveillanceci.username' doesn't exist There is no table in your database with the name "username". Specify the right table name, or create it. | |
Re: http://www.daniweb.com/software-development/python/threads/466327/improving-the-word-jumble-program | |
Re: Do you see any errors? Did you upload everything? Are the paths correct? | |
Re: Number 2 is correct. | |
Re: Why are you adding the newlines anyway? Just for readability? | |
Re: > how I can apply even a smallest portion of Adapter or Factory pattern A Factory is a class that handles creation of (similar) objects. An Adapter is a mediator between two classes, enabling communication between them. I have the feeling you just heard about these two patterns and want … | |
Re: This one perhaps? http://www.marghoobsuleman.com/jquery-image-dropdown | |
Re: You have (in every function): $res = mysql_query($sql); mysql_query($res); You need (in every function): $res = mysql_query($sql); You try to execute it twice, but the second you use the wrong parameter. | |
Re: Change: $sqlCommand = "SELECT title, content, 'date modified ' FROM blog1tables ORDER BY id DESC"; To: $sqlCommand = "SELECT title, content, `date modified` FROM blog1tables ORDER BY id DESC"; Note the backticks instead of the single quotes. | |
Re: Unreachable because it's after `return`. So capture the result/null in a variable and return it at the end of the function, or use a try/finally. | |
Re: `file_get_contents` may not be allowed to open an external URL. What else have you tried? What's in the manual? Do you perhaps need a client certificate? | |
Re: It is answered somewhere. IIRC it's a legacy issue. Choice made long ago, location never changed. ![]() | |
Re: You want to export to MSSQL? You can do an SQL dump, adjust the differences (if any) and run it against your SQLServer. There's also a migration tool you can use (SSMA). | |
Re: > What i wanna know is if i switch to a AJAX reload would it solved my problem? With an AJAX request at least you can reduce the amount of bandwidth needed for a refresh. | |
Re: > Parse error: syntax error, unexpected end of file Usually a missing closing curly bracket. | |
Re: Unfortunately this is not new. The problem is that a lot of people are using these without thinking ahead, thus causing security risks. Here's [an article](http://linuxgazette.net/issue86/lechnyr.html) from 2003 on the subject. | |
Re: Show some patience. Everybody here volunteers any help. You cannot expect an answer in any amount of time. | |
Re: Lines 34-37 don't belong there, remove them. What you should do is change line 61 to: $con = new Connect('localhost', 'testoop', 'root', ''); | |
Re: SELECT name, email FROM employees WHERE group = '<your_selected_group>' | |
Re: Is there a reason you want to use preg_replace? $rowB = array (); foreach ($rowA as $number) { if (abs($number) == 1) continue; $rowB[] = abs($number); } | |
Re: Take the above code and turn it into a class. | |
Re: Can you show some sample data, so we can see what is going in, and how it should look after the replace? | |
Re: Not necessarily true. You can have a framework that implements the MVC pattern. Most do actually. | |
![]() | Re: I've used IETester in the past, not sure if it's still up-to-date. |
Re: Use a join, assuming all tables are linked. What do you have so far? | |
Re: > how can i declare an array variable as a class property See previous post. | |
Re: > that post is from 2002 It's from yesterday. You looked at Dani's join date. | |
Re: That error is triggered when your query fails (or the connection). Try: $resultA = mysql_query($queryA) or die(mysql_error()); $resultB = mysql_query($queryB) or die(mysql_error()); And reply with any message you see. | |
Re: What are you using to display those dates? | |
Re: Can you explain a little more what you are trying exactly? | |
![]() | Re: Very difficult to come up with a solution without having test data. |
Re: Depending on how your tables look, this is usually done by referencing the user id column. In character store the user id, and have it point to the gamer id. | |
Re: Have you tried any examples? http://php.net/manual/en/book.xmlrpc.php | |
Re: Closed as duplicate: http://www.daniweb.com/web-development/php/threads/465652/database-connectivity-using-mysql | |
Re: http://www.opencart.com/index.php?route=extension/extension http://opencartextensions.org/ | |
Re: > in that textfield i want to show the next auto_increment id from mysql database That's not a good idea. Suppose 5 people open your page at the same time. They will all show the same next ID, but after they submit a different ID will actually be used. Users … ![]() | |
Re: It depends on how your CSS is setup, basically the path to the CSS is: www.abc.com/user.php => CSS/default.css www.abc.com/user/devian => ../CSS/default.css If you are using relative paths, this is the first thing that goes wrong. |
The End.