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

Hello all, I'm having a bizarre problem with the most basic of logins. I'm using a function to pass two parameters, just email and password but it just will not work and I can't understand why. I ran the query in the database and it returned a COUNT value of …

Member Avatar for cubalibras
0
146
Member Avatar for subhadeep.majumdar.733

I am new in php and I have created a php login page where it will retrive data from a table and check a print "login successful" or "login failed". Now after execution of the codeI am giving correct data but all the time it is replying "login failed" plese …

Member Avatar for subhadeep.majumdar.733
0
189
Member Avatar for andyy121

<form action="login.php" method="post"> Username: <input type='text' name ='username'><br> Password: <input type="password" name='password'><br> <input type="submit" value="Log in"> </form> </body> </html>

Member Avatar for James Donovan
0
151
Member Avatar for jwales

Hi, I have a problem with my code. When I fill the PHP form and submit on the page, I encounter with 2 problems; 1- It writes all 6 input coming from 6 textareas to next line in csv file as I want. But it writes all of them into …

Member Avatar for jwales
0
148
Member Avatar for iamthwee

can someone explain these. And the difference between abstract and interfaces? These confuse me. Ta Also if you're asked to write a bit of code what tasks can i expect and can i assume i'll be given any resources or just pen and paper?

Member Avatar for Morta
0
138
Member Avatar for Riu 2009

<?php $title=$_POST["title"]; $theme=$_POST["theme"]; $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $query=mysql_query("SELECT * FROM setup WHERE id=".$_SESSION['id']); $result = mysql_query($query); $num_rows = mysql_num_rows($result); if ($num_rows > 0) { while($row = mysql_fetch_array($result)) { $_SESSION['id'] = $row['id']; $_SESSION['title']=$title['title']; $_SESSION['theme']=$theme['theme']; } { mysql_query("UPDATE setup SET title='".$title."' , theme='".$theme."'WHERE …

Member Avatar for Riu 2009
0
1K
Member Avatar for Morta

hello,I Need RSA system code with javascript ,i heared there're some rsa libraries in the internet , i looked for it , and i found some thing but it's not what i look for , i look for library applied (PKCS #1 v2.1) or (PKCS 12 v1.0),i have project and …

Member Avatar for pritaeas
0
148
Member Avatar for DrPepper8412

Tons of errors. Keep getting parse errors....line 45, 59...every time I get one, more pop up...please help. <?php session_start(); //ini_set( "memory_limit", "128M" ); //error_reporting(5); // added in by jaime to insure they are logged into the admin if(!$_SESSION["loginOK"]){ $err=1; $message="You must log in first"; exit; } if($_REQUEST["button"]=="Return to Main Menu"){ …

Member Avatar for Morta
0
347
Member Avatar for ska_defender

Hello, The following script writes to a file include.php <?php $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start=""; $Fnm = "./include.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file != 'index.htm')) { $result="{\nlevels: [\n{ file: \"$path2$file\" }\n],\n\ntitle: \"$file\"\n},\n"; fwrite($inF,$result); } …

Member Avatar for Morta
0
202
Member Avatar for Morta

hii..I have proplem of converting datatype from decimal to float to show it in view from table: [CODE] create table st_fees(s_no int(4) primary key,s_name varchar(50), reg_fs decimal(5,2),study_fs decimal(8,2),curr int(1)); [/CODE] and my view creation code is [CODE] create view sum_fs as select s_no ,s_name,reg_fs+study_fs as fees,curr from st_fees; [/CODE] the …

Member Avatar for smantscheff
0
96
Member Avatar for ibivobarn

OK, first off let me say that I know that javascript is a client side language and that php is a server side language. I've read that you can't assign javascript variables to php variables too. But I'm still absolutely stumped as to WHY my code below doesn't work. Perhaps …

Member Avatar for ibivobarn
0
375
Member Avatar for aecha

Hi! I am new here. I am new in php too.. Can somebody help me in solve this error? I can go to the page that but cannot call the data from the database. This is my code: [CODE]<?php $con = mysql_connect("localhost","root","root"); if (!$con) { die('Could not connect: ' . …

Member Avatar for karthik_ppts
0
127
Member Avatar for Morta

HI members,i'm newer here ,i prepare research about secure data exchanging between client side(JavaScript) and server side(PHP) of the web by implementing RSA Encryption system . I found RSA implementation by JS , i search about server side (php) but i find not useful php scripts ... So ...I need …

Member Avatar for Morta
0
85
Member Avatar for ppetree

OK, I have a table that has: id (int), name (varchar), parent (int) If parent contains NULL it IS the "parent" otherwise it is the child of a parent So: id=1 name=Meals parent=0 Means the above record is a "parent" (there are 100's of parents). So far, so good? Next …

Member Avatar for ppetree
0
142
Member Avatar for hawx

I have created a recursive function to get parent products of a product. I'm almost sure I'm nearly there, but need help snapping out of recursion. The result I am looking for is something like: Product 1 (id:1, parent:none) --- Product 2 (id:2, parent:1) --- --- Product 3 (id:3, parent:2) …

Member Avatar for Morta
0
109
Member Avatar for jacksantho

hi, [CODE]print "<tr><td><b>click</b></td><td><a href=test.php?id=$id&code=$pcode&name=$pname&section=$psection target=\"_blank\">Click</a></td></tr>"; [/CODE] I am passing all the values to test.php through hyperlink. Problem is: I can able to get only id and code. $pid=$_REQUEST['id']; // values getting $pcode=$_REQUEST['code']; //values getting $pname=$_REQUEST['name']; // values not getting $psection=$_REQUEST['section]; // values not getting I don't know to find what …

Member Avatar for Morta
0
152
Member Avatar for rakwel10

Hi! I have this code that adds field when the user hit the "add new field" button. The problem here is, once you added an input field, then fill it out, then add a new field again, the info in the first field be erased. As how the code runs, …

Member Avatar for Morta
0
147
Member Avatar for fifarulez

I'm almost done making my registration system on my home server. Thanks to everyone for your help. The last thing I would like to know is why it says: Error: [U]User not added to database.[/U] This is part of my register code: [CODE] // Fields are clear, add user to …

Member Avatar for fifarulez
0
150
Member Avatar for AngelosP

Hello everybody!!! I am trying to make a site where a user can select various checkboxes and see all the products of the categories he has checked. What i have done is create as many chkboxes as the categories are <input type="checkbox" name="ch1" value="movies" /> <input type="checkbox" name="ch2" value="music" /> …

Member Avatar for Morta
0
75
Member Avatar for chris_j_haines

Hi I have an occasional problem with the following scripts Here is the file upload form [CODE] <?php session_start(); if(isset($_SESSION['username']) == false){ header("Location: login.php"); exit(); } if(($_SESSION['userlevel']) != 'admin'){ header("Location: login.php"); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for stoopkid
0
166
Member Avatar for network18

what;s wrong with this mysql trigger logically?? [CODE] DELIMITER | CREATE TRIGGER comment_count AFTER INSERT ON comments FOR EACH ROW BEGIN UPDATE sub_sections as t1 SET t1.published_comment_count = (select count(id) as cnt from comments where article_id=t1.id and published=0 and status=0) WHERE id= (select article_id from comments order by date_modified desc …

Member Avatar for Morta
0
215
Member Avatar for Smurf_UK

Hi All, I am new to the site, and also to PHP and MySQL, so please go easy on me for asking what may be an obvious question for many. I am wanting to store the data from a sign-up form in a MySQL DB, but I cannot get my …

Member Avatar for Morta
0
3K