Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~13.1K People Reached
Favorite Tags
Member Avatar for Ritesh_8

Hi I am working on a payroll project and I am coding with php,html,js and mysql on xampp server. I have a salary sheet code which needs to be printed in pdf format for each employee with their names as the pdf filename. on running the php page the js …

Member Avatar for urtrivedi
0
7K
Member Avatar for davy_yg

product_edit.php [CODE] <?php // DATA BARU //if ($_REQUEST[mode]=='edit') //{extract ($_REQUEST); //do something //echo $_REQUEST['id']; //will give us the valid id from the previous page. //} $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $harga = isset($_POST['harga']) ? $_POST['harga'] : ''; $gambar = isset($_POST['gambar']) ? …

Member Avatar for davy_yg
0
249
Member Avatar for klemme

Hi all! I am trying to include two functions in an onchange when the user selects a new value from a select list: It is a quite big form form - There are one select list, when changed - TWO other fields in the form needs to change accordingly: I …

Member Avatar for klemme
0
2K
Member Avatar for Brianbc

[CODE]<?php /* +-----------------+------------------------------------------------------------+ | Class | setup | | Author | Brian Onang'o | | Version | 1.0 | | Last Modified | 10:16 AM 10/2/2010 GMT+3 | +-----------------+------------------------------------------------------------+ | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU …

Member Avatar for Brianbc
0
238
Member Avatar for Brianbc

I need some help with inheritance in php. The code below does not produce any output. [CODE] Class Father{ var $car; Function inherited(){ print $this->car; } } Class Son Extends Father{ Function __Construct(){ $this->car='Benz';//I'm assuming here that car is still a property of father. } } $obj= new Father; $obj1= …

Member Avatar for Brianbc
0
119
Member Avatar for Brianbc

Working with some OOP, I had an error that I have now traced to inistantiation of a class when the file in which the class is contained is included in any other file. Is this the default/normal behaviour of php, and how do I get myself out of this? I …

Member Avatar for Brianbc
0
107
Member Avatar for Brianbc

This Christmas day, I am plagued by this negative nibble mystery. I have some bytes in a byte array that I want to split into nibbles [CODE] x = bytes(n) x = x << 28'cause the left 4 bits to overflow so we remain with only the right 4 bits …

Member Avatar for Brianbc
0
81
Member Avatar for Brianbc

I have been searching for a single line of code all evening, and I think it's only prudent that I seek help. What line of code does the opposite if this? [CODE]WebBrowser1.Document.GetElementById("username").SetAttribute("Value", "username")[/CODE] I want to read some data from a php form and assign it to a string.

0
73
Member Avatar for Brianbc

[CODE]'<form action="" method="post"> '<fieldset> ' <ul> ' <li> ' <input type="text" name="username" id="user"/> ' </li> ' <li> ' <input type="password" name="pass" id="pass"/> ' </li> ' <li> ' <input type="submit" name="submit" value="submit"/> ' </li> ' </ul> '</fieldset> '</form>[/CODE] Above is a php form that has refused to be submitted by my …

Member Avatar for Brianbc
0
129
Member Avatar for Brianbc

I have a file(File1) in the root directory(Root). There is also a directory(Dir) in the root directory which contains File2. File2.php [CODE]<?php include'/*I need to include file1 here*/' // ?>[/CODE] How do I include file1 in file2?

Member Avatar for somedude3488
0
165
Member Avatar for Brianbc

I have a personalised webbrowser in VB 2005. It fills values into a form and submits the form. The first page is "login.php", the next page is "home.php" [CODE] SendKeys.SendWait("{TAB}") SendKeys.SendWait("{TAB}") SendKeys.SendWait("username") SendKeys.SendWait("{TAB}") SendKeys.SendWait("password") SendKeys.SendWait("{Enter}")[/CODE] I want it to do something else based on the url after the form is …

Member Avatar for codeorder
0
387
Member Avatar for Brianbc

I am loading a page to change passwords within an iframe. Outside the iframe it does work well, but when I change the password from within the iframe it returns a blank page. How can I rectify the problem? [CODE]//iframe <div class="tabber"> <div class="tabbertab"> <h2>Eguard</h2> <iframe src="eguard.php" width="100%" height="400"> </iframe>[/CODE]

Member Avatar for diafol
0
108
Member Avatar for Brianbc

I am using the code below to insert time into a table, and this is the output it's giving me: 0000-00-00 [CODE]//table start DATETIME, //code to insert date into db $_POST['start']=date("Y-m-d H:i:s"); $insert = "INSERT INTO eguardIPs (Field1,Field2,Field3,start) VALUES ('".$_POST['Field1']."', '".$_POST['Field2']."', '".$_POST['Field3']."', '".$_POST['start']."')"; $add_start = mysql_query($insert);[/CODE]

Member Avatar for Brianbc
0
100
Member Avatar for Brianbc

My file below checks if the user is ! logged in, and redirects to login page, or does nothing if user is logged in. [CODE]<?php if(isset($_COOKIE['SID'])) { $sid= $_COOKIE['SID']; $uid = $_COOKIE['User']; $lastip = $_COOKIE['Cname']; $_POST['SID']=$sid; $check = mysql_query("SELECT * FROM users WHERE SID = '".$_POST['SID']."'")or die(mysql_error()); while($info = mysql_fetch_array( …

Member Avatar for theonly
0
2K
Member Avatar for Sunganani

Pretty new at php and working on my class project. I get this error code on my action page for my log in page plus, it does not redirect when the result is wrong. I still get into the members' area. Code below. Thanks "mysql_num_rows(): supplied argument is not a …

Member Avatar for Brianbc
0
176
Member Avatar for lolo1313

Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already …

Member Avatar for Fungus1487
0
140