Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
10
Posts with Upvotes
10
Upvoting Members
9
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~68.0K People Reached
About Me

Someone who's learning as he goes along

Interests
Fingerstyle Guitar, Anime, Movies, Video Games
Favorite Tags
Member Avatar for vijiglad

[CODE]<?php if(isset($_POST['upload']) && $_FILES['userfile']['size'] > 0) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; $fp = fopen($tmpName, 'r'); $content = fread($fp, filesize($tmpName)); $content = addslashes($content); fclose($fp); if(!get_magic_quotes_gpc()) { $fileName = addslashes($fileName); } include 'config.php'; include 'opendb.php'; $query = "INSERT INTO upload (name, size, type, content …

Member Avatar for diafol
0
705
Member Avatar for phorce

Hello, having a slight problem here.. I have a string, that I need to do character analysis on - Basically finding out how many times "B" is in the text and then ordering this from (lowest to highest). Now I can get the results, but, I don't know how to …

Member Avatar for phorce
0
127
Member Avatar for akhtar.ali803

my code is following [CODE]<?php $conn = mysql_connect("localhost","rentwall_rentwal",")X7zlBx)XgZ5") or die ("Could not connect MySQL"); mysql_select_db('rentwall_rentwall',$conn) or die ("Could not open database"); function post($postname) { $posted = mysql_real_escape_string($postname); return $posted; } ?> [/CODE] it gives notification that Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rentwall_rentwall'@'localhost' (using password: YES) in C:\wamp\www\site2\db.php on …

Member Avatar for phorce
0
162
Member Avatar for Stefano Mtangoo

Hi Buddies, here is my happy new year greetings to all PHP friends. Love you and enjoy DW! $greetings = "Have nice year full of projects and less stress <br /> Enjoy!"; if(!$is_dead && $is_visiting_dw){ echo $greetings; }else{ die("Dead people do not browse internet!!"); }

Member Avatar for qazplm114477
0
174
Member Avatar for sirlink99

I am making a website, and I would like to figure out what size the display portion of the browser is. Here is more of an idea of what I mean tabs and menu widgets if they have any browser window bottom portion of web browser I would like to …

Member Avatar for qazplm114477
0
94
Member Avatar for anthonyjpv

Hi! Im new to MySQL RDMBS. I know the basic CRUD if you know what i mean. Create Read Update Delete. I have 2 tables: Category table and Product Table Products should be categorized. Product table has PK as an ID and FK to Category Table How to INSERT INTO …

Member Avatar for anthonyjpv
0
192
Member Avatar for Hendo

I'm trying to make a simple login page to grant access to my form pages. I don't want anything fancy, just a simple name and password match to grant access. What I have grants access no matter what is typed in, and I don't understand why. Any help would be …

Member Avatar for EnjoyYourMeal
0
243
Member Avatar for bisibee82

I'm doing a bidding listing page and I wanted to add a countdown timer to it. So, I have this Javascript countdown function which is modified from [url]http://keith-wood.name/countdownBasics.html[/url]. I'm supposed to pass the ending time to variable t. I have no problems passing in a direct value such as 2011:11:11 …

Member Avatar for diafol
0
477
Member Avatar for BilalAKhan

Hi, Can anyone please tell me whats wrong with this piece of code? I am trying to insert email (user name)in the database. This thing is now getting on my nerves. [CODE] if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) { $insertSQL = sprintf("INSERT INTO blog (title, specialization, message) VALUES (%s, %s, …

Member Avatar for fobos
0
197
Member Avatar for missumissu

[CODE]<?php $target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else { echo "Sorry, there was a problem uploading your file."; } ?> [/CODE] that's mean must create 'files' table? and 'target' is entity …

Member Avatar for qazplm114477
0
129
Member Avatar for jQueryLover

may peace on you ! Guys i am stuck in a query i want to get the value of row when a image in that row is clicked.so the purpose of update by getting that row id.i got the code below but it get me the row# and col# not …

Member Avatar for jQueryLover
0
94
Member Avatar for swissknife007

I am completely new to PHP. I would like to know which are the good online resources where I can learn PHP. What are the basic things in PHP one needs to know?

Member Avatar for rotten69
0
410
Member Avatar for kdogg556

Im doing a Contact form for a client and my php is limited. I need to make everything in this required. Here is the code: [CODE] <?php ob_start(); if(empty($_POST)) { $status = ''; $display_form = true; } else { $fname = $_POST['fname']; $lname = $_POST['lname']; $pname = $_POST['pname']; $email = …

Member Avatar for qazplm114477
0
175
Member Avatar for qball_irl

Hello Everyone, This is my first post and im sure this community can help. [B]Issue:[/B]I'm trying to create an authentication script for the first time, I am inserting Data into a table and trying to retrieve it again on the same page but instead of retrieving the latest id it …

Member Avatar for qball_irl
0
101
Member Avatar for BKoehler

I am having an issue. I keep getting the following error: [B]Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\test\banners\banner1.jpg on line 1[/B]. What I am trying to do is dynamically not only change content, but change a banner in the header section of code to correspond with the content. My …

Member Avatar for qazplm114477
0
300
Member Avatar for stranger_on_way

I want to open up a link (of another site) on new page in iframe. For example when the link on page A is clicked, it opens a new window(Page b) of same website and make the link of another site to open in iframe.. Please help....

Member Avatar for diafol
0
182
Member Avatar for Buppy

Hi, I have data like this - [CODE] Someting Object ( [_values:protected] => Array ( [key1] => something, [key2] => something else, etc... [/CODE] How do i access that _values:protected part? I tried $name->_values:protected['key1'], but it gives me an error. Thanks

Member Avatar for diafol
0
147
Member Avatar for dunktap

Hey all, I am trying to figure out how to enable images to be saved as an image file when i display them in php. Right now when i right click on the image, it says save image as.. but then it wont save it as anything other than the …

Member Avatar for qazplm114477
0
170
Member Avatar for maxxxx

Hello all. I'm trying to figure out the javascript so that when I hit the total up order button, it will fill in the subtotal, PST, GST and give me my total in the box above the total up order button. Can some help me out? Thanks in advance. [CODE]<!DOCTYPE …

Member Avatar for qazplm114477
0
145
Member Avatar for aaloo

this is a part of my code and i m getting this error somewhere in this part[ICODE] Parse error: syntax error, unexpected T_ECHO[/ICODE] [CODE] $data = mysql_query("SELECT * FROM $title") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { ?> <div id="username"><? php echo $info['name'] ?></div> <div id="statement"> <? php echo …

Member Avatar for aaloo
0
3K
Member Avatar for ppetree

I need a little help architecting a process that is a little beyond my skill set so if I could get a little help in how to approach this, I would appreciate it. Basically: BigBox Corporation has 15,000 employees in multiple countries. They want to build a communications system consisting …

Member Avatar for Fest3er
0
148
Member Avatar for Behi Jon

Hi, I don't understand why this validation check isn't work, Everything is OK, but .... [code] <html> <head> <script type="text/javascript"> function valForm() { var x = document.forms["ActorForm"]["actorfname"].value; if (x == null || x == "") { alert("First name must be filled out"); return false; } } </script> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for Airshow
0
159
Member Avatar for filipgothic

I want to make option to approve users before they can login or to ban them, here is code [CODE]MySQL Syntax (Toggle Plain Text) <HTML><HEAD><TITLE>Fakultet informacionih tehnologija</TITLE> </HEAD> <BODY TEXT="#ffffff" BACKGROUND="fakultet/Assets/bg.jpg" LINK="#FFFF00" VLINK="#CDCD00" BGCOLOR="#000000"> <CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="700"> <CENTER> <FONT SIZE=+4 FACE="arial,helvetica"> Fakultet informacionih tehnologija <HR> </CENTER> <?php session_start(); …

Member Avatar for filipgothic
0
2K
Member Avatar for polinolin

hi mate. i have problem about REGEX this is my simple code [CODE]<?php $teks="hi whats up? how are you?"; $replace=preg_replace("/(you)/i",'<span style="background:yellow;">\1</span>',$teks); echo "$replace"; ?>[/CODE] what the mean \1 ? its not give effect for my text.. if i change the value to \2, the text has change.. thanks mate!

Member Avatar for diafol
0
84
Member Avatar for jerrinfive

i have two tables in a single database sales... one is product other is order... i want someones help to know how can i do one operation.... i.e when i click on order i want to subtract that one order from the product table.... can u help me with the …

Member Avatar for qazplm114477
0
116
Member Avatar for morrisproject

Hi I am using the following code to logout: my logout button calls logout.php [U][B]logout.php[/B][/U] <? session_start(); session_destroy(); header("location:site.php"); ?> This doesnt seem to reidrect to my site.php page, it just loads a blank logout.php page, any ideas?

Member Avatar for hakeemtunde
0
122
Member Avatar for rayrenz

I'm having a problem with a code to display the vowels used in a string for example: "I LOVE YOU" the code will display "The vowels used are: e i o u" Any help? I'm supposed to use loops such as foreach, for, do-while, etc. and arrays..

Member Avatar for skraps
0
311
Member Avatar for paddi_1

Dear all, I have php file which is returning result from server which are shown as group list, this result i want to pass to the dialog box as in drop-down selection, posting the code as below of group.php. I am getting php result correctly but need to integrate in …

Member Avatar for qazplm114477
0
169
Member Avatar for dshiells

Hi guys, Hope you can help (and hope I can explain my problem OK!) I am designing a sports site which takes three values from a user to input match details: a date (text input), a versus (text input), and if the match is home or away (radio buttons). Several …

Member Avatar for dshiells
0
9K
Member Avatar for Psyho

Hello all. The problem: I have started a session. Now I would need to set an expiry time (24 hours) on the cookie it creates (if it creates it). How do I achieve this? Thanks to all, who anwsers.

Member Avatar for Stefano Mtangoo
0
114