39,323 Topics
| |
Hey guys, soo i'm new to PHP & I'm doing a course in school. I really really really need help. I have to get three input's;start temperature, stop temperature, & how much the users wants to increment it. then validate it for these... that the user entered numbers in each … | |
I want to sent email to all enews subcribers but how can i send mail more than one person but when i used this coding its working not properly.it is send 3 times mails to one person plz help me[CODE] <?php // Connects to your Database include("connection.php"); ?> <link href="../log.css" … | |
Hello, folks. I got another problem. Basically, I wanna check if someone is old enough to watch a movie. I got 2 sessions - one for the certificate( 12, 15, 18) and 1 for the year of birth. My question is can i use somtehing similiar to this or? Cause … | |
Hello, ths is one thing that is really shaking my heade O_o, I have got a Html and Javascript code, that contains about 1000 lines and I need to put it to php variable. Sure I was thinking about the [B]EOT[/B] method, But thare is one problem with it, if … | |
I have 3 arrays with 3 items in each. I want to divided them into groups of 3 radio buttons and i want to select one radio button, hit a submit button and have it post on the same page and then move to the next set and have it … | |
<?php echo "<html> <head><title>comment box</title></head> <body> <hr width=1000>"; require('connect.php'); if(isset($_POST['submit'])) { $name = $_POST['name']; $comment = $_POST['comment']; echo "<font color=white><center>"; $result= mysql_query(" INSERT INTO COMMENT (name,comment) VALUES ('$name','$comment')") or die(mysql_error()); while($row = mysql_fetch_array($result)) { echo "<tr> <th>ID</th> <th>Name</th> <th>Comment</th></tr>"; echo "<tr>"; echo '<td>' . $row['name'] . '</td>'; echo '<td>' . … | |
Hey guys, i need to know if i can find a FREE excel like datagrid that will allow inline editing and has drop down boxes for some fields. Also filed may be able to collect their default data from a session variable. I have tried this: [url]http://azgtech.wordpress.com/2010/08/01/jqgrid-php-datagrid/[/url] Thanks, Marais | |
Hi, I am trying to give an avatar to my visitors based on their sex and their profile pic.i have written a code and am getting the desired result, but not happy with the coding part, hence seeking help on this. My member database contains, profilepicture field where member can … | |
Good Day, I'm trying to changed the background color of a field based on the results of the field. My script runs fine and provides the data correctly. I query my database and it gives me a result of $priority. $priority can be High, Medium, or Low. What I want … | |
Normally when I do file uploads I save the files into the website's file system. However in this particular situation I am required to save the PDF files as a longblob into a table in our mysql database. The data field is set as a longblob, and the table is … | |
Can anyone see why my variable $unit_price isn't updating (in fact it isn't even being applied to the session variable) in this code (it must be something simple but I can't see it and is driving me mad). I have tested the posted data and it is being sent through … | |
Hi I would like to know if I can use freeswitch with PHP for voice chat. I have downloaded the freeswitch software But I am not getting how to configure php with freeswitch where to use this in freeswitch can voice chat application be created using php. how freeswitch is … | |
i have this recommendation that, the teacher can add continuously how can i do this? in which the teacher can add grade and on single button it can be all saved in one database [url]http://www.4shared.com/photo/TjiwnmxX/aaa.html?refurl=d1forum[/url] [CODE] <?php if(isset($_POST['save'])) { $g_year['acad_id']; $fg=$_POST['fg']; $sg=$_POST['sg']; $tg=$_POST['tg']; $forg=$_POST['forg']; for($i=0;$i<count($fg) && $i<count($sg) && $i<count($tg) && … | |
Guys I need to print tne content of my div named "content" my code will only work if their is only one div named "content" but in my case I have a lot of div with same ID because I iterated it along with the codes from mysql, can anybody … | |
Hello :) I have a system to add friends, i would like to make it as i want, but something does not deal... This is a SQL now: [code]CREATE TABLE `friends` ( `id` int(11) NOT NULL AUTO_INCREMENT, `f_id` int(11) NOT NULL, `us_id` int(11) NOT NULL, `active` enum('0','1') NOT NULL DEFAULT … | |
Hi I have a form page (form.php) which calls a seperate PHP page to insert a new record (insert.php). Insert.php then redirects to a listing page (list.php) using [CODE]header('Location: list.php?z='.$access);[/CODE] ($access is the user id and priveledge level and is passed through all pages as our company does not allow … | |
I am trying to create a url bookmark script for my own use. Here's the code. [CODE]<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("delicious") or die(mysql_error()); $data = mysql_query("SELECT * FROM stacks") or die(mysql_error()); if(mysql_num_rows($data)) { echo '<table cellpadding="0" cellspacing="0" class="db-table">'; echo '<tr><th>No</th><th>Name</th><th>URL</th></tr>'; while($row2 = mysql_fetch_row($data)) { echo '<tr>'; foreach($row2 as … | |
Hi friends! i have a drop down combo box which holds names of persons with php mysql order by asc query like a's name put in 1st and after b's and c's and in last it shows z's name now i want that if it will show tahir name in … | |
Guys I am having a problem on how can I display array of records using mysql_num_rows, I cant use mysql_fetch_array because the format like this [CODE]$row['MR_no'];[/CODE] that encloses the name of the field inside brackets in my SQL codes this is my codes: [CODE]<?php $username = $_SESSION['username']; $query = "select … | |
i tried refreshing the page using header but it didnt work.. header .. my "the 9th line from the bottom... thanks in anticipation of your replies <form name="page" method="POST" action="page.php"> <fieldset> <label for="name" id="name_label">Name</label> <br /> <input type="text" name="name" id="name" size="30" value="" class="text-input" /> <label class="error" for="name" id="name_error">This field is … | |
Hello. I'm currently coding a customer/product/etc registration site and there's this problem I just kinda can't figure out even after searching around on the web. The DB consists of 8 tables User (for login handling) Customer (for customer registration) Product (for product registration) ProductCategory (for product category registration) Cleaning (for … | |
Hi all I am trying to show a comment box under each post, i have tried [code]<?php get_template_part( 'content', 'single' ); ?> <?php comments_template( '', true ); ?> [/code] but the comment box is still invisible | |
I have a login form in my project and i want to know the code how to show the other forms only when the login is successful. The code below is the login code. [CODE] <?php extract($_POST); $uname=$_POST['user']; $pwd=$_POST['password']; $con=mysql_connect('localhost','root','') or die('could not connect:'.mysql_error()); mysql_select_db("priya",$con); $result=mysql_query("select * from user where … | |
I am having trouble getting this to work. I am getting "Parse error: syntax error, unexpected T_STRING in public_html/send.php on line 22. Line 22 is the mail statement I highlighted red. If anyone can help me out I would be very grateful. <?php $to='dgordon1966@gmail.com'; $subject='Registration Confirmation'; $number=$_POST['text1']; $name=$_POST['text2']; $body= .$name. … | |
please help me to this issue. its driving me nuts for an hour :( Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hermes/bosweb/web033/b336/ipg.asiahomecom/tile/tilesCollection.php on line 16 my line 16 code: while($row=mysql_fetch_array($a)){ my code.. --------------------tileVerification.php---------------------- <?php session_start(); if (!$_SESSION['user']){ header('location: tiles.php'); exit(); } ?> ---------------------connectionIn.php------------------------- $con = … | |
good day! i'm an old member of this forum but unfortunately i forgot both my email and pw. >< so i created another account. :) with all due respect is there somebody who can help me with this code. i've created a menu link from the database [CODE] <?php $con … | |
Basically I need some serious help on this one, last one. I am really confused. How can I get my yearofbirth, month of birth and day of birth from my login page, with only having Username/Password as login?? Just basically, creating a [CODE] $_SESSION = ['age'] = The age of … | |
Hi Guys, I'm comparing to tables, one profiletable and one presenttable, I want to compare two dates upon entering, the date from a textbox, I want to validate all data from profiletable and on the presenttable, if left on the profiletable without the tag of the date that I input, … | |
I am not redirecting to the respective page.What might be the reason?????Can i get my code correctly.Any help would be appreciated <form action="rollno.php" method="GET"> <table> <tr> <td>username</td> <td><input type="text" id="username" name="username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; } ?>"><span style="color:red"> <?php if(isset($_GET['username'])&&($_GET['username']=="") ) echo "please enter username" ;?></span></td> </tr> <tr> … | |
guys please help, why I get this error from my codes: Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\bernardino_ed\Bloodchem.php on line 125 [ICODE] $username = $_SESSION['username']; // this is for the paganation of records $per_page = 2; $pages_query = mysql_query("select * from tblpatient_info i, tbllab_bloodchem b, tbldoctor_info d, tblpatient_pass p … |
The End.