39,326 Topics
| |
how to get 12 hour time from time datatype in mysql and php? can anyone help me??? | |
| I have followed some tutorials to create a registration form with some javascript. I have table to register new members to the website. then a parse_register to handle the php and then custom_js for the javscript. Well what is happening at the moment is that having filled in the registration … |
Hi, I want blank textbox value to be inserted into the database. For that I kept those fields 'default NULL' in mysql. Still doesn't take empty textboxes to be saved blank. What should I do? where am I wrong? | |
Hi All, I need help because I'm stock on a problem, I'm developing an attendance monitoring system, I created a database with two tables, one is the profiletable and the other one is the present table, everything works fine on the profile search and the present search, once I query … | |
hi, i have a sysytem that gets film reviews from my DB when i search the film but i want to use an API to be able to search online aswell such as getting reviews from IMDB does anyone know how i can go about this, are there any examples … | |
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 = … |
The End.