39,326 Topics
| |
I want to clear the session in a project. If i have opened an another project in the same browser, that session also cleared. How to clear the session without affecting the other projects? | |
hi gurus, had tried to install apache and php. apache seems to run and work fine and no error displayed during startup. but when i tried to do some testing for the php file. like: http://localhost/test.php the whole php code is displayed not the expected output. i had already load … | |
Please can anyone in the house take me PHP ( function aspect of it ) | |
how do i create a trigger to display the columns of the record after it is inserted into the table. how do integrate php and mysql to do so? | |
Ok, so I finally was able to convert my framework to the PSR-0 standards, but now I am getting errors in the sample application that I have not been getting before. I am not sure why, so I need a fresh pair of eyes. Any help is greatly appreciated. The … | |
Hi all, I have tried to search the text/string in a file(doc,pdf,ppt) and needs to get page numbers for the particular string is exist. Did anyone know the way to do it.(ex:storestext in db & search or ?). (or) Anyone know how to read a file(doc,pdf,ppt) page by page. Waiting … | |
I want to make a local application connected to the web server using vb.net also the database in webserver is connected to a PHP website, how can I decode a password(encrypted using bcrypt of PHP) using vb.net and vice versa | |
Hi, As I know the barcode scanner is just like a keyboard. I want the barcode scanner scan the user ID before it enter to the system. May I know how to hide the textbox field but still able to handle the input from barcode scanner? | |
i need some one to help me with the php codes to extract user data/informatio and then edit /update the information. using php and mysql. | |
hello again, okay so what im tring to do is have text field that when you input text and submit , it creates new file with text value as the name. as this shows this inputs the text into the file and randomly generates a # for the name of … | |
$connection = mysql_connect($db_host, $db_user, $db_password) or die("error with connection"); mysql_select_db($db_name, $connection); $file=fopen("daily_user_summary.txt","r"); while (!feof($file_handle) ) { $line_of_text = fgets($file); $parts = explode(' ', $line_of_text); print $parts[0]. $parts[1]. $parts[2] . $parts[3]. "<BR>"; $query = ("SELECT name, newcredit, sum(total), team FROM tb1 WHERE NAME = '$parts[0]' and TEAM = '$parts[3]'"); $row = … | |
in index.php i have 3 urls <li><a href="categories.php">Categories</a></li> <li><a href="Register.php">Register</a></li> <li><a href="login.php">Login</a></li> how do i change the text when i login, the "Register" will change into "Control Panel" and "Login" will become "Logout"? when i click logout, the control panel & logout will change back to register & login | |
Hi I am having trouble with this code: <?php //init.inc.php file session_start(); mysql_connect('mysql.host.com', 'username', 'password'); mysql_select_db('DB name'); include('include'); // Get users from table function fetch_users() { $result = mysql_query('SELECT 'user_id' AS 'id', 'user_username' AS 'username' FROM profile'); // Error on this line: Parse error: syntax error, unexpected T_STRING on line … | |
Hi there. I'm looking to create a textbased browser game based on my old favorite anime. I figured out the basic structure of the data, but i've got one problem. is there a way to set the data up where a single user can have several of one item, each … | |
Fatal error: Class 'XSLTProcessor' not found in C:\xampp\htdocs\easybasket\index.php on line 275 ` <?php /*########################################################################### Easybasket RESTful API Nigel Alderton 21st May 2011 www.easybasket.co.uk ############################################################################# This file exposes a RESTful HTTP interface to the client. It supports the following functionality; HTTP Method: GET Example Response ================= =============== ================================================================== / The Welcome … | |
Hello all, I am currently trying to insert a 0 value into a single field. The value is originally set to 1 and I would like to set it to its default value of 0. How would I go about doing that? The code I have works for other things, … | |
Hey guys, I am having some trouble with json_decode... I used json_encode to encode a string that is the following: {"id":"121","firm":"DSD","address":"Test","address2":"Test","city":"Test","region":"Test","postcode":"Test","countryid":"13","firmtype":"Marketing","phone":"01545454587","fax":"","email":"dan@test.com","url":"http://www.test.com","mainuser":"Dan","contacts":"dan@test.com","info":"","numstaff":"15","numoffices":"1","disc":"","cat":"{"35":"1"}"} And I am using this php code to try and get it back into an array... however its just not working... the print_r(); doesnt echo anything out at all... … | |
Hi, I have a website, where I want all pages to be secure using https:// , but I want a folder to be ignored so the files in that folder will be using regular http:// . Eg, http://wwww.example/com/admin but the rest will be https://www.example/com/page1 , https://www.example.com/page2 etc. I have htaccess … | |
I am trying to connect and fetch messages of my hosting's email address using imap_open(), but its throwing errors. $server = '{mail.booksnearby.in:143/imap/ssl/novalidate-cert}INBOX'; $imap_connection = imap_open($server, $login, $password); $mailboxinfo = imap_mailboxmsginfo($imap_connection); $messageCount = $mailboxinfo->Nmsgs; The above throws this error: Array ( [0] => Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. If … | |
Hello I want to have 4 files index.php go1.php go2.php admin.php in admin.php I want a switch command to switch between go1.php and go2.php for example in admin.php there must be two buttons go1 and go2 when I click on go1 index.php will behave as go1.php and when I click … | |
In-spite of going through all the resources about rewriting URL, I am not able to successfully apply the same to my site. The URl is www.mysite.com/Client/?clientname=name I want it to be www.mysite.com/Client/name Client is another directory inside the root directory. Currently I have RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} Client/ [NC] … | |
Hello all, I am having problems with this code. Whenever I attempt to test the login system with a valid username and password, it says this: You have successfully logged in! Warning: Cannot modify header information - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/ucairwebsite/facultykadrmas/kadrmaspages/login_1/login_LDDB.php:1) in /Applications/XAMPP/xamppfiles/htdocs/ucairwebsite/facultykadrmas/kadrmaspages/login_1/login_LDDB.php on line 213 … | |
<?php $first = $_POST['first']; $last = $_POST['last']; $email = $_POST['email']; $phone = $_POST['phone']; $Submit = $_POST['Submit']; $first = strtolower($first); $last = strtolower($last); $first=ucfirst($first); $last=ucfirst($last); $general = " <br> Please try again ! "; $no_first = " your first name, please... "; $no_last = " your last name, please..... "; $no_phone … | |
Hello, I Need a TCP / IP Port Listener on my centos VPS Hosting to receive gps tracker signals on ports and store in mysql db. For further processing of received stored data, we are working on a php mysql application, but to listen to port signals, which programming language … | |
whenever i put this code theyre will be an Error stating that there is unexpected ''"" Please help <input type="button" value="Add to Cart" onclick="addtocart(<?=$row['serial']?>)" /> | |
hey does anyone here knows how to change excel page orientation to portrait? i get landscape as default <?php header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=transactions.xls"); header("Pragma: no-cache"); header("Expires: 0"); ?> | |
im working on a single player game in java and want to add a high scores table. what im thinking is when a player finishes a session my script will contact my server like this "mywebsite.com/sethighscore.php?secretkey=23234234&user=bob&itemscollected=45&timeplayed=1hour" <-- this would add a new user to database i have very little knowledge … |
The End.