39,402 Topics
![]() | |
Hi all, I need to do my own version of phpMyAdmin for my php class. I encountered problem when trying modify existing data on database. I don't know what would be best way to modify whole table's data when I don't know exact amount of rows or columns. At this … ![]() | |
Hi there, I have a problam with my code, and i cant fix it, please help. The problam is with the mysql_num_rows on line 4 ; Here is the code: $sql_query = mysql_query("SELECT * FROM upload WHERE MATCH(username,text) AGAINST('$search_term')"); //additional check. Insurance method to re-search the database again in case … ![]() | |
Hi, How to calculate hours in PHP in when time is coming in Am - PM format ? for example, 1] start time: 9AM end time: 12PM 2] start time: 9PM end time: 1AM 3] start time: 12.30PM end time: 1.25PM any formula please | |
Hi all, I have one problem on selecting larga data from mysql. I have inserted large data to mysql, and all data was inserted. I see it from phpmyadmin. but when i select that record from database it cannot display whole data.it doesnt show the end part of the data. … | |
**reg.php** <?php require_once('Connections/iventori.php'); ?> <?php $currentPage = $_SERVER["PHP_SELF"]; //$tarikh=gmdate("j F y",time()+(28800)); $maxRows_Recordset2 = 10; $pageNum_Recordset2 = 0; if (isset($_GET['pageNum_Recordset2'])) { $pageNum_Recordset2 = $_GET['pageNum_Recordset2']; } $startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2; mysql_select_db($database_pinjaman, $pinjaman); $query_Recordset2 = "SELECT no_inventori,model FROM inventori WHERE peralatan='laptop'"; $query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2); $Recordset2 = … | |
Does anyone know how to query a dropdown list to a website from SQL server 2012 in WebMatrix Using PHP? PLEASE HELP! | |
I am making a cms for a booking app and the admin will be able to see the number of bookings at any moment. How can I do it so that the above updates continuously with ajax...like facebook newsfeed for example. So far the only ajax I have made is … | |
PHP, jQuery and definitely not my favourite. My query is this; I purchased a social network script and there are still modifications I need to do that I am stuck with. I would like the users to have the option to upload a photo if they want to, with any … | |
I got a project to add some changes; but the problem is that the code is 4 years old; it is running on server but not on LOCAL; How I can run old PHP locally ? ![]() | |
I am making a form which contain two input suggestion fields, 2 datepicker and three select fields. I want to make my form ajax based and show result in div when any field is changed. Just like farecompare.com I almost created a form but form start loading when i click … ![]() | |
**here is my coding. i want user unable to select data in select box once it is selected in the first select box(hide/remove).i add the javascript. but its not working. any solution?** **peralatan.php** <?php require_once('Connections/iventori.php'); ?> <?php $id = $_GET['idpinjaman']; $colname_Recordset1 = "-1"; if (isset($_GET['idpinjaman'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? … | |
Hi,I am a beginner in php. And I am trying to create this php program where a user selects a picture and it displays it! Theare is an input page which is html and an processing page which is php! I seemes to have a problem in the processing page … | |
<div class="message-container" id="message-composer"> <div class="message-form-content"> <div class="message-form-header"> <div class="message-form-user"><img src="{$url}/thumb.php?src={$avatar}&t=a" /></div> {$lng->form_title} <div class="message-form-private"></div> <div class="message-loader" id="post-loader9999999999" style="visibility: hidden"><img src="{$url}/{$theme_url}/images/preloader.gif" /></div> </div> <div class="message-form-inner"> <form id="imageForm" name="form" action="{$url}/requests/post_message.php" method="POST" enctype="multipart/form-data" > <textarea id="post9999999999" class="message-form" placeholder="{$lng->message_form}" name="message"></textarea> </div> <input type="hidden" name="privacy" id="message-privacy" value="{$private_message}" /> <div class="selected-files"><span id="queued-files">0</span> {$lng->files_selected}</div> <div class="message-form-input"><input type="text" … | |
<?php include 'connect.php';?> <?php include 'functions.php';?> <?php include 'header.php';?> <?php if(isset($_GET['user']) && !empty($_GET['user'])){ $user=$_GET['user']; }else{ $user=$_SESSION['user_id']; } $my_id = $_SESSION['user_id']; $username=getuser($user,'username'); ?> <h3> <?php echo $username; ?> </h3> <?php if($user != $my_id){ $check_frnd_query=mysql_query("select id from frnds where (user_one='$my_id' and user_two='$user') or (user_one='$user' and user_two='$my_id')"); if(mysql_num_rows($check_frnd_query) == 1){ echo "<a href=''>already … | |
Hello, I'm trying to implement autocomplete on a single field "contact". This should query the "contacts" table looking for an id but displaying the firstname in the input field. This is my function inside ListingsController.php, every listing belongs to a contact and every contact belong to a listing. public function … | |
$gateway_url = $url."?ORDERID=".$orderid."&SESSIONID=".$sessionid; <iframe src="<?php echo $gateway_url; ?>" style="border:0px #FFFFFF none;" name="manframe" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="60px" width="468px"></iframe> Please I need help. I get this error Parse error: syntax error, unexpected '<' ![]() | |
I am thinking of making a website, which is a quite big one and may need scalability later on. I know a little bit of asp.net , php and j2ee but not much, so before I start I want to know which language would be the best choice to make … | |
Hi. all im new in php i need create postback file for siperrevards. what can help me. i use av arcade site :) ![]() | |
Ha gyz i develop website for online shoping just for testing, this website contact 5 admins i want to secure login for thoes admin via mobile verification code, Like facebook verification code & google email login 2-setp verifcation etc. Can any bosdy have khew about this how it to be … | |
I'm not expert in php and it my first time trying to connect php with oracle database I've made mistake before as I was trying to connect to MySQL while I should've connected to oracle instead Oracle instant client is installed in the uni server and with features static IP … ![]() | |
I know I've been here before, but I need additional help. I somehow need the following table to have HTML code that will create a table with two columns and three rows. The top left column will have the title rows, the middle will have columns, the bottom will have … ![]() | |
Hi, I am trying to call the '`getMembershipDetsPrice()`' php function in the html drop down list 'duration'. I tried to follow the W3schools tutorial but when I changed the value the html printed again. When the dropdownlist changed the value the label needs to be filled by the returned value … | |
Hi I have the following code so far. Basically I have a drop down list were the user selects the type of membership he wants. When he clicks the button buy now from the database the membership cost and type are displayed in the pg. The problem is that I … | |
Hello Guys, Iwant to create a form builder using php and jquery, it is possible or not? This is my code. <div id="form_gen"> <div class=""> <hr> <h4>Create Database and Table</h4> <table class="bar form_evalution"> <tr> <th>Database Name:</th> <td><input type="text" class="form-control" placeholder="Input Database Name"></td> </tr> <tr> <th cols="auto">Table Name:</th> <td><input type="text" class="form-control" … ![]() | |
I am very confused with the pagination system of my site, the site consist two services android games and movies but in each they all have their categories for example the android games has categories as follows: * ANDRIOD GAMES * 1. Arcade 2. Sports 3. Action 4. Adventure 5. … ![]() | |
Hello Guys, I just Worried here, This code it show to display multiple Images from database and The Name of Image, And I want to Display it Vertically then the Name of Images it should be the under of Images. I dont know how to do this thanks Guys. hers … | |
I'm hosting my php file in WAMPSERVER PHP Version 5.4.3 and my database is somewhere in the uni server I keep getting this error and I don't know why * A connection attempt failed because the connected party did not properly respond after a period of time or established connection … | |
i have two classes Session and SupplierSession. SupplierSession is supposed to inherit from Session. how do i ensure that the session_start() in the __construct() method of Session does not get called in SupplierSession. here are the class definitions. session.php <?php class Session { private $loggedIn = false; public $userID; public … | |
There is a little bit prob with my code, My Prob: When i type name or place etc in search bar it show me the entire data stored in database, i need it show what i searching for... script for Search: <div id="wb_Form1" style="position:absolute;width:864px;height:147px;"> <form name="q" method="get" action="test-result.php" id="Form1"> <input … | |
![]() | I've been happily writing code for a bit of software that loosely is to do with project management. For that reason it has a dashboard-esque look and feel. It is highly customized and luckily because I've used MVC the views are separated from the db stuff. From day 1 I … |
I need to write a script that allows a user to enter a numeric grade and then determine the letter grade. Use a PHP document and a HTML document containing a form with 5 text boxes to enter the numeric grades. Print a message to the user stating whether or … | |
Hello, I've tried to set up moodle (php based) elearning, using Windows OS. Yet, I am receiving an error message. I already tried twice installing it in my windows system and receiving the same error message: -------------- The page isn't redirecting properly Firefox has detected that the server is redirecting … ![]() | |
This is a function I created to facilitate the sending of PHP emails. Just give it the name and email of who your sending it to, and your name and email. A subject and a message. These options are required. The type, cc and bcc options are optional. By default, … | |
I am try to Create a program in php that allows the user to send bulk SMS, please help? | |
I need to add a nested table to my php page so that when I put it in my browser, just a table will appear with 2 columns and 3 rows. In the top left column I need the word "WIDTH", and right below that it will say "HEIGHT". The … ![]() | |
Hello Guys, I have a Question, is this possible in php to make a Form Generator? .. For Online Evaluation. Tnx Guys, is there any tutorial? can you give me a LINK? Tnx in Advance! | |
i have the following php. the script gives me an error telling me that i have not selected a file to upload even when i have done so. if i try to access the $_FILES['minuteFile']['tmp_name'] i don't get anything but the $_FILES['minuteFile']['name'] would be having some. what could be the … | |
I search my database and get a few records in a table in my html/php page.how can i select a row to copy its data in the coresponding textboxes of a form in the same page? | |
I need to write a script which can display an XHTML table with a numeric value displayed in each table cell. The script should use a nested loop construct and should be able, by changing the value of two variables (for example, $intWidth and $intHeight). to adjust the size of … | |
hi,,, i need question about populate table based on dropdown this my php file **kecamatan.php** <?php require 'config_db.php'; $self='kelurahan.php'; if (isset($_POST['action'])&&$_POST['action']=='edit'){ $namakelurahan = _post('namakelurahan'); if ($namakelurahan==''){ r2($self,'e','Nama kelurahan tidak boleh kosong'); } $id = _post('id'); $grp = ORM::for_table('kelurahan')->find_one($id); $grp->set('namakelurahan', $namakelurahan); $grp->save(); r2($self,'s','Perubahan data berhasil di lakukan'); } elseif (isset($_POST['action'])&&$_POST['action']=='delete'){ $trid … | |
i have a problem to create a booking page. i currently develop a lend/borrow hardware system. my friend want me to include a list of items that still available and not been borrowed yet based on date chosen before user want to continue booking( ex: hotel reservation 'check availability'). i … | |
I have the list of tags in php and I want to get the contents. for example: <li class="zc-ssl-pg" id="row0-1" style=""> <span id="row1Time" class="zc-ssl-pg-time">6:00 PM</span> <a id="rowTitle1" class="zc-ssl-pg-title" href='http://www.mysite.com'>Melissa & Joey</a> <a class="zc-ssl-pg-ep" href='http://www.mysite.com'>"House Broken"</a> <li class="zc-ssl-pg" id="row1-1" style=""> <span id="row1Time" class="zc-ssl-pg-time">6:00 PM</span> <a id="rowTitle1" class="zc-ssl-pg-title" href='http://www.mysite.com'>The Middle</a> <a class="zc-ssl-pg-ep" … ![]() | |
**I want to fetch data from database and show in multiple check box value e.g id_number of laptop in 5 checkboxes with different values but really dont get how to do this..hope anyone can show me easy code in php** ![]() | |
Hello, when i click on option of dropdown box they could not select any option. Its working good in all other browsers.option coming through ajax. I have a problem in dropdown select option in IE11. see attached screenshot .Please help me someone to solve my problem. Thanks & Regards Nits | |
Can you help to show how to upload multiple image with php and mysql, please? | |
Hi Folks, I need help with my Project. I need to pull a value from the populated dropdown list using an ORACLE DB. When I pulled that value, I need to fill the quantity with the corresponding quantity value and show it to the user. And I also need to … | |
Hi hope someone can help me with the folowing: if( $verscil_huwelijksdat_tot_zestien_jaar->format('%R%a') >= 0 ) { echo"bla bla"; } dosn't work it only works when >=1 or <=-1 and wy not >=0 ? | |
![]() | So I read somewhere that your views should not contain any logic in them. But let's say you pull back a query from your model which displays four boxes two of them need to be checked in the view. I'd pass this as an array into the view but in … |
Hi All, I am completely new to the concept of soap and need to generate multiple xml response at the response page. I am requesting some parameters and in turn want to generate an xml response in multiple nodes. //****MY REQUEST XML STARTS*********** <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" … |
The End.