39,326 Topics
| |
I want to submit data of my student registration form to the database. If an admission number already exists, a message should be displayed like this. "**Admission number2012/1..This student has been already entered to the system**." I have created the below coding which fulfill the above task. But i want … | |
Hello Dani Members I Have Question About My Code <?php $id = intval($_GET["id"]); $result = mysql_query("SELECT * FROM peoples ORDER BY RAND() LIMIT 1"); while($row = mysql_fetch_array($result)) { echo "$row[name]<br/> <a href='members.php?id=$row[id]'><img class='img_shadow' src='$row[image]' width='198' height='250' alt='$row[name]' /></a>"; } ?> This Code Get Me Image Of ONe Member And His … | |
Hi , I have named my databases as Week1Jan2012 for 1st week of January , (1-7 Jan 2012) Is there any way to map Week1Jan2012 to 1-7 Jan2012 ,So that I can make a drop down to select this mapped once so that it selects from Week1Jan2012 database. Thanks | |
I have a page that I wrote to upload a text file to a mysql database. The text file has thousands of lines and each line is a separate database row. An identifier at the beginning of each line tells me which table to insert the line into in the … | |
Hi, I have developed a website with a user profile page with eye_colour , hair_colour , size etc. Each item has a set range of values entered through a drop down list. I wish to allow the users to search these set range’s to find their ideal match. To this … | |
hi guys...i have this prooblem which i like to acho a window pop up...but i cannot do so...the link does not seem to work and i cannot find any error in it. I wonder if anyone can find any error here: $ancpopup = "<div id=\"anctrigger\"><a href=\"#\" onclick=\"window.open('m_ancpopup.php?page='$eid','ancpopup','width=670px,height=470px,left=0px,top=100px,screenX=0,screenY=100')\">Accident & Conviction EXIST!</a></div>"; … | |
After the form is submit, it will not echo $genderRadio Any ideas? It can select the gender but I can't display in the php file `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> Assignment 2</title> </head> <body> <h1>Please enter your information</h1> <form method= "post" action = "output_hw2.php"> … | |
I am making a online social networking site, and have messging section, i want it to make it show only 1 messge from each user, So if you have a message from for ex Username "bob" id "32" and you have 5 messages from him Then you have 20 messages … | |
Hi all, I have a login system for the site. My problem is I am very new to php and battling to understand this. What I want to do is only accept logins from people that have emails from a certain domain. Here is the code I have at the … | |
I have a code and I want to validate it before the submitting it. When I say before submitting it I mean that the form does not submit the information filled till everything is filled correctly. I was thinking of using the if statement but I believe if I do … | |
hello can you help me please .. the idea when press the row of table it go directly to edit page and change the content , and finished this save the change to second table. hint : the content of the first table are retrieved from database , and when … | |
Hi, after reading the good topics and contents on disaster to resolve the problems in recent years finally its my chance to signup :) and be the one to ask: im working on a cms (not exactly) and stuck on menus and permissions. im wondering is there anyway the cms … | |
| |
How to disable the like link after it has been clicked ??? My Code echo "<a href=like.php?id=$pid>like($plike)</a>"; | |
| How does this work? <?php echo '<script type="text/javascript"> var str='.include("engine.php").'; var str_esc=escape(str); document.write(str_esc) </script>'; ?> What this script should do in my point of view outcome is to escape the whole page so the source page is not viewing the html and everything, rather then the escaped characters. this won't … |
hi am new for php.. am trying a download a csv file.. i need to create a new file after every 50 records.. 0.062201000014461.0002771700. 0.062201000014480.0000000000. 0.062201000014723.0005133400. 0.062201000015828.0005848000. 0.062201000015927.0003018200. this is the sample output. i need to split the output file so the each file should contain 50 records. <?php include("conn.inc"); … | |
When I press the save button it wont update the row if i make some changes. whats wrong with my code can you please help mee. What is lacking or what do i need to put . Thanks for who will answer I will really appreciate it. include("connect.php"); $code =$_GET['Code']; … | |
Hello, Please excuse me if this isn't the correct place to post this topic. I have a friend that knows PHP, and I know C++. We want to make a PC game together. I would handle making the core game, and he would use PHP to create a server, allow … | |
yup still a jr, at least for the next 6 months, than ill be a medium jr LOL... alright, seriously, i need this thing done, so if you guys have any hints, pointers, would be appreciated. it's probly not complicated for you guys, but i'm trying to write a language … | |
Hi. I am trying to perform a "process of elimination" type of search using MySql. I have a table with a lot of values that people could search for- and currently if they search for 1 value it works great. But if they search for lets say "value1 value2" it … | |
I am trying to create a website where a user can enter a start location and an end location into textbox's and the distance between the two location shall be output into another textbox (This is done using a google API). On my webpage I have set up several instances … | |
Hi, I am working on video player module. I am trying to add dynamic video links & description.Its working fine. the problem is when i am playing a video,video list become readonly. Need suggestion <!doctype html> <html> <head> <title>Video Player Application</title> <link rel="shortcut icon" href="/media/favicon.png"> <!-- standalone page styling. can … | |
Hello, I have a strange occurence when trying to execute the following sql: if($select_232 == 'Member Credit' && $paymenttype == 'Visa' || $paymenttype == 'Cash' || $paymenttype == 'Check' || $paymenttype == 'Master Card' || $paymenttype == 'Discover' || $paymenttype == 'Amex' || $paymenttype == 'Other') { $result = mysql_query("UPDATE … | |
CREATE TABLE IF NOT EXISTS `users` ( `ID` mediumint(9) NOT NULL AUTO_INCREMENT, `username` varchar(60) DEFAULT NULL, `password` varchar(60) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; CREATE TABLE IF NOT EXISTS `chatmessage` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `from` varchar(250) NOT NULL, `to` varchar(250) NOT NULL, `message` … | |
I want the user to type in his a user name and depending if it is taken on not i want the code to tell if it is available or not without submitting. You guys must have noticed how google populates the search results without even submitting your query, i … | |
Hi, As the title states, within my files require_once is not working as intended. I have a file where a user enters booking details and at the top it requires once the file to create the database and insert initial data into it. The problem is it seems to be … | |
| Dear I would like to set session expire time to 3hrs, Which one is best ? `ini_set("session.cookie_lifetime","10800");` or `session_set_cookie_params(3600 * 3);` Or can I use both? And one more, Is it compulsary to place every page b4 where ever session_start() Thanks. Pls help me. |
Hi all, I was wondering if it is a common thing to do when requesting variables to have the request names in an array and use a for loop to request the submitted variables. (will it hold the values if its a for loop?) What i have at present is … | |
Hi there, I have recently been looking into encryption, for MySQL and php, to figure out someway to encrypt the information in the database, or more to the point before it goes in, or decrypted when it comes out. What I'd like to happen is for the info submitted from … |
The End.