- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 9
- Upvoting Members
- 9
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
hi guys pls help me with this problem i realy can't fix this problem <?php function protect($string){ $string = mysql_real_escape_string($string); $string = strip_tags($string); $string = addslashes($string); return $string; } function connect(){ $con = mysql_connect('127.0.0.1','root', '') or die(mysql_error()); $db = mysql_select_db("users",$con); } ?> // this is for the protect function and … |
|
Re:
# Determine if a namespace/variable-name exists # ## Check for namespace existence in your environment variables and objects before writing to them. ## **Guess if "Book1.chapter22.paragraph37" exists without provoking errors and retrieve/send data if it exists with simplest JS expressions.** Call syntax: isNS( [string], [num] ); Example: var nsresult = … |
|
Hi, The sqrt function does not accept integers of type `unsigned long long int`. Is there a pre-exisiting C++/C standard function that can compute square roots of integers of that size? Thanks in advance, Caelan. |
|
Hi, I wrote this implementation of Sieve of Eratosthenes, is there any way I could eek some more performance out of it. As in opitmising data types, calculations etc. #include <iostream> // cout #include <math.h> // sqrt #include <time.h> // clock/CLOCKS_PER_SEC #include <stdlib.h> // malloc/free using namespace std; int main(int … |
|
# EDIT # Fixed - skipped ever having to use an array. Although, I'd still like to know if I was right about the stack size, and what the best way might be to keep that many elements in an array. ## Prerequisites ## Operating System: OS X 10.10 Yosemite … |
|
Re:
I have a form which shows results if a proper roll number is entered... the results are fetched from http://results.vtu.ac.in and only the table is shown... now i want to add the data of the table to my database using php. Is there a way to do it..? for example … |
|
This is a function that generates a string of random characters to the length that you specify. |
|
Re:
*hi!guys i hope you all guys will be fine .Today i want to know from you that how many friends you have in the Facebook! i have only 250+ and why you guys use facebook instead of other social network .i am using facebook to read new stories and for … |
|
OK, I've taken advice from some members here, and members from another forum. And I've come up with this, thouht I'd just share it with you. |
|
OK, I have an idea of what I might do: I'm planning on making a Event handling system, and this is how I will connect events to functions and be able to send any type of data. This is the basic idea: #include <iostream> template <class T> T *from(void *data) … |
|
|
Re:
Design a function that computes integers whose factorial is less than number read from input data? |
Re:
Hi friends, i am andrewtarant and i am new to this community. I am really happy to join this community which is interesting about business promotion and various business marketing strategies. |
|
So, When I assemble this code, I get no errors. It flies through the build. However, when I go to execute this code, it does not display the window. I am unsure of why. I have tried invoking messageboxes at the start or WinMain, but it seems it's not getting … |
|
A little find and replace function for PHP, not tested, but theoretically should work. |
|
Re:
My desired effect is for a comment delete button like what Facebook has on mouseover. The parent element is inserting a new div that will be the "delete" button on mouseover, and removing it on mouseout. My problem is, when I try to mouse over the div being inserted, it … |
|
Hello, I have been learning how to use the MS WinAPI, but their documentations is extremely vague in a lot of places, without information on the proper use of functions (PHP.NET manages this just fine!). But anyhoo. When I handle the WM_DRAWITEM message, it SHOULD display an image on the … |
|
Re:
Who can help me with the following. I have an allertbox with text in it but i want different languages for the text in the allertbox $lang = array(); $lang['ALERTBOX_A'] = 'To do this, you must first be logged in.'; onClick="alert(' <?php $lang['ALERTBOX_A']; ?>')" In this case the language is … |
|
Re:
Hallo, I wonder how to change css in the middle of the program. For instance: <div id="container"> if(case1){ container css height=200} elseif(case2) { container css height=300} else { container css height=400} </div> How to write the code? I am actually trying to program with Joomla which is confusing since it … |
|
Re:
Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\freeelec2\deliveryupdate.php:179) in E:\xampp\htdocs\freeelec2\deliveryupdate.php on line 222 <?php include('conn.php'); session_start(); if (!isset($_SESSION['Username'])){ header('location:index.php'); } // $tror=$_GET['tror']; ?> <html> <head> <title>Delivery Update</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script language="javascript" src="js/cal2.js"></script> <script language="javascript" src="js/cal_conf2.js"></script> <script type="text/javascript"> function Price(data) { … |
|
Re:
I have this Form that works successfully (I know it's not state-of-the-art). I simply want to add code to make Contact Name field mandatory. Can you help me? I don't know how much code I should post. Here's some: <script type="text/javascript"> function checkemail(){ var str=document.myform.email_address.value; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (filter.test(str)) testresults=true; … |
|
Re:
on dropdown change i would like to put the price on the textbox "price" base on the selected value in dropdown function Price(data) { document.getElementById ("productprice").value = data.value; } <select name="product" onchange="Price(this)"> <option value="" disabled="disabled" selected="selected">Please select a product</option> <?php foreach ($product as $product) { ?> <option value="<?php echo $product['Product']?>" … |
|
I just donated because i think this is a great place, full of great members, not that I've met many. But it is from what I can see from older threads and posts. Hope I enjoy my time here. And I hope to learn from other members of the community. … |
|
There appears to be a small bug. Where if I edit a post, save it, and then edit it again without reloading the page, it won't show the edits when the edit box shows up, it will show the original post. If you didn't get that, follow these steps to … |
|
Re:
**how to draw a line in c program given the slope and intercept of the line** |
|
Re:
when i debug this code it is giving few errors whats wrong in this code can anyone please help out :S #include "stdafx.h" #include <iostream> #include <conio.h> #include <string> #define T_SEMICOLON';' #define T_LPAREN'(' #define T_RPAREN')' #define T_ASSIGN'=' #define T_DIVIDE'/' #define T_WHILE 257 #define T_IF 258 #define T_RETURN 259 #define T_IDENTIFIER … |
|
Re:
Okay, I'm a newbie in this matter, and my lecturer seems to punish my class for not coming early to class. He asks us to write this assembly languange program, by using the information from internet. I really need your help about this question. Question 1. Initialize the grade listed … |
|
When I hover over the little ad at the top of each thread, it's usually the ebook one. It shows up normally. However, if you hover the cursor over that ad text multiple times very quickly. The small dialog continues to appear and then disappear the ammount of times that … |
|
Here is a fully working PHP page viewer, set the variables $pages[] = "ANY URL HERE"; to suit your needs, and change the variable $max = 10; to however many views you want for each $page. -Echo |
|
Nevermind, fixed it, I was being stupid. |
|
I know I could parse the files name for the extension, but that can be faked. I know I can get the mime type, but they can also be faked. I know I could use Magic Numbers, but on some files, they are not at the top of the file. … |