39,320 Topics
| |
i have a login system in place, i decided it may be a good idea to have a news section, which i can update from my admin login. I created a row called 'tdanews'. now i have manually inserted some info into it, and echo'd it into the users login, … | |
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\xampp\htdocs\phplogin_v2.3\register.php on line 108 Insertion Failed: The Code [CODE]include 'dbc.php'; $err = array(); if($_POST['doRegister'] == 'Register') { /******************* Filtering/Sanitizing Input ***************************** This code filters harmful script code and escapes data of all POST data from the user submitted form. … | |
hello...i am using wamp server. i donot know how to rewrite url. i dont have a bit of knowledge to use .htaccess. please tell me how to write. first of all can we change any thing in apache2 folder which is server? and next i was directly placed .htaccess.txt file … | |
here I have [CODE] //functions.php <?php session_start(); function loggedin(){ if(@$_SESSION['username']){ @$username = $_SESSION['username']; return true; } elseif(@$_COOKIE['username']) { @$username = $_COOKIE['username']; return true; }else { return false; } } function getuid($username) { $res = mysql_query("SELECT id FROM users WHERE username='$username'"); if(mysql_num_rows($res)) { $row = mysql_fetch_assoc($res); return $row['id']; } } function … | |
Hey guys, Could you help me understand how to implement [CODE]mysql_real_escape_string[/CODE] to prevent injection in this code ? [CODE] <?php if(loggedin()){ echo "You are already logged in."; } else { if($_POST['submit']){ if($_POST['username'] && $_POST['password']) { $username = $_POST['username']; $password = $_POST['password']; $password = md5($password); $res = mysql_query("SELECT * FROM users … | |
Hi friends, Is this possible. i want to make link in this list. if you know pls say your suggestion. <select> <option>Report</option> <option><a href="program.php">Billing information</a></option> </select> | |
Hi all, I'm an aspiring PHP developer doing some side jobs just for fun and I was wondering if someone can help me out with this. I'm working on a project now which stores $_POST information into a separate table called 'stats'. I'm trying to create an 'admin backend' for … | |
Hello Everyone, I know that you pas variables with the $_GET method, but i am unsure as to how or why. When is this action called for? Thanks for helping me clear up my confusion. David | |
Hello everyone! Okay so i am quite far into my website and suffering a annoying problem. What i want the code to do is to get all the achievements from the table 'achievementsList' and then match the ones that are in there with the ones that the user has. The … | |
Hello.. i have this problem.. im doing some kind of late static binding. im really a new to this and don't know how to solve this problem. please help me to solve it... What i want to do is instead of using `static:: $arr[0].",".static:: $arr[1]` i want to iterate though … | |
I would like to open the following link in a new window , can you pls. help me - [code=php]<?php $userfile= file_get_contents("out.txt"); $users = explode("\n",$userfile); foreach ($users as $user) { list($name, $cor) = explode(" ", $user); echo "<a href=\"http://db.yeastgenome.org/cgi-bin/locus.pl?locus=".$name."\">$name </a>"."<br/>"; } ?>[/code] thanks in advanced | |
Hi guys, I've searched this forum and could not find any solution to it. The problem is this: I'm getting data from an external source every 10 seconds(approximately). I want to execute some script every 10 seconds but there can't be even the smallest delay. So if I would use … | |
Hey everyone, I don't even know where to begin with this. I need to limit folder access to only those members who are allowed to access them. For example, I'm creating a folder /5/ within a folder called /orderreports/ for the order id 5. I need to check which user … | |
I have a php page that displays records from a sql database. Each record is in a repeat region and has a submit form nect to it. The problem is if I submit one of the forms below the first in the list, the first form is validated and the … | |
I am developing a web page which retrieve data from a seperate mysql server on the same network musql_connect('192.16.1.2:3306', 'root', '123'); but ana error shows Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '192.16.1.2' (13) in /var/www/html/index.php on line 3 the 2 servers are on 2 different virtual network … | |
Simple HTML form is not working properly... attached is a simple HTML form. When i print the super global $_POST[] i don't get any information from the text fields. Im really frustrated... I can't find any problem with the code... HTML [CODE] <form method="POST" action="functions/process_payment.php" > <table id="creditCards"> <tr> <td><input … | |
I have two php pages - home.php and player.php... home.php has a loop to show all the products EID has associated with it including TOTALPLAYS, PLAYCOUNT, USER, PASS, PRODUCT and PRODUCTPATH... player.php has a small script to find out if PLAYCOUNT > TOTALPLAYS as well as pulling in the PRODUCTPATH … | |
i m designing a CRM for real Estate company. dis is d code i hve used to log d details of client :- <?php session_start(); if($_SESSION['Name']=='') { echo "<script>window.location='login.html';</script>"; } ?> <!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" /> <title>CALL LOG DETAILS</title> … | |
| Hey. I have the next problem: I've created a joomla-like administrator page to a site I just have to make. You can add, edit and delete products and categories. Now, my problem is: No matter which product or category u try to edit (it is listed in a table with … |
This is a table customization in a search form. I need the ticked checkbox values to be passed to the pdf.php in order for the table to be customized. but the table is not filled nor is it customised. [CODE]<?php //access incoming name, id or radio button values $cs = … | |
Is it possible to show the details of each record from the recordset in a show hide way? Each record would have a title - I need the sliding div to show the relevant info when the title is clicked on. Don't know if i've made this very clear so … | |
Hi friends, How is assigning the value to text box which is selected in the list.and then in .NET or VB have crystal report and grid view for showing report from. like this any other option in php? Only using table wil we show the report? | |
hello , i have products i create db id,productname,price ------ 1,cars,2000 2,renttv,20 3,blah,blah... now i want make a checkbox for all this db when you select the check box down give you total price like if you select cars! TOTAL PRICE: $2000 if you select 2 product like cars and … | |
hi friends, Assume , I create 4 fields in tables.3rd field contain some null values. How we reporting this . If i use "mysql_fetch_array" means it showing many empty spaces. If you know send that coding. | |
how do i do a table pyramid? e.g. 1st column(1 row), 2nd column(2rows), 3rd column(3rows) | |
hello.. i have this url.. [CODE]http://localhost/flowerstore/flowerdep.php?cat=ROSE[/CODE] how to rewrite like this. [CODE]http://localhost/flowerstore/ROSE[/CODE] i am trying lot...but no use...any body help | |
Hello all, I am new to the webhosting...and now i am in a position to configure my Server(WAMP) into https...I tried by following a step by step procedure which is published in a web page....I created the Certificate and the Key and if i type "https://localhost", i can go to … | |
<td> <select name="sourceitems"> <?php $Qry1->text = "SELECT * FROM sourceitems"; $Qry1->openSQL(); $Qry1->first(); while(!$Qry1->eof){ $SourceID=$Qry1->fieldByName("SourceID"); $ItemName=$Qry1->fieldByName("ItemName"); $selected=""; if ($SourceID == $_POST['SourceID'] ) $selected="selected"; print "<option value=\"$SourceID\" $selected> $ItemName </option>"; $Qry1->next(); } ?> </select> </td> Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\Webroot\TM\editData.php on line 179 … | |
hi all, i am having a page. where we can see list of files in a table and in every row download link is there.we can download that file by clicking on download link, so now i need a delete link also which deletes the selected file by using its … |
The End.