39,323 Topics

Member Avatar for
Member Avatar for raju_boini525

hai all, i want to rewrite url in myproject. the actual url is [URL="http://test.com"]http://test.com/cat_product.php?cid=2[/URL] i want this url change to [URL="http://test.com"]http://test.com/cat_product.php[/URL] how do i write .htaccess file. i tried like this [QUOTE] <FilesMatch "\.(htm|html)$"> SetHandler application/x-httpd-php </FilesMatch> <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine on RewriteRule ^cat_product-([0-9]+)\.php$ cat_product.php?cid=$1 </IfModule>[/QUOTE] but it is …

Member Avatar for raju_boini525
0
141
Member Avatar for dan_t

Hi all, I'm using a while loop and looping through data in a database. When I loop through, instead of looping through once it loops through several times. How can I get it to just loop once per field for each user? [CODE]$query = 'SELECT persinfo.userId, persinfo.url, persinfo.email, men.password FROM …

Member Avatar for rajarajan2017
0
78
Member Avatar for umandajayo

Hi all... I am a developing a website using a joomla. I need to display a content but the should filter according to the date. I need only display content which are in between current date and before 30 days. my current mysql quary is SELECT * FROM events WHERE …

Member Avatar for qualitybrains
0
88
Member Avatar for rgby

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, …

Member Avatar for rajarajan2017
0
67
Member Avatar for KBL

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. …

Member Avatar for rajarajan2017
0
114
Member Avatar for muralibobby2015

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 …

Member Avatar for muralibobby2015
0
151
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for urtrivedi
0
81
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for Szabi Zsoldos
0
144
Member Avatar for sugikrish

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>

Member Avatar for sugikrish
0
76
Member Avatar for smoh

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 …

Member Avatar for urtrivedi
0
81
Member Avatar for Reliable

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

Member Avatar for rajarajan2017
0
119
Member Avatar for BlueCharge

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 …

Member Avatar for BlueCharge
0
88
Member Avatar for Virangya

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 …

Member Avatar for somedude3488
0
133
Member Avatar for nufar

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

Member Avatar for anduma
0
277
Member Avatar for janpieterz

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 …

Member Avatar for chrishea
0
141
Member Avatar for Encrypted

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 …

Member Avatar for Usernamex235
0
163
Member Avatar for haribo83

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 …

Member Avatar for diafol
0
81
Member Avatar for f.damati

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 …

Member Avatar for f.damati
0
156
Member Avatar for RisTar

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 …

Member Avatar for almostbob
0
212
Member Avatar for changeco

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 …

Member Avatar for changeco
0
124
Member Avatar for ashvyas

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> …

Member Avatar for sourcebits
0
347
Member Avatar for Pityu

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 …

Member Avatar for sourcebits
0
105
Member Avatar for rukshilag

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 = …

Member Avatar for Zagga
0
169
Member Avatar for haribo83

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 …

Member Avatar for fxm
0
125
Member Avatar for shekar.bdn

hi, i have one problem ,table values are not displaying.i wana which used in the table.

Member Avatar for qualitybrains
0
73
Member Avatar for sugikrish

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?

Member Avatar for rajarajan2017
0
78
Member Avatar for WaleedaaN

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 …

Member Avatar for urtrivedi
0
95
Member Avatar for sugikrish

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.

Member Avatar for rajarajan2017
0
32
Member Avatar for MDanz

how do i do a table pyramid? e.g. 1st column(1 row), 2nd column(2rows), 3rd column(3rows)

Member Avatar for rajarajan2017
0
67
Member Avatar for muralibobby2015

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

Member Avatar for muralibobby2015
0
71

The End.