8,966 Posted Topics

Member Avatar for dany12

> 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.*

Member Avatar for dany12
0
243
Member Avatar for kh_cade
Member Avatar for tqmd1
Member Avatar for chrisschristou

1. You are mixing values with formatted values (doubles and strings). 2. what is `$row_panier`?

Member Avatar for chrisschristou
0
253
Member Avatar for ddanbe

[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.

Member Avatar for ddanbe
0
228
Member Avatar for tqmd1

echo "Your name is:" . $_GET['text1'] . "<br/>"; echo "Your city is:" . $_GET['text2'] . "<br/>"; echo "Your mobile is:" . $_GET['text3'];

Member Avatar for tqmd1
0
64
Member Avatar for castajiz_2

Since you are already familiar with C# I suggest you go for ASP.NET. Language wise PHP is a step back IMO.

Member Avatar for JorgeM
0
136
Member Avatar for rammy.sagar
Member Avatar for azapovjednik

> 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.

Member Avatar for azapovjednik
0
1K
Member Avatar for trishfernan
Member Avatar for davy_yg

> 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.

Member Avatar for davy_yg
0
228
Member Avatar for subrata_ushasi
Member Avatar for Lone Ramoupo

http://www.daniweb.com/software-development/python/threads/466327/improving-the-word-jumble-program

Member Avatar for vegaseat
0
952
Member Avatar for rmoloruntoba

Do you see any errors? Did you upload everything? Are the paths correct?

Member Avatar for pritaeas
0
103
Member Avatar for dlmagers
Member Avatar for tanatos.daniel
Member Avatar for Clanstrom

> 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 …

Member Avatar for pritaeas
0
214
Member Avatar for riahc3
Member Avatar for riahc3
0
854
Member Avatar for annyangel

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.

Member Avatar for annyangel
0
385
Member Avatar for rhodoscoder

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.

Member Avatar for tpunt
0
162
Member Avatar for gahhon

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.

Member Avatar for pritaeas
0
202
Member Avatar for rahul.pragma

`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?

Member Avatar for hag++
0
798
Member Avatar for Mas_2
Member Avatar for G_Waddell

It is answered somewhere. IIRC it's a legacy issue. Choice made long ago, location never changed.

Member Avatar for diafol
0
301
Member Avatar for aluya
Member Avatar for abhi10kumar

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).

Member Avatar for anjaiahspr
0
303
Member Avatar for ehpratah

> 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.

Member Avatar for ehpratah
0
361
Member Avatar for prakash_1

> Parse error: syntax error, unexpected end of file Usually a missing closing curly bracket.

Member Avatar for pritaeas
0
82
Member Avatar for happygeek

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.

Member Avatar for Gaetane
4
617
Member Avatar for strongard63

Show some patience. Everybody here volunteers any help. You cannot expect an answer in any amount of time.

Member Avatar for strongard63
0
214
Member Avatar for dany12

Lines 34-37 don't belong there, remove them. What you should do is change line 61 to: $con = new Connect('localhost', 'testoop', 'root', '');

Member Avatar for pritaeas
0
1K
Member Avatar for riahc3
Member Avatar for riahc3
0
151
Member Avatar for Edwin_2

Is there a reason you want to use preg_replace? $rowB = array (); foreach ($rowA as $number) { if (abs($number) == 1) continue; $rowB[] = abs($number); }

Member Avatar for Edwin_2
0
200
Member Avatar for maxlipman
Member Avatar for Edwin_2

Can you show some sample data, so we can see what is going in, and how it should look after the replace?

Member Avatar for pritaeas
0
184
Member Avatar for dany12

Not necessarily true. You can have a framework that implements the MVC pattern. Most do actually.

Member Avatar for dany12
0
376
Member Avatar for JayGeePee
Member Avatar for sriramkarthick

Use a join, assuming all tables are linked. What do you have so far?

Member Avatar for pritaeas
0
129
Member Avatar for ryy705
Member Avatar for pritaeas
0
4K
Member Avatar for GrazerC0de
Member Avatar for pritaeas
0
189
Member Avatar for Edwin_2

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.

Member Avatar for GrazerC0de
0
219
Member Avatar for amalinaharon
Member Avatar for jemartalaban_1
Member Avatar for pritaeas
0
87
Member Avatar for iLikePHP
Member Avatar for pritaeas
0
123
Member Avatar for minimee120

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.

Member Avatar for pritaeas
0
131
Member Avatar for Msentri

Have you tried any examples? http://php.net/manual/en/book.xmlrpc.php

Member Avatar for pritaeas
0
53
Member Avatar for sujitha reddy

Closed as duplicate: http://www.daniweb.com/web-development/php/threads/465652/database-connectivity-using-mysql

Member Avatar for pritaeas
0
68
Member Avatar for sriramkarthick

http://www.opencart.com/index.php?route=extension/extension http://opencartextensions.org/

Member Avatar for pritaeas
0
123
Member Avatar for Indians

> 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 …

Member Avatar for diafol
0
3K
Member Avatar for devianleong

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.

Member Avatar for devianleong
0
191

The End.