39,402 Topics

Member Avatar for
Member Avatar for brendyd

Hi I am trying to create a log system were users can log activities, once they are logged in their username is held in a session. My problem is I want them to be able to create a new log by filling out a form but I don't want them …

Member Avatar for somedude3488
0
169
Member Avatar for Compeek

Hello! For about two or three weeks now, I've had a cron job that runs every 5 minutes as part of an email subscription system I set up for my church. Yesterday something changed with our hosting server (it's shared hosting with Hostmonster) and now I'm getting an email every …

Member Avatar for Compeek
0
158
Member Avatar for muralibobby2015

hello... i am using '-'separater in htaccess. here is my code [CODE] htaccess url:http://rahul/cellbatts/featured products-<?=$fetchhotproducts[itemno]?> RewriteRule ^([^-]*)-([a-zA-Z0-9/_-]+[^.]+)$ product_info.php?catname=$1&itemno=$2 [NC] above is working for this example http://rahul/cellbatts/product_info.php?catname=featured products&&itemno=HA-MO-V9 but my item number is some types like this http://rahul/cellbatts/product_info.php?catname=featured products&&itemno=HA-MO-VK-KL/1 for this the above htaccess url is not working? redirecting to correct …

Member Avatar for SikoSoft
0
73
Member Avatar for rgby

Basically i want to make an online shop, only with like 5/6 products in it. but i dont want a checkout, i basically want it were the buyer can add something to a cart, enter their name, and 2 other information fields (ie phone number and collection date) and then …

Member Avatar for rgby
0
74
Member Avatar for SuntechWebsites

I am wondering if there is a way I can create affiliate tracking links that let me know when a user has filled out a form and came from an affiliate site. Heres my situation...on my site I do not charge fees up front. The client fills out a form …

Member Avatar for SuntechWebsites
0
96
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
144
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
80
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
89
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
69
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
117
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
163
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
84
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
148
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
79
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
84
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
122
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
89
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
136
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
282
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
143
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
166
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
84
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
163
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
216
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
125
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
374
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
109
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
171
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
128
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
75
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
80
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
98
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
34
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
68
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
74
Member Avatar for Athiththan

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 …

Member Avatar for rajarajan2017
0
113
Member Avatar for sinyi

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

Member Avatar for rajarajan2017
0
281
Member Avatar for niths

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 …

Member Avatar for etftw
0
193
Member Avatar for jjpennett

No matter what I try, I keep getting Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in ___ I tried array also, but here's the code for the login page. About 23 lines down. Also, I'm new to PHP, as in, today new. [ICODE] /* Start session …

Member Avatar for rajarajan2017
0
91
Member Avatar for sjeggels

Hi there, I am still experiencing problems to populate the dropdown menu in my form (mysettings.php) with the correct contents from the database. Herewith is what I have. <?php /********************** MYSETTINGS.PHP*************** *********** This updates user settings and password **************************** ********************** **********/ include 'dbc.php'; page_protect(); $rs_settings = mysql_query ("select * from …

Member Avatar for rajarajan2017
0
232
Member Avatar for rukshilag

Im trying to customise search fields and then display in a pdf but the code just doesnt work. can someone take a look and see why exactly this is not working? if u see any mistakes? [CODE]<?php //access incoming name, id or radio button values $cs = $_GET['cs']; $name=$_GET['name']; $uni=$_GET['uni']; …

Member Avatar for urtrivedi
0
154
Member Avatar for kristo5747

Greetings! I have an app that my users rely to update customer data in our local database. I want to add a "control" whereby a check for customer number is done to make sure it exists. I started with this simple script [code] <?php //variable declaration $customer_id = '257'; // …

Member Avatar for kristo5747
0
117
Member Avatar for fuggles

[code=php] <?php session_start(); $password = "password"; if($_POST['password']==$password) { $_SESSION['loggedin']=1; header("location:index.php"); } else { header("location:index.php"); } ?> [/code] That works fine in other browsers. But in IE, when you click the submit button the previous page it redirects you back, and not logged in. Internet explorer says something about security. Does …

Member Avatar for fuggles
0
87
Member Avatar for BlueCharge

Hi Everyone, Basically i have a reward system on my website as Achievements. On the acievements page i want to display the achievment images that are unlocked and the locked image if the user has not unlocked them. The following code works but still brings back the following error: [QUOTE] …

Member Avatar for diafol
0
94
Member Avatar for gumby64

First let me start off with saying I am just learning PHP with smarty and am not doing this for any school/class assignment. I am trying to create an email form that allows a user to subscribe/unsubscribe from a mailing list. I can not figure out how to write the …

Member Avatar for diafol
0
165
Member Avatar for Marty6

Hi, I'm a relative newb with wamp server and web development. I've been asked to take over the development of a website. when I'm accessing the site locally everything works fine. But when I upload the site to our online server and I try to access it remotely from another …

Member Avatar for etftw
0
111
Member Avatar for HITMANOF44th

i have tried shell_exec system exec i want to run a command like maybe im missed something if you want my code ill post it but the other command i run to ocr the item works fine im banging my head and its probly something simple mv -f .*tif /somewhere/

Member Avatar for etftw
0
124
Member Avatar for Aamit

Hi, I am trying to run a stored procedure from PHP file,i am getting following error : CALL fetch_gist() execute command denied to user 'user_name'@'localhost' for routine 'dbname.fetch_gist' on 1370 When i directly call stored procedure from phpmyadmin it works fine , [COLOR="Red"]but when i call the same from php …

Member Avatar for etftw
0
69
Member Avatar for umandajayo

Hi Flocks.... I am developing a web site by using Joomla And I need to get a data from data base under the following criteria 1. item should be a published (in my module published is 1 and unpublished is 0) 2. and selected data should be a shorting under …

Member Avatar for sourcebits
0
84
Member Avatar for sajed

hi how i can let echo like in image [URL="http://img52.imageshack.us/img52/5373/gggpr.jpg"]http://img52.imageshack.us/img52/5373/gggpr.jpg[/URL] first article with image and title after come title only for other articles this is my code [ICODE]$querypub = "SELECT * FROM art_publish where category='$bnrow[1]' ORDER BY id DESC limit 3"; $qrypub = @mysql_query($querypub,$connect) or die ("Wrong Query"); while ($pub …

Member Avatar for sajed
0
109

The End.