39,323 Topics
| |
i set cookies to expire at session end by just leaving time out. this works fine if i close the entire browser. but if i just close the tab w my script on it it doesn't expire cookies. I really would like for them to expire even in tabbed browser. … | |
Hello. I wanna integrate a site similar to [URL="http://www.superknowa.com"]http://www.superknowa.com[/URL]. In this site when you got Services menu, there they have different menu in the left side. Again when u goto Products menu they have a different menu in the left. In the other pages no menu will be shown. How … | |
Hello Everyone, Hope you're having a great weekend, especially in the Chicago land area where it's usually pretty chilly this time of the year and instead it's in the mid eighties. I'm looking to make an unsubscribe page. I don't know if everything can be done automatically or not and … | |
Hi All, I need to change the default values of checkboxes to 1 for checked and 0 for unchecked instead of 0 for checked and NULL for unchecked. If this is possible and how is it done. Here is the script that I am using: THE UPDATE FORM [CODE=php] <?php … | |
I cant decide if it is appropriate to use user defined functions for every single action in a page..or it somehow may slow the work? I can alternatively make different php files instead of functions,,and they will do the same thing depending on values of some variables, but i would … | |
Hi All, I have a problem in getting this update form to work. The query to call the record works fine and when clicking submit it redirects correctly and echo's (record updated) but the database is not updated. When i change the value variables in the update script it correctlu … | |
I am beginner in PHP, I was trying to display the poems which are stored in the database(mysql) to the website with php code, the problem is that the poem is showing as a paragraph....how can I display the poems the way I wanted, like line by line | |
How can i apply Role based Access control in php .......... | |
Hello, I am using cpanel standard crontab set-up, I have the path to the file correct but the path leads to a password protected directory ie: *php /home/example/public_html/admin/script.php* admin is password protected, how would I allow the crontab access to the script? Thanks in advance. | |
Hi, I am using xampp in xampp->tmp->[COLOR="Red"]sess_jp7bfpqaritm9ta8h3b5n40df1[/COLOR] In this file some session data,html and mysql query are written. Can any one please explain me the description of this types of file. any encrypted data format is used to store session. | |
Hi, I'm very new to Javascript and AJAX so I'm using a script that I found, and I need it to send a PHP variable from the global variable (in the address bar where it says &post=94 for example) along with the other data that the script sends to a … | |
Hi all, I wish to present a user with a text field that can take any of these inputs: The URL such as [url]http://www.imdb.com/title/tt0892318/[/url] or a number which will be the title code such as tt0892318 and a number that will be prefixed with tt and be interpreted as the … | |
hello frnds, I have a code snippet where auto suggest dropdown will come in basis of text box value entered by the user. [CODE] <?php $response=""; $i=0; $con=mysql_connect("localhost","root","root"); mysql_select_db("autosuggest",$con)or die(mysql_error()); print "<script>var [COLOR="Red"]jarray[/COLOR] = Array();</script>"; $q=mysql_query("select * from suggestion"); $n=mysql_num_rows($q); while($r=mysql_fetch_array($q)) { $response=$r['suggest']; print "<script> j[COLOR="Red"]array[/COLOR][".$i."]='".$response."'</script>"; $i++; } ?>[/CODE] this … | |
Hi, I am using ckeditor. when i work in localhost (in my pc) its working fine in formating and image upload.but when i work with it at server it formating and image upload is not working. for ex. - if i formate font with some style and color and size … | |
Hello, I would like to allow the author of a post to edit it after he/she posts. I currently have this: [CODE]<?php get_currentuserinfo(); global $user_ID; $author_id=$post->post_author; ?> <?php if ($user_ID == $author_id) { include 'post-upd.php'; } else { echo "You are not the post author."; } ?>[/CODE] I tested this … | |
if ( $_GET['2,03'] == "on") I want to use 2.03 instead of 2,03 is this possible? here is the link of the page as you can see the parameter is 2%2C03 [url]http://localhost:8080/untitled-3.php?type=Card&2%2C03=on&button=Next++%3E[/url] | |
Hi! I have websitepanel installed on a Windows 2008 Server and i want to use the websitepanel API. What im trying to do is to add a user to websitepanel with php/nusoap. Im not so steady when it comes to soap. So i was wondering if someone in this beautiful … | |
Hi, I am trying to do the following: produce an interactive web application that will scrape the contents of a movie web page and extract the movie title, year of release, User rating, Director, runtime and the first three cast members. This is the typical data in red that I … | |
I want to retrieve the latest autoincremented id of the record which i have inserted, so that i can use it update query. I used last_insert_id() but it seems to be not working.Please help as i m still learning PHP here's the code.. $insert = "INSERT INTO `farmlogin` (`uid`, `name`, … | |
Hello everybody, Im an IT STUDENT, I was assigned to develop a project for our college Library with more functionalities and facilities. Who roles: Administrator Librarian Lecturers Students from 1st year to 4th year Criteria: Store Book Information Store Users Information Store information on lending books Achieve information on returned … | |
Hey, guys. I have this code here, and for some reason, it won't update the data! At all! When you press 'submit', it just reloads the data that was already on the DB table. It's really confusing!!! [CODE] <? include_once ("../auth.php"); include_once ("../authconfig.php"); include_once ("../check.php"); $connection = mysql_connect($dbhost, $dbusername, $dbpass); … | |
My uploader allows the following file formats: jpg pdf gif png I tested that if someone was to name a file configure.php.jpg, my uploader allows it to upload I want to do a check to see if the user has 2 extensions, and if so it will not allow them … | |
Here is what i have a problem with. I need to display variable inside of an html table if the variable's are not empty from a form on a previous page. When the form is fully filled out it isn't displaying any of the table at all. Please help. [code] … | |
Hello, I don't have any errors it just not showing a thing if i leave only the html code it works but in php it wont so if you can help me would be cool, Thanks =] [CODE]<?php $a = trim($_REQUEST['a']); $student = trim($_GET['student']); if($a == 'edit' and !empty($id)) { … | |
Hi All, Im getting and error from the following mysql statement when running it in the browser. Any help would be appreciated. "you have an error in your sql syntax near -nextq accounts" on line 1" this is the code [code] <?php $result = mysql_query("SELECT DISTINCT(source) FROM accounts WHERE source … | |
okay so i got a little script that from button links load different information within the same page what im trying to achieve is pulling php coding to the same file but each time i try it throws up errors below is the code that is giving me a problem … | |
Hi, I have some PHP code in a project which if a user is logged in the in will display the username and other options and if the user is a guest it wont. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Home</title> </head> <body> <!-- HTML … | |
I a table that I have added the function to be able to sort, it works, but it is coming up with an errors: Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 25 Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 28 Notice: Undefined index: sort in C:\wamp\www\test … | |
| Hello, I am worcking on a script that do that i can upload files to my site and set size,filename, etc into my database but this isnt worcking, can someone help me?:) [CODE]<?php include "connect_profile.php"; $obj = new physic_profile(); // Setup our connection vars $obj->host = '*********'; $obj->username = 'sjo*******'; … |
The End.