39,326 Topics

Member Avatar for
Member Avatar for heshanm

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 …

Member Avatar for fobos
0
133
Member Avatar for -==Zero==-

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 …

Member Avatar for -==Zero==-
0
204
Member Avatar for rrahulrroshan

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

Member Avatar for niranga
0
61
Member Avatar for grant.baker

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 …

Member Avatar for grant.baker
0
921
Member Avatar for paddysca

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 …

Member Avatar for veedeoo
0
204
Member Avatar for hubertj

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 &amp; Conviction EXIST!</a></div>"; …

Member Avatar for veedeoo
0
107
Member Avatar for Transcendent

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"> …

Member Avatar for broj1
0
131
Member Avatar for zacharysr

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 …

Member Avatar for zacharysr
0
183
Member Avatar for CarterLangley

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 …

Member Avatar for cuonic
0
154
Member Avatar for krabz01
Member Avatar for cuonic
0
84
Member Avatar for Transcendent

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 …

Member Avatar for almostbob
0
188
Member Avatar for ~ Jenan

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 …

Member Avatar for pritaeas
0
51
Member Avatar for hamedx

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 …

Member Avatar for Robert1995
0
97
Member Avatar for ashiiiish
Member Avatar for ashiiiish
0
87
Member Avatar for ashiiiish

How to disable the like link after it has been clicked ??? My Code echo "<a href=like.php?id=$pid>like($plike)</a>";

Member Avatar for ashiiiish
0
156
Member Avatar for Aardwolf

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 …

Member Avatar for almostbob
0
83
Member Avatar for rathishcr89

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"); …

Member Avatar for pritaeas
0
65
Member Avatar for Mariel Pineda

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']; …

Member Avatar for broj1
0
102
Member Avatar for Chuckleluck

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 …

Member Avatar for cereal
0
223
Member Avatar for DarkMonarch

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 …

Member Avatar for DarkMonarch
0
96
Member Avatar for danielsikes

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 …

Member Avatar for mehfooz
0
178
Member Avatar for roscoNI

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 …

0
125
Member Avatar for jacob21

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 …

Member Avatar for veedeoo
0
226
Member Avatar for mbarandao

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 …

Member Avatar for mbarandao
0
175
Member Avatar for vizz

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` …

Member Avatar for vizz
0
293
Member Avatar for pulse0

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 …

Member Avatar for pulse0
0
105
Member Avatar for BenzZz

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 …

Member Avatar for broj1
0
141
Member Avatar for harintfs

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.

Member Avatar for harintfs
0
180
Member Avatar for gotboots

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 …

Member Avatar for gotboots
0
651
Member Avatar for gotboots

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 …

Member Avatar for gotboots
0
205

The End.