17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for AirGear

i'm a newbie in php and maybe my question is so silly. i tried to create a session in a file named login.php [CODE]<?php include "koneksi.inc.php"; $name=$_POST['name']; $password=$_POST['password']; $hasil=mysql_query("SELECT * FROM TabelPegawai WHERE nama='$name' AND password='$password'"); $row=mysql_fetch_array($hasil); if ($row[nama]==$name AND $row[password]==$password) { session_start(); $_SESSION['namauser']=$row[nama]; $_SESSION['passuser']=$row[password]; $_SESSION['level']=$row[jabatan]; if($_SESSION['level']=="Manager") {header("location: manager.php");} else …

Web Development php session
Member Avatar for AirGear
0
186
Member Avatar for omotoyosi

please, I want a sql query that will return the no of fields in a database as an integer example i have table student columns are regno surname othername I want my result to be 3 what do i do??

Web Development asp.net
Member Avatar for kvprajapati
0
85
Member Avatar for meko22

Hi, I'm sure this is very simple but am unable to find out how. How do I display an email address as a mailto link like in HTML? I have records displayed from a mysql db but would like to display a member email address that acts as a mailto …

Web Development email php
Member Avatar for meko22
0
4K
Member Avatar for pandeyprashant

Hello every one, i m trying to use session in jsp application for remembering username from one page to another. it is working fine but when i use hyperlink to come back to home page the username becomes null. please help me how to remember username when user is using …

Web Development java-jsp session
Member Avatar for javaAddict
0
3K
Member Avatar for shine_jose

Hello, I wish to get the code to pass the log in information (i.e server name,pass word etc) as parameter at the time of calling report Now its asking (user name ,password) before going to the report page each time .please help me.

Web Development asp asp.net c#
Member Avatar for Ramesh S
0
466
Member Avatar for whiteyoh

Hi All, the following code will allow you to type content, and saves it fine, but it just wont populate that paticular area with the current database entry. Please can somebody advise. Im sure i have missed something so simple. [code] <?php $result = mysql_query("select * from `indexinfo` where id …

Web Development display php
Member Avatar for saranya14
0
6K
Member Avatar for wonderland

Hi, I'm sorry in advance if this is the wrong section. I wanted to know is it possible to password protect some files in web page ? For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web …

Web Development javascript
Member Avatar for Alxandr
0
1K
Member Avatar for verbob

I would like to take a string (I have loaded it from the database) and extract it into chunks. The beginning string, lets call it "$string", has the following format: [CODE]<li>item1</li><li>item2</li><li>item3</li>[/CODE] (maybe more li's, maybe less, or even none) What I would like to do is extract to an array …

Web Development php
Member Avatar for verbob
0
128
Member Avatar for violarisgeorge

Hey all, I need to use the PHP mail() function in order to send an email to a number of individuals. So lets say that I have 5 users that need to get a particular email. I was thinking that the correct way of going about using the mail() function, …

Web Development php
Member Avatar for violarisgeorge
0
153
Member Avatar for twilitegxa

Can anyone help me with why my insert statement won't work? I have tried countless tutorials online, but I cannot figure out what I am doing wrong. Can anyone point me int the right direction here? Here is my form: form: [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="form.aspx.cs" Inherits="_form" %> <%@ …

Web Development asp.net web-server
Member Avatar for twilitegxa
0
109
Member Avatar for emhmk1

Hi Guys, a while back i was working on a components list for a marquee firm, the project was put on hold for a while but now i'm taking it up again. A while back i asked how to add extra input fields with an onClick button, this was achieved …

Web Development php
Member Avatar for emhmk1
0
70
Member Avatar for lifeworks

Hi I have a link, which triggers a script, but when the link is clicked, i want it to get a border around it... currently tried using [code=js] onclick="this.style.borderWidth = 1px" [/code] but no luck, lworks

Web Development javascript
Member Avatar for lifeworks
0
136
Member Avatar for dalefish

As usual, develop something in FF and as soon as you get near IE everything decides to pack up and go home. I'm getting an object expected error, forgive me if it's simple, I'm new to JavaScript. [B]HTML Code[/B] [code=html] <div id="tabsCon" class="tabsContainer"> <span id="tab1" class="activeTab" onclick="javascript:changeTab('tab1');">Tab 1</span> <span id="tab2" …

Web Development javascript
Member Avatar for Troy III
0
272
Member Avatar for phoenix_dwarf

Hi i'm almost done with my project for our C# ASP.NET class but have just one thing left to do, and that is to print my datagrid view as is, with header included. Now i have absolutely no idea how to do this. I tried some javascript codes etc. but …

Web Development asp.net
Member Avatar for ashtej
0
134
Member Avatar for elanorejoseph

[CODE]hi can any one tell me how i can make a thumb nail of an image?[/CODE]

Web Development image php
Member Avatar for elanorejoseph
0
155
Member Avatar for Shanti C

Hai Every one... Im totally new to X-cart open source .Its a e-commerce source actually..And my company needs to create a shopping cart with x-cart.. Any suggestions , tips on this will always welcome... thank you, shanti..

Web Development open-source php
0
108
Member Avatar for CFROG

I'm trying to display a menu option only for certain session id's and for some reason it displays for ALL session id's ... not just the ones i have indicated. Not too sure why it's doing this, it all looks okay to me. [code] <?PHP if(isset($_SESSION['user_id']) && $_SESSION['user_id'] == 1 …

Web Development php session
Member Avatar for EvolutionFallen
0
187
Member Avatar for emhmk1

Hi guys, i have been trawling around looking for a decent and simple way of working out an age from a birthday. The way i'm working is a date of birth is added to a database then when pulled we echo the actual age and not the d.o.b. It's probably …

Web Development php
Member Avatar for EvolutionFallen
0
127
Member Avatar for samarudge

Hi, I have some code to dynamically retrieve one of three AJAX files and insert it into a DIV The Javascript is [code=javascript] function createajax() { var Ajax; try{ Ajax = new XMLHttpRequest(); } catch (e){ try{ Ajax = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ Ajax = new ActiveXObject("Microsoft.XMLHTTP"); …

Web Development javascript
Member Avatar for ShawnCplus
0
114
Member Avatar for Maged Media

hello plz i need help with this urgently as it i supposed to be used tomorrow :S i get this error from the following script Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/aybasuco/public_html/MySQL-Formmaker/lib/db_index.inc.php on line 42 thanks in advance for your valiable time [CODE]<?php # …

Web Development mysql php
Member Avatar for Maged Media
0
167
Member Avatar for garcon1986

Hello everyone, I have a problem when i use json and array. And i need your help. Here is my code: [CODE] while($row = mysql_fetch_assoc($result)){ echo json_encode($row); } [/CODE] The result is: [CODE]{"id":"1","title":"event1","start":"2009-11-10 14:18:15","end":"2009-11-03 14:38:22","allDay":"false","url":null}{"id":"2","title":"event2","start":"2009-11-09 15:41:20","end":"2009-11-10 16:41:25","allDay":"false","url":null}[/CODE] But i want the result is like this: [CODE] [{"id":"1","title":"event1","start":"2009-11-10 14:18:15","end":"2009-11-03 14:38:22","allDay":"false","url":null},{"id":"2","title":"event2","start":"2009-11-09 15:41:20","end":"2009-11-10 …

Web Development json php
0
110
Member Avatar for Eman84

Hi I need to integrate paypal gateway on my website. We sell memberships. There is a trial period for using some features of the website. After that users must purchase their memberships - it can be a mounth or 6 mounths or a year. Now, I could dynamically generate the …

Web Development php
Member Avatar for liamfriel
0
210
Member Avatar for alsoumhi

Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that …

Web Development java-jsp xml
Member Avatar for javaAddict
0
115
Member Avatar for phantom1000000

Hi all, I've got a spot of bother with my radiobuttonlist. It has 3 items in it and I want them to control the visibility of certain divs/tables. But even simple text changes are becoming a headache and the postback is not firing the event I clicked on but the …

Web Development asp.net vb.net
Member Avatar for phantom1000000
0
125
Member Avatar for daneuchar

danni web has been a great help to me i want just one more help i am able to connect to MSSQL present in my localhost using wamp but i am unable to connect to my MSSQL running in a pc with ip 123.xxx.xxx.xxx can u guide me on how …

Web Development mssql php
Member Avatar for daneuchar
0
161
Member Avatar for jyotidagia

hey all.. i was wondering if anyone culd help me wid this.. i've a html file with javascript and a php file.. i need to access the db result generated by the php file in my javascript..to dynamically load drop down menu in the html file.. was wondering if i …

Web Development javascript php
Member Avatar for network18
0
161
Member Avatar for diru

Anyone can help me to give link or website / tutorial about binding data with gridview ??....

Web Development asp.net
Member Avatar for diru
0
94
Member Avatar for phouse512

Hello, I've been using a book to learn php, and when I try to make it work for my own use, there seems to be an error when I try to login. First it says that the log in is invalid, and it comes up with this warning message: [b]Warning: …

Web Development php session
Member Avatar for phouse512
0
233
Member Avatar for leegeorg07

Hi, I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code: [code] javascript:window.open('http://twitter.com/?status='+self.location) [/code] but when I try it, it changes the page its tweeting to just show [object Window] how can I fix this?

Web Development javascript
Member Avatar for leegeorg07
0
114
Member Avatar for baltazar

Hello, I am having a problem with the jQuery Cycle plugin. I am trying to create a slideshow of images that change(fade) when an element in the pager nav is hovered on. (This is supposed to be possible as per the jQuery Cycle Plugin docs <http://malsup.com/jquery/cycle/pager2.html>) My setup: I have …

Member Avatar for baltazar
0
210
Member Avatar for dandixon

Right im very new to php and kinda learning as i go, here is my code. What it is, is when i search a part number it has to be matching the case e.g if i search a6725 it doesnt work but if i search A6725 its returns the result. …

Web Development php qt
Member Avatar for dandixon
0
87
Member Avatar for samarudge

Hi, On my websites, I encrypt passwords using a combination of hashing algorithm (Which I am obviously not going to post on a forum but its along the lines of [icode]md5(substr(whirlpool($Value), 0, 7));[/icode]) What is blowfish, how do I use it and how much more secure is it than a …

Web Development algorithm php
Member Avatar for digital-ether
0
175
Member Avatar for sam023

i m getting this bug.. and i still cant understand why this happening..?? here is my php code [code=php] $query1 = "call new_user('$cardDigits','$cardNo','$amount','$traiff','','','','','$creator',@_lastname,'$customer','$firstName','$email','0','0')"; $result1 = mysql_query($query1) or die('query_error'.''.mysql_error()); $lastname = mysql_fetch_row($result1); // Generate New User $query2 = "genrate_user('$lastname[0] ','$creator')"; echo $query2; $result2 = mysql_query($query2) or die('query_error1'.''.mysql_error()); [/code] Procedures are working …

Web Development php
Member Avatar for sam023
0
9K
Member Avatar for nikichu

Hi alll...... i am trying out a login form where in which i have multiple users... i have redirect each user to differnt pages..... ....but im stuck in the middle....... please help me out..... <code> page1 session["user"]=txtuser.text page2 welcome text(A label which is used to specify the current user) Thank …

Web Development asp.net session
Member Avatar for mail2saion
0
113
Member Avatar for mr_scooby

hi guys, I would like to be able to take all the output of a order form and the database output of the selected items and return it to a xml document. I tried the file_get_contents and that just took the actual code from the php page. My website is …

Web Development php xml
Member Avatar for mr_scooby
0
85
Member Avatar for fawadkhalil

Hi I have a datagirdview with a checkbox placed in header.How can i check or uncheck all checkboxes by clicking on checkbox that is in header.

Web Development asp.net vb.net
Member Avatar for fawadkhalil
0
159
Member Avatar for foxwizzy

hello all i am new to this forum and need some help whit php. I am trying to create a script that shows the number of users online. [CODE]<?php $host = "xx.xxx.xxx.xx"; $user = "xxxx"; $pass = "xxxx"; $db = "users" $conn = mysql_connect("$host", "$user", "$pass") or die ("Unable to …

Web Development php
Member Avatar for diafol
0
219
Member Avatar for feoperro

Hi, I would like to know if it's possible to specify the "target='FrameName'" in response.sendRedirect("Home.jsp") by any chance? I tried this: [CODE] <!-- Security Check --> <form action="Login" target="_top"> <% if ((String) request.getSession(false).getAttribute("sessionStatus") == null) { response.sendRedirect("Login?pageTimeout=yes"); } %> </form> <!-- Security Check --> [/CODE] But it doesn't work... The …

Web Development http-protocol java-jsp session
Member Avatar for feoperro
0
997
Member Avatar for dan1992

wats roang in here .. [LIST=1] [*]<?php [*]ini_set('display_errors', 1); [*]//connecting to database [*]$error = "nu am putut sa ma conectez :("; [*]mysql_connect('localhost','root','')or die ($error); [*]mysql_select_db('dan') or die ($error); [*]//max display pet page [*]$per_page = 2; [*]//get start variabel [*]$start = $_GET['start'] ; [*]//cont record [*]$record_count = mysql_num_rows( mysql_query("SELECT *FROM news")); …

Web Development php
Member Avatar for dan1992
0
186
Member Avatar for brianzet

Hello all. I've got this upload script, working just fine. [CODE] <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image =$_FILES["file"]["name"]; $uploadedfile = $_FILES['file']['tmp_name']; …

Web Development file-system php
Member Avatar for Atli
0
179
Member Avatar for CFROG

Does anyone know of a php based forum that is easily customizable to work with an existing user base so that members don't have to register or sign in a second time when they access the forum? I heard that this is possible with phpbb3 but I haven't seen anything …

Web Development php
Member Avatar for CFROG
0
346
Member Avatar for Kadence

I'd like to turn PHP off within a folder, with the exception of certain files (e.g. disabling PHP for all files but test1.php and test2.php, or test*.php). I believe PHP can be turned off for a folder by placing "php_flag engine off" within that folder's .htaccess, but how can I …

Web Development php
Member Avatar for Kadence
0
113
Member Avatar for kira4

Don't know why my coding appear this error: "Notice : Undefined index: PK in c:\easyphp1-8\www\associationdeleteprocess.php on line 24" But I still can delete my database. Who can help me to solve this problem? This is my "AssociationDeleteProcess.php" coding: [CODE]<html> <head> <title>Index</title> </head> <body background="E-Filing%20Management%20System%20Picture/Snow.gif"> <p align="center"> <img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" …

Web Development php
Member Avatar for kira4
0
103
Member Avatar for Folaju

hi i keep getting this error on my php page Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 871 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 877 the code below works perfectly on my test …

Web Development mysql php
Member Avatar for Folaju
0
206
Member Avatar for shubhamjain1

In orkut, as soon as one receives a new scrap, one gets an alert at side bottom even if page is not refreshed. I am sure that orkut doesn't check for scraps again and again by Ajax. Then how does orkut know that i have received a new scrap?? Similar …

Web Development javascript
Member Avatar for jomanlk
0
136
Member Avatar for rouse

I have be struggling to turn the below while loop into a foreach loop with no result, so I am asking for help here on how to do this. [code] $query = "Select * from TIME_TABLE Where Extract(month from DATE_FIELD ) = DATE_FORMAT(NOW(), '%c') and Extract(day from DATE_FIELD ) = …

Web Development php
Member Avatar for kekkaishi
0
120
Member Avatar for sugumarclick

Hi All, I went Through the tutorial of zend framework. . I can able to validate the forms outside the index controller. But the same form which is called in index controller is not validating. I searched in web but none helped me. . I wanna know why the form …

Web Development php
Member Avatar for sugumarclick
0
443
Member Avatar for DaveyMoyes

Hi everyone, its been a while since i kast posted on here, Im trying to make the following menu open on the mouseover event, but im having loads of problems, Whilst the menu system works great on the click event, Copy and paste this code if you are looking fro …

Web Development javascript
Member Avatar for DaveyMoyes
0
259
Member Avatar for CFROG

I'm having a few problems with a function that I would like to call from within a while loop. Obviously I can't include the function itself within the loop but it seems to me that the function requires variables created by the loop so calling the function from within the …

Web Development php
Member Avatar for CFROG
0
99
Member Avatar for DaraPsy

Hello guys, I have a simple form with 2 input fields (name, age). On submit the values should be sent to the php file where I print them. The problem is that on submit the php file is not rendered - IE just shows me the php code, Mozilla doesn't …

Web Development apache php
Member Avatar for Froger93
0
180

The End.