39,320 Topics
| |
Hi, I need help to insert multiple checkbox data into MySQL using PHP. I'm new here, any code I can refer? I have a database name called subject_name and there is only 2 column in the table which is id and subject. I would like to insert multiple checkbox data … | |
Hi all, I am completely new to PHP and MySQL, but I need to learn it for a project my friends and I are working on. So, I found a tutorial on how to create a user registration and log in system using PHP and MySql. I am having an … | |
If i assign a value to a variable like this in PHP: [CODE] $var1 = 123; [/CODE] and then assign another value to another variable like this: [CODE] $var2 = $var1; [/CODE] Are those two variables pointing to the same value in the memory (like in Java if I'm not … | |
Hi there, just a quick one (I think), a little stock on displaying PHP results in a div rather than a table. I seem to be managing to display one of the results ok but the rest are not showing, I want them all to display in their own divs. … | |
Basically i'm new to web design and I have the basics of html only. I am looking to add a feed(I think) onto my website that allows a user to input text and it is then displayed in a list above the person befores text. Am I aiming to high … | |
[CODE]<?php echo $error_msg=''; if(isset($_POST['submit'])) { $LoginId=$_POST['LoginId']; $Password1=$_POST['Password1']; $Password2=$_POST['Password2']; $Name=$_POST['Name']; $Age=$_POST['Age']; $BloodGroup=$_POST['BloodGroup']; $Sex=$_POST['Sex']; $Qualification=$_POST['Qualification']; $Email=$_POST['Email']; $Address=$_POST['Address']; $AboutYourself=$_POST['AboutYourself']; $countCheck=count($_POST['checkbox']); echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Password1)){echo 'Please enter Password';} elseif(empty($Password2)){echo 'Please confirm Password';} elseif($Password1!==$Password2){echo 'Password didn't match';} elseif(empty($Name)){echo 'Please enter Name';} elseif(empty($Age)){echo 'Please enter Age';} elseif(empty($Sex)){echo 'Please enter Sex';} … | |
hi.... whenever i use the header in php this error is occure. whats the solution of this error Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\simple.php:11) | |
Hi, I am kind of new to PHP, learning through books and online resources but I am having difficulties with what seems like an easy problem. [CODE]if($pageid == 1){ echo ""; } else { [COLOR="Green"]echo '<form action="delete_ad.php" method="post">'; echo '<input name="deleteid" type="text" value="" id="deleteid" hspace="10"/>'; echo '<input name="delete" type="submit" value="Delete … | |
Morning. I'm new to all this forum malarque, but lets give it a stab! I need to prove some PHP code works and does what it should for college, but the server doesn't run PHP apparently. I thought I could somehow get the website to relay what the user has … | |
Hi, I want to re-use already estanbished DB connection but I don't know know how to do it. Please help me to modify my code below. Thanks in advance [CODE]function connectDB(){ $host = "localhost"; $uid = "root"; $psw = ""; $db = "mydb"; $hostc = @mysql_connect($host, $uid, $psw); if($hostc){ $dbc … | |
Hi, I am stuck in a simple problem due to checkbox The problem is that in the value attribute of checkbox I am placing a value which I want to retrieve [CODE]echo "<td><input type='checkbox' value='".$row['docid']."' name='asgn[]'>Assign</td>";[/CODE] after this I am using foreach() In the output page i get a warning … | |
Hi, I am pretty new to HTML and brand new to PHP. I am trying to put together a simple internal website on a Linux box to keep track of some inventory. I would like to be able to click a link in the sidebar and have it display that … | |
Hello All, I have went through my code and checked for any whitespace or blank spaces and also missing closing marks and etc. But the error message clearly states that it is initiated at line 8 of my php code. Is it my echo in the code? Can someone please … | |
I wanted to send an automated email 24hrs before an ppointment is made, and here is the code i wrote but it is first checking the date so not working correctly, please help $i=0; while($i<=$num) { $row=mysql_fetch_assoc($select); $ID=$row['ID']; $d=$row['date']; $date=date("Y-m-d"); $rem=$row['reminder']; $email=$row['email']; if(($rem=='no')&&($d==$date)) { if($row['time']<='24:00:00') { $headers = "From: [email]johndoe@yahoo.com[/email]"; … | |
Hello. I am kind of new to PHP and mysql, and I am wondering on how I would go about coding up a system that would allow me to save multiple values to one row in a mysql database, and later read each separately. I am coding up a mac … | |
Hello all, I have a question that is more based off of a unique occurrence (unique for me having no real prior php knowledge). I am trying to create a webpage where a user inputs a password, and a php reads the user inputed key and then compares it to … | |
Ok I have created a simple form in order to build new product pages using php. I wanted to be able to have a simple form that a data entry person here could input text and such areas as page titles, meta content, brand names, and other text on the … | |
I'm trying to create an object derived from the MySQLi object to easier handle database connections for my application. The thing is that I do not know how I shall be able to initalize the connection and keep it contained in the object. Let me illustrate what I mean: [CODE] … | |
[CODE]echo"<td bgcolor='#FFFFFF'><a href=\"update.php?emailid=".$rows['emailid']."\"><img src='library/edit1.gif' border='0'></td></tr>";[/CODE] I want to change the image 'edit1.gif' to 'edit1-o.gif' onmouseover and back to edit1.gif onmouseout event.how to do this while staying in these php quotes? TIA | |
I found a php mail form online that echos a text success message, but need to redirect it to a new page instead. I love all the functions in the code except for the text echo. I tried <input type="hidden" name="next-url" value="test.com"> and <? header(Location: file.php); ?> but the form … | |
Hi friends, I got a pretty big problem. I got a big directory full of images, like 2000 of them (and rapidly rising). For now, the front-end works perfectly with it, but to avoid getting to the point of 200.000 and total breakdown of it all, i decided to put … | |
Hi, I posted this in the Computer science area but am assuming not many people use that place. I want to create a mini gocompare site, what sought of thing would i need to do to create something like this? | |
OK, so I've read that it is possible to use session variables across multiple sub-domains and domains by placing the following in the .htaccess file on each of the prospective domains: php_value session.gc_maxlifetime 14400 php_value session.cookie_domain ".domain_name.com" where domain_name.com is the domain where the session was initiated. I know this … | |
Good Morning. I'm hoping someone can tell me why this isn't working, or maybe if it isn't supposed to work. I've been reading on various websites that you can use variables within CSS if you don't save the style sheet as a .css, but rather as a .php and just … | |
| Hello! Yes, well, I am started to make a upload fucntion. question number one: I've made a if statement that should recognize what file extension the file has, if it has a .png extension it would be inserted into the picture database, and if it is a .txt file it … |
hey people seriously , this code is going to kill me i wrote it yesterday and upto now it cant work i wrote it more than one time and i review it more than 10 times but i didnt found the error so this is my code and bellow is … | |
I'm pulling a date value (not a datetime value) from a MySQL database, but I need to subtract 30 days from that date, and not sure how to do it. I found a sample using mktime() to break up the day-month-year and subtracting 30 days from the 'day' component, but … | |
[CODE]<tr> <td colspan="2" align="center"> <input type="button" class="btn" value="New" name="New" onClick="window.location.href='new2.php'" onMouseOver="hov(this,'btn btnhov')" onMouseOut="hov(this,'btn')" align="absmiddle"> <input type="submit" value="Delete" name="delete" class="btn" onMouseOver="hov(this,'btn btnhov')" onMouseOut="hov(this,'btn')" ></td> </tr>[/CODE] I am unable to make thses two buttons centred .... any help?? TIA | |
Im dying here please help me how to display the image | |
What is the wrong with this guys? Why is it that when i view the month of November 2010 it also view the month of 2009?Can anyone help me? [code]<?php include("db.php"); $query = mysql_query("SELECT distinct YEAR(local_date) as year FROM tbl_localnews order by local_date desc"); while($row = mysql_fetch_array($query)) { //$row = … |
The End.