Member Avatar
Featured tinstaafl 1,045 Replied To a Post in Fixing a mistake with function calls
Topic by COKEDUDE in Software Development
c
If the functions are in a class you declare it as a member of that class. If it is meant only for internal use keep it private, if a user of the class will need it make it public. Reply by tinstaafl
Member Avatar
rproffitt 1,338 Replied To a Post in Hide ads div on specific page
Topic by Pratyaksh_1 in Web Development
php
Just a note. I went to that site and didn't see those ads, but I don't browse without Ublock Origin and Ghostery enabled. Just way too many dangers without these two. Reply by rproffitt
Member Avatar
Featured COKEDUDE 27 Replied To a Post in Fixing a mistake with function calls
Topic by COKEDUDE in Software Development
c
How do you make a variable global to a scope? I only know about global variables to an entire program where you put it at the top of the program then your entire program can see it. Reply by COKEDUDE
Member Avatar
I need help that how to make these assignment by html,javascript??
i have made admin and user login ..need codes for further more..
**description of assignment:**
Salemanagementsystem have two panels.Admin login with specific id and Admin have rights to update product lists add, delete and update. Employees can create new … Topic by jawwad_1 in Web Development
Member Avatar
Featured Dani 1,665 Replied To a Post in Hide ads div on specific page
Topic by Pratyaksh_1 in Web Development
php
You can use CSS to hide ads. You would do something like: `div class="ads ads-header" style="display:none">`

However, hiding ads via CSS just makes them invisible to the end-user. The ads are still loaded. Loading ads but not letting the end-user see them is a massive TOS violation with just about … Reply by Dani
Member Avatar
No matter what the visitor types www.example.net or http://www.example.net or http://example.net i want all of the requests to be redirected to https://example.net currently i have managed to redirected requests that are coming from www.example.net and https://www.example.net to https://example.net but i can't find a solution for http://example.net to https://example.net

Current config … Topic by Neim in Community Center
Member Avatar
zoro007 Replied To a Post in Checkbox issue with python
Topic by zoro007 in Software Development
i solve it :) by this
i tried to check the result list or not


if isinstance(query.getvalue("Checkbox1"), list):
for i in query.getvalue("Checkbox1"):
print i
else:
print query.getvalue("Checkbox1") Reply by zoro007
Member Avatar
zoro007 Replied To a Post in Checkbox issue with python
Topic by zoro007 in Software Development
I see this example made by Tkinter
i want do that with native python not any framework or toolkit Reply by zoro007
Member Avatar
rproffitt 1,338 Replied To a Post in Checkbox issue with python
Topic by zoro007 in Software Development
You may want to try it another way. Read https://stackoverflow.com/questions/42235997/python-tkinter-get-value-from-mutliple-checkboxes/42238564 Reply by rproffitt
Member Avatar
zoro007 Replied To a Post in Checkbox issue with python
Topic by zoro007 in Software Development
this is my example
html code :



<form method="post" action="bb.py">
<input type="hidden" name="do" value="ss" size="20">
<input name="Checkbox1" value="111" type="checkbox" />aa1<br />
<input name="Checkbox1" value="112" type="checkbox" />aa2<br />
<input name="Checkbox1" value="113" type="checkbox" />aa3<br />
<input name="Checkbox1" value="114" type="checkbox" />aa4<br />
<input name="Checkbox1" value="115" type="checkbox" />aa5<br />
<input name="Submit1" type="submit" value="submit" /><br … Reply by zoro007
Member Avatar
Topic by rubyjean in Search Engine Strategies
You don't have to do SEO if you have valuable content. Bad content requires consistent SEO, while great content markets it self.

When I say great content I mean great user experience. Was the user satisfied with the page he or she visited? Did they get what they want? Are … Reply by FarrisFahad
Member Avatar
AndrisP 193 Replied To a Post in user profile with php mysql
Topic by Eric_28 in Community Center
But string variable value should be in quotes

$q = mysql_query("SELECT `id` FROM `users` WHERE `name`='".$name."'");

this also is not good solution - use prepared statement to prevent from SQL injection

$stmt = mysqli_prepare($link, "SELECT `id` FROM `users` WHERE `name`=?");

and then bind variables, execute statement and fetch result

mysqli_stmt_bind_param($stmt, … Reply by AndrisP
Member Avatar
FarrisFahad 79 Replied To a Post in Link Building Techniques
Topic by Sana_13 in Search Engine Strategies
seo
You need to be where your audience are. If you are building crappy and spammy links it won't help with your SEO.

You need to think of marketing as promoting rather than building spamy links that won't get you anywhere. Reply by FarrisFahad
Member Avatar
AndrisP 193 Replied To a Post in user profile with php mysql
Topic by Eric_28 in Community Center
Table name and column name in MySQL query string should be without quotes or you can use backticks. Reply by AndrisP
Member Avatar
Topic by rubyjean in Search Engine Strategies
You don't have to do SEO if you have valuable content. Bad content requires consistent SEO, while great content markets it self.

When I say great content I mean great user experience. Was the user satisfied with the page he or she visited? Did they get what they want? Are … Reply by FarrisFahad
Member Avatar
Hi,

I am trying to hide Div ads from specific page( 404, Etc). website url: https://ytdl.us/ And for an example 404 page: https://ytdl.us/search/fvl-fdslkvnfalkjfnvlkfev Here <div class="ads ads-header"> </div> needs to be blocked as it is against TOS. Can anyone help.

PS: I am no expert in coding :( Topic by Pratyaksh_1 in Web Development
php
Member Avatar
Hello,
I created html file with Checkbox and i use python
when i check one box and submit i have problem with list

when i check 2 box or more and submit i see the result list like
['120', '104', '12']
i can use "for" to loop the list and … Topic by zoro007 in Software Development
Member Avatar
Hello,
I created html file with Checkbox and i use python
when i check one box and submit i have problem with list

when i check 2 box or more and submit i see the result list like
['120', '104', '12']
i can use "for" to loop the list and … Topic by zoro007 in Software Development
Member Avatar
I want to create a php function that i can use to get a particular user details and display the info gotten in my ProfileActivity when a user profile is been clicked in my app. so i wrote this php code to get user details from my database but when … Topic by Eric_28 in Community Center
Member Avatar
Good Day All

i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now … Topic by vuyiswamb in Mobile Development
Member Avatar
Topic by Ahmed_109 in Web Development
php
... or you want to crete new table "saveoffices" and migrate all data from "office1" and "office2"? Show your table structures and relations. Reply by AndrisP
Member Avatar
I've seen the following code for binding the Escape Key to a Tkinter GUI:

import Tkinter as tk

def exit():
root.destroy()

root = tk.Tk()
root.bind("<Escape>", exit)
root.mainloop()

However, when I add this to my GUI program, I don't get a response when Esc key is pressed. It does nothing. Any … Topic by Xavier_7 in Software Development
Member Avatar
Featured tinstaafl 1,045 Replied To a Post in Fixing a mistake with function calls
Topic by COKEDUDE in Software Development
c
If all the functions are in the same scope, use a variable that is global to that scope, and only moduify the arguments for and the calls to `func15`. Most modern IDE's will make that relatively easy. Reply by tinstaafl
Member Avatar
I have 30 functions like this


void func1(int *var1, int *var2)
{
func2(var1, var2);
}

void func2(int *var1, int *var2)
{
func3(var1, var2);
}

void func3(int *var1, int *var2)
{
func4(var1, var2);
}



I do not need var3 until func15. Is there a way to fix this mistake without having … Topic by COKEDUDE in Software Development
c
Member Avatar
Featured rproffitt 1,338 Replied To a Post in Java vs PHP for web application decision (again)
Topic by jkon in Web Development
This sounds to me that you are vey displeased with how PHP and other frameworks, languages progress over time and what used to work, breaks as they upgrade. I've seen that with JAVA as well as PHP, Python and other systems.

While the new PHP break your code, repairing what … Reply by rproffitt
Member Avatar
Featured jkon 506 Replied To a Post in Java vs PHP for web application decision (again)
Topic by jkon in Web Development
Yes you can have apache and tomcat in same servers , you can have them as completly seperate enviroments (in differnt ports), one other option is to manualy set apache forward the request to tomcat (a bit diffucult) but there is also easyapache for cpanel that you can set it … Reply by jkon
Member Avatar
Topic by Ahmed_109 in Web Development
php
Use prepared statement instead of direct insert to prevent from SQL injection!
You try to save into table `saveoffice`?
To save into tables `office1` and `office2` try something like this:

<?php

$link = mysqli_connect("localhost", "username", "password", "database");

$result = [];
for($i=1; $i<=2; $i++){
$office = filter_input(INPUT_POST, 'offices'.$i);
$result[$i] = 0; … Reply by AndrisP
Member Avatar
Topic by aron_3 in Hardware
Open the case, take out the old hard drive, and physically destroy it. Buy a new clean hard drive and replace it. Reply by Green_4
Member Avatar
Can we use Bing instead of Google for accurate search result? Topic by HAMMAD_5 in Search Engine Strategies
Member Avatar
i have 2 tables
office1 > id,off1
office2 > id,off2_id,off2
i want to insert the choosen into table "saveoffice" > offices1,offices2
drop.php


<!DOCTYPE html>

<html dir="rtl"
lang="ar">
<head>
<meta charset="utf-8">
<title>dependent dropdown list using jquery Ajax?</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="http://demo.itsolutionstuff.com/plugin/bootstrap-3.min.css">
</head>
<body>
<form action="savedata.php" name="myForm" method="POST"/>
<div … Topic by Ahmed_109 in Web Development
php