39,393 Topics

Member Avatar for
Member Avatar for GrahamLawton

Hi there, I've been trying to figure out why my update script wont commit changes to the database. I'm building a simple call tracking web app for our technicians. Currently the view, add, and delete functions of the app work fine. The trouble I'm running into is when I want …

Member Avatar for GrahamLawton
0
294
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
157
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
94
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
142
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
79
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
116
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
158
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
83
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
147
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
78
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
121
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
135
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
281
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
83
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
161
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
215
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
371
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
108
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
170
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
127

The End.