38,020 Topics

Member Avatar for
Member Avatar for engrjd91

I'm a beginner in php.. can any one explain cookies & sessions in an easy way for me? i have surfed different sites for it also i have taken many trainings but yet i m not that much clear about these two concepts... kindly help me out !

Member Avatar for engrjd91
0
99
Member Avatar for cwarn23

In php/html/javascript there are two different ways you may redirect a user to another page however there are a few things to consider before choosing with method to use. As you should know by now php has the ability to send html and javascript to the web browser and php …

Member Avatar for coreyavis
4
2K
Member Avatar for Froger93

Hey guys, I just wanted to let everyone know that functions can be used very constructively and there are more to them then most think. Okay this example function is actually pulled from a class of mine so it would probably make more sense in my class but it should …

Member Avatar for coreyavis
7
916
Member Avatar for robinkang

want the value cookie that i got from the following code further used in php script to visit next url because value of cookie used in url ....how i can save value of cookie and again use it in my php script suppose cookie is JSESSIONID GT1~A555400D38C7F737D383DEEBA8A30CE3.GT.1 and my next …

Member Avatar for robinkang
0
258
Member Avatar for hwoarang69

trying to buld gllery.php page. where i want to print all user image with 4 cols. and infity rows. all in one page gallery.php <?php session_start(); include("connect.php"); $user = $_SESSION['username']; if($user) { $user_id = $_SESSION['user_id']; //get user_id who ever is loged in $image = mysql_query("SELECT * FROM image WHERE user_id …

Member Avatar for suresh.godavarthi.77
0
2K
Member Avatar for OsaMasw

I don't know whats wrong but my code not working properly here is my html code <input type="text" name="username" id="username"> <div id="check_usr"></div> AJAX call <script> $(document).ready(function() { //user name $('#username').on("keypress", function(e) { startTypingTimer($(e.target)); }); }); var typingTimeout; function startTypingTimer(input_field) { if (typingTimeout != undefined) clearTimeout(typingTimeout); typingTimeout = setTimeout( function() { …

Member Avatar for OsaMasw
0
362
Member Avatar for aisha.edris1

i have problem my login it's not running plzzz help me <?php session_start(); require("dbc.php"); if(isset($_POST['submit'])) { $username =mysql_real_escape_string( $_POST['username']); $password =mysql_real_escape_string($_POST['password']); if ($username && $password) { $connect=mysql_connect("127.0.0.1","root","") or die("couldnt connect to database"); mysql_select_db("login") or die("couldnt find database"); $query = mysql_query("SELECT * FROM `users` WHERE `username` ='$username'"); $numrows = mysql_num_rows($qurey); if($numrows …

Member Avatar for aisha.edris1
0
200
Member Avatar for Dani

I currently have SVN down pat in Zend Studio. However, I can't figure out how to upload the changed files?

Member Avatar for Dani
1
248
Member Avatar for Wailintun

HI everyone, I have a problem with post I want to do this in multi step and echo all data that I selected from drop down. here my one page full code, then multi step page code. full code <?php include('config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for Wailintun
0
188
Member Avatar for hanan-kh

hi Ineed your help to solve this problem... I have a special folder in my manager and control panel, but when I need to get back to the main page without logging out of the director but was not able to even though I try this code but also does …

Member Avatar for hanan-kh
0
122
Member Avatar for guilherme.carvalho.9250

Hello to everyone, im having trouble getting the value of a combobox in HTML to php! Frist I import data from a mysql collum into the combobox, being this the value of the combobox! I want to be able to get the selected value when I submit my form. I …

Member Avatar for broj1
0
9K
Member Avatar for Shodow

how to execute two queries if isset like this but this code wont work if (isset($_POST['Add'])){ $tror=$_POST['tror']; $name=$_POST['name']; $product=$_POST['product']; $price=$_POST['price']; $deliver=$_POST['deliver']; $return=$_POST['return']; $custody=$_POST['custody']; $cash=$_POST['cash']; $charge=$_POST['charge']; $date=$_POST['date']; mysql_query("insert into delivery (TrOr,Customers_Name,Product,Price,Deliver,xReturn,Custody,Cash,Charge,Date) values('$tror','$name','$product','$price','$deliver','$return','$custody','$cash','$charge','$date') ; UPDATE inventory set Quantity='$_POST[cquantity]' WHERE Product='$_POST[product]'"); }

Member Avatar for cereal
0
143
Member Avatar for Shodow

how to trim a text and get the data after the colon(:) and eliminate space example: 5 Gallon Qty: 10 adn then on dropbox selected the the value of quantity textbox will be the trim part **10**

Member Avatar for urtrivedi
0
114
Member Avatar for vizz

How to null and/or alter the value of **referring URL?** I'm using **Google Analytics** and other some **Analytics** services. I found they are tracking **Referral URL.** So I want to hide **Referral URL** from **Traffic Analysis Tools** (e.g.:- modify **$_SERVER["HTTP_REFERER"];** value to facebook.com on localhost) **index.php** <a href="get_referer.php"> Click Here</a> …

Member Avatar for vizz
0
2K
Member Avatar for showman13

OK, I'm lost... don't know if this is easy and I'm missing it, or it can't be done, but this is my favorite place to ask... I have a table data cell that I would like to have as the submit value (link) in a form in a php script. …

Member Avatar for showman13
0
196
Member Avatar for ebc3142

Hi, I'm developing an application which needs to check user-inputted credentials against a Mysql database running on a web server. Does anybody know how I could communicate between c++ and a PHP or Ruby on Rails page and then parse the results back to the client? Many Thanks

Member Avatar for LastMitch
0
196
Member Avatar for cceerpp

I have be given a site to manage that was developed with ZF. When I try to run it using the Zend Server I get the following errors: Fatal error: Uncaught exception 'Zend_Exception' with message 'Security check: Illegal character in filename' in C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php:303 Stack trace: #0 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php(128): Zend_Loader::_securityCheck('C:\Program …

Member Avatar for LastMitch
0
221
Member Avatar for adishardis

Hi, So far in me slowly learning webdevelopement (mostly thanks to all of you guys) I've used php to query the mysql database to calculate mean/mode/range/median values and to create arrays to visualize with highgraph. Now I've come to a point where I really need if possible, to skip the …

Member Avatar for adishardis
0
321
Member Avatar for Olyboy16

Hey guys! I am designing a chat room with php and the chat room is basically able to send messages and display messages<br/>##the chat is functioning basically##<br/> but the ooonnllyy problem is that, *i wanna display an alert box each time a new message comes in* #its a public chat …

Member Avatar for Octet
0
616
Member Avatar for ibakir

I just couldnt find a soluation for this. How to insert a one record inside one forum with muliple sql tables in one php page? Here is my code i have two insert button, i only need one for the both form <?php require_once('Connections/Omar.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function …

Member Avatar for LastMitch
0
244
Member Avatar for kyriacos1986

I have installed WAMP server and workbench when I am trying the *phpinfo();* I get: J��� 5.5.29�"���q:k->.kP�ÿ÷!�€����������2EDfW^UlCH~d�mysql_native_password�!��ÿ„#08S01Got packets out of order my php file is located in the www folder http://localhost:3307/php1.php the wamp server is online Can anyone tell me what am I doing wrong? thanks

Member Avatar for LastMitch
0
675
Member Avatar for PF2G

Hi, i'm working on a website where i have to edit products. but first i have to select a Simulator and inside that simulator i have a several products. What i want to do is, select a Simulator on a combobox and then in other combobox appears me all products …

Member Avatar for LastMitch
0
288
Member Avatar for Rasool Ahmed

Hi fellows, I have problem in php code and I had searched in days but I didn't found something good. The problem is when execute the following code and error occured: $sql = "CALL categoriesSelectByParent($CategId)"; if(!($result = $con->query($sql))) echo "Failed: (" . $con->errno . ") " . $con->error; else { …

Member Avatar for Rasool Ahmed
0
308
Member Avatar for johndohmen1963

Who can help me with the following. I have an allertbox with text in it but i want different languages for the text in the allertbox $lang = array(); $lang['ALERTBOX_A'] = 'To do this, you must first be logged in.'; onClick="alert(' <?php $lang['ALERTBOX_A']; ?>')" In this case the language is …

Member Avatar for radhakrishna.p
0
445
Member Avatar for abhi10kumar

I am Core PHP Developer and very keen to learn ZF2. But, I did not get any good site or tutorials on the web. Can anybody help or help the same ?

Member Avatar for pritaeas
0
39
Member Avatar for danielagaba

hi i am trying to, on a button click, display data retrieved from mysql database in a text area but having no success. Below is the code i used. All help given is appreciated [CODE] print "<center><TEXTAREA NAME=news ID=news COLS=70 ROWS=10>".$news."</TEXTAREA></center>"; if(isset($_POST['show2'])){ $cn = connect_db(); $cn_sql = "SELECT message from …

Member Avatar for php_dev
0
688
Member Avatar for TonyG_cyprus

I have to resurrect the article that I marked solved this am, 'cause it ain't! My code is: <?php if(isset($_POST['chest'])){ $pin=$_COOKIE['registered']; $game=$_POST['item']; foreach($game as $rep){ $link=sqlite_open('data/'.$pin.'.sqlite ',0666,$sqliteerror); sqlite_query($link,"INSERT INTO holding (item) VALUES('$rep')"); sqlite_query($link,"UPDATE players SET points = points+10"); header('location:entrance.php'); } } include('php/head.php'); ?> <div class="game"> <p><u>Chest</u></p> <p> The chest has …

Member Avatar for TonyG_cyprus
0
217
Member Avatar for Samerases

<? if(isset($_POST[b1])) { $m= new myclass(); $x=$m -> validlogin($_POST[t1],$_POST[t2]) # if ($x== true) # { $_SESSION[username]=$_POST[t1]; ?> <? include ("menu.php");?> <script type="text/javascript"> window.location = "cpanel.php"; </script> <? } else { echo "invaild login"; } } ?> } } ?>

Member Avatar for LastMitch
0
327
Member Avatar for Shodow

how to get the class value? <select name="product" onchange="Price(this)"> <option value="" disabled="disabled" selected="selected">Please select a product</option> <?php foreach ($product as $product) { ?> <option value="<?php echo $product['Product']?>" id="<?php echo $product['Price']?>"><?php echo $product['Product'] . " Qty: " . $product['Quantity']?></option> <?php } ?> </select>

Member Avatar for LastMitch
0
142
Member Avatar for rexmatthew

Basically I got 2 calendar scripts from the same source. I saw a custom script before that merged these two but Everything I tried failed. Please help. Here are the 2 scripts. Script 1: $('#date3').DatePicker({ flat: true, date: ['2008-07-28','2008-07-31'], current: '2008-07-31', calendars: 3, mode: 'range', starts: 1 }); Script 2: …

Member Avatar for rexmatthew
0
242

The End.