hi im attempting to update a script and i have come across the following error PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in so here was the orginal



$sql = "select * from chat where (chat.to = '".mysqli_real_escape_string($_SESSION['usernamechat'])."' AND recd = 0) order by id ASC"; … Article by janicemurby in Web Development
Article by janicemurby in Web Development
An alternative to making `$conn` global would be to pass the `$conn` as a parameter for your function. Globals are not always the best idea - see this v. old article: http://stackoverflow.com/a/5166527

$conn = ...(whatever)... ;
$usernameChat = $_SESSION['usernamechat'];

$chatLines = getChat( $conn, $usernameChat );

function getChat( $connection, $username ){ …
Article by f.krueger in Web Development
Not sure if I'd want a site that looked like that! Have a look at any underlying html comments there may be clues as to the theme.
The twitter icon:

<img width="36" height="36" src="http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-36x36.png" class="menu-image menu-image-title-hide" alt="Twitter" srcset="http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-36x36.png 36w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-150x150.png 150w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-300x300.png 300w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-624x624.png 624w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-24x24.png 24w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-48x48.png 48w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1.png …
Sponsored 401 Replied To a Post in Convert countif from excel to jquery
Article by patk570 in Web Development
Neither the pictures nor the words are speaking to me.

Until such time that the question is properly expressed, I have to admit defeat.
Hi all,
I would like to know if this is an appropriate forum to ask these questions.
Website Example: http://www.shoparc.com

I would like create a similar site in WordPress. I have some experience with WordPress but would like to know:
What theme is this site using?
How would I create … Article by f.krueger in Web Development
Sponsored 3,149 Replied To a Post in WordPress: How would I create a simple site like this?
Article by f.krueger in Web Development
Not sure if I'd want a site that looked like that! Have a look at any underlying html comments there may be clues as to the theme.
The twitter icon:

<img width="36" height="36" src="http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-36x36.png" class="menu-image menu-image-title-hide" alt="Twitter" srcset="http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-36x36.png 36w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-150x150.png 150w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-300x300.png 300w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-624x624.png 624w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-24x24.png 24w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1-48x48.png 48w, http://www.shoparc.com/wp-content/uploads/2015/03/Twitter1.png …
Sponsored Donated to our Community; Thanks!
Hi all,
I would like to know if this is an appropriate forum to ask these questions.
Website Example: http://www.shoparc.com

I would like create a similar site in WordPress. I have some experience with WordPress but would like to know:
What theme is this site using?
How would I create … Article by f.krueger in Web Development
Hi all,
I would like to know if this is an appropriate forum to ask these questions.
Website Example: http://www.shoparc.com

I would like create a similar site in WordPress. I have some experience with WordPress but would like to know:
What theme is this site using?
How would I create … First Post in Article by f.krueger in Web Development
Joined the Community
Article by visualmonk in Web Development
php
Hi,

with browsers requests, the server can only accept the upload and check the sizes when it finishes. So, if you want to manage the error through PHP, raise the size and set a lower limit in the script.

If the limit in the php.ini file is 25MB and the …
Sponsored 3,149 Replied To a Post in Convert countif from excel to jquery
Article by patk570 in Web Development
OK, well you can set an event listener for the checkbox click (autopay) - or radiobutton if you prefer. This just enters a 5.00 discount in a div (or disabled textbox) if there is a sufficient amount (at least 5.00) in the laccess textbox if checked = true, clearing the …
Article by sireiz in Mobile Development
Yes, absolutely. Although Buttons are the simplest to implement, you may not get the look and feel that you really want, so a better general solution is:
As you draw the graph in your GUI you store the Shape (maybe just a simple Rectangle) of the thing you just drew …
Is there a way to develop a GUI which has graph data structure at the backend so that if we want to have information about a particular node or edge, we just tap its corresponding GUI representation and the app gives us the required info? Article by sireiz in Mobile Development
Article by sireiz in Mobile Development
To me this sounds like GIS (see google). I don't know your programming skill level or what the full design spec you wrote for this app but [here's a start for open source GIS for Android.](https://www.google.com/search?q=open+source+GIS+for+android)
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World … Article by AssertNull in Programming
Article by AssertNull in Programming
Well I haven't escaped the asylum just yet. A few things aren't linking quite right. But I've escaped the asylum enough to mark this thread solved. Thanks.
Article by nadiam in Software Development
You should be able to do something like this:

"SELECT FLD_PRODUCT_ID AS `PRODUCT ID`,FLD_PRICE FROM TBL_PRODUCTS_A154287 WHERE FLD_PRODUCT_ID='" & pid & "'"

The delimiters around `PRODUCT ID` are ticks(top right button by No. 1).

Adding columns and adjusting the data is better put into another question.
Article by sireiz in Mobile Development
well i am trying to create a map of my residential block. Is it possible to use graph data structure as backend and buttons as GUI?
320 Began Watching
I am an aspiring (at the age of 27) programmer using C++. I have future undertakings including getting a refresher course at a premier University in my country.

I am just interested to know in advance how it is to become a programmer. What are the regular routines that you … Article by markdean1989 in Computer Science
320 Replied To a Post in Life of a Programmer
Article by markdean1989 in Computer Science
I want to add two thoughts here.

1. Some think of a programmer is only a programmer if they are employed as a programmer. An artist is an artist if they produce art.
So get out there and write something. Anything. The more the better.

2. Money. That's where the …
1,410 Replied To a Post in Life of a Programmer
Article by markdean1989 in Computer Science
I found that anything important in a meeting got said within the first 15 minutes. As such, I had a program that I could set to send me a text message about 15 minutes in. If I decided the meeting was worthwhile I would stick around. If not I could …
Article by AssertNull in Programming
So, [madness](https://www.google.com/search?q=%22gcc-c%2B%2B%22&ie=utf-8&oe=utf-8).

Glad it helped. My Linux work over the years has been more on those embedded versions like [HardHat Linux](https://en.wikipedia.org/wiki/MontaVista). And right or wrong the embedded stuff was almost always straight up C.

You escaped the asylum.
Article by AssertNull in Programming
Which I now have thanks to your link, though it may not have been the exact way you intended.

> sudo yum install gcc gcc-c++

I had tried to "yum install" a whole bunch of one-offs of g++, but never thought of "gcc-c++". I tried "gcc-g++" a bunch of times, …
Article by AssertNull in Programming
> you may have to compile gcc to get gcc.

gcc I got no problem with a `yum install gcc`. I need g++ now.
Article by AssertNull in Programming
So I used google to see that gcc on centos question. It turns out you may have to compile gcc to get gcc.
https://www.vultr.com/docs/how-to-install-gcc-on-centos-6 for example. Of course you become an expert or descend into madness at that point.

Anyhow, glad my small contribution paid off above.
482 Replied To a Post in Life of a Programmer
Article by markdean1989 in Computer Science
> Most companies expect you do attend meetings, drink coffee, document your code, fill in time sheets etc etc.

No one likes going to meetings, but if you're not expected to go to meetings, there's a decent chance it's because no one thinks you have anything to say that's worth …
Article by AssertNull in Programming
Installed CentOS 7 Live Disk on a USB, rebooted to that, compiled on my laptop, uploaded, works!

So I'm good for C, but for some reason g++ does not exist in the CentOS repository. I could download/install gcc, but no joy on g++. Weird. You'd think if they had one, …
my activity is load a grid view from xml file and the controls from other xml file

public class ResultActivity extends AppCompatActivity {
GridView gridview;

ArrayList<String> arrayList;
String ip, db, un, passwords;
Connection connect;
PreparedStatement stmt;
ResultSet rs;
Button TButton;
@Override

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.gridviews);

TButton = … Article by HibaPro in Mobile Development
320 Replied To a Post in java.lang.NullPointerException
Article by HibaPro in Mobile Development
As I read https://developer.android.com/studio/debug/index.html I see you could set breakpoints at and before the failing line of code to examine why that line or call fails.

I'm running into new programmers that don't use all the tools.