39,393 Topics
![]() | |
Hello Everyone, I created a form so that users can select date range. Based on the date range later on it would show a graph. I am still in the first part trying to get the value selected by the user so I can generate the query from the database. … | |
![]() | Hi, I been learning **OOP** slowly. I'm stuck how to resolved an **function query() on a non object issue**. My files are very basic: This is my **db.php** file: <?php global $db; class foo_mysqli extends mysqli { public function __construct($host, $user, $pass, $db) { parent::__construct($host, $user, $pass, $db); if (mysqli_connect_error()) … |
i want to add multiple texboxes on button click and store that value in database can any one help me out how to do this i know some javascrip and jquery neede but don't know how to store the all texbox value to database because for multiple texboxes in database … | |
$query = "SELECT * FROM customers WHERE firstname = '$firstname', lastname = '$lastname'"; $result = mysql_query($query); i keep getting Error: Query was empty | |
Hi guys, I'm looking for comments and suggestions regarding the use and place of jquery/ajax in site development. I know jquery allows a lot of cool stuff and so does ajax, but when a site becomes heavily based on these tools, the use of PHP dwindles. I am used to … | |
//case for database search case "Search": if(isset($firstname, $lastname)){ mysql_select_db("webuser23", $dbc); $result = "SELECT * FROM customers WHERE firstname='.$firstname.' "; mysql_query($dbc); echo "<table border='1'>"; echo "<tr>"; echo "<th>Firstname</th>"; echo "<th>Lastname</th>"; echo "<th>Phone</th>"; echo "<th>Address</th>"; echo "<th>City</th>"; echo "<th>State</th>"; echo "<th>Zip</th>"; echo "</tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . … | |
here is the code, var images2 = ['images/index_19.jpg', 'images/details_10.jpg', 'images/index_23.jpg']; $(document).ready(function() { setInterval(forwardImage2, 4000); //This function will find the key for the current Image function currentImageKey2() { i = jQuery.inArray($('#slideshow2').attr('src'), images2); return i; } //This function will move the slideshow forward one function forwardImage2() { currentImageKey2(); if (i < images2.length … | |
If I have a model called Admin_user which extends CI_Model, how do I name the file in which this model class is so that codeigniter can load it? I named the file admin_user.php and placed it in application/models directory but Codeigniter does not load the class when I try loading … | |
here is code that I am working on. What it is supposed to do is upload a media file (image, audio, video) and then tell me what type of media it is. $media_type='image'; $filename=$_FILES["file"]["name"]; $extension = explode(".", $filename); $extension = end($extension); //echo $extension; if (($_FILES["file"]["size"] < 50000) && (!$_FILES["file"]["error"] > … | |
I am working on a project where admin can book an building unit for a customer.And i require that a month lie between two dates of booking or not for calendar.I am using query for this is "SELECT * FROM rt_booking WHERE rt_unit_id='".$urow['rt_unit_id']."' AND rt_start_date<=".$date11." AND rt_end_date<=".$date22; Here rt_start_date(unixtimestamp) and … | |
Hello guys, Please take a look at my code, coz I don't know why I cant login here in my log in form.By the way, my database is working, so the problem is in the code. looking forward for your help guys, here is my code: <?php session_start(); include("config.php"); ?> … | |
My php code will not execute and I'm not sure why. Below is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Before.html </title> <meta name="Generator" content="Alleycode HTML Editor" /> <meta name="Description" content="Your description here..." /> <meta name="Keywords" content="Your keywords here..." /> </head> Before #1, Test … | |
Hi, In my website new user register form have, when user all the fields fill the form ofteter registration complete it can be show successfull register message. Thank you | |
Forbidden You don't have permission to access /index.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. What can I do for fixing this error? | |
My program is not working please tell me the problum in it... <form action = "http://localhost/third/c2.php" method = "Post"> <pre> <input type = 'checkbox' value = 'Stipned' name = 'chk1'/> stipend </br> <input type = 'checkbox' value = 'Diciplane' name = 'chk2'/> Diciplane </br> <input type = 'checkbox' value = … | |
Anyone out there have a working system of PHP and xdebug on Windows 8 using an installed version of Apache server? For me this means you installed all the packages and this is not a WAMP system. If you do, would you let me know the file names of the: … ![]() | |
Hello, I am writing a simple forum and I keep getting the error 'Undefined Variable'. But this makes no sense has I have assinged a a string to the variable in question . Its part of a while loop and has a .(period) before the equals. If I remove that … | |
hi guys... im at the end of my tether with 2co payment gateway...there documentation makes less sense than paypals and the support team dont even acknowledge my emails. i also have a seriously clever programmer on the case who has absolutely no idea what a deadline means and keeps sayin … | |
Hello, I am tring to test with this software: http://www.stat.fsu.edu/pub/diehard/ I make Hex file of random integers with 8 digis per integer, 10 integers per line as in documentaion. Then run ASC2BIN.EXE but it creates just empty file. My file looks like this: 493489c07f3ba47470011f170b9f5960668068d25732147d44af029b0bfed2a6682b77cb76a5d488 this is one line, but can … | |
You are missing the semi-colons at the end of the string. | |
I have a table that is populated by database and each of the rows is a from with a submit button. The idea is there is a drop down selection and upon selecting it then submitting the form updates the database. The problem is that the row form does not … | |
I keep getting this error message: Parse error: syntax error, unexpected 'Your' (T_STRING) in C:\xampp\htdocs\Salary.php on line 8. <?php $h=$_GET['hours']; $r=$_GET['rate']; $p=$_GET['pay']; if ($h <= 40){ $submit = ("$p = $h * $r) echo "Your Weekly Salary Is: $p; } if ($h > 40){ $submit = ("$p = ($h *$r) … | |
Hi, I am going to submit a new website in Google (deveoped in PHP) today. I have 'include' folder which has header.php, footer.php and navigation.php files. I have included them in each web page of my site using <?php include ('./includes/header.php'); ?>. I do not want these php files to … | |
I inherited a website here at work. The menu system uses a convoluted jquery / javascript structure. There are 8 different types of "users" for this website, from administrator to contractor or accountant, etc, and the person made 8 different versions of the menus covering nearly 80 different pages within … | |
Hi, I'm transferring data from one table to another and one of the fields is an email field. I would like to check if the emailfield is empty or otherwise faulty and skip that record if it is. This is how it looks at the moment but it's problamatic since … | |
Hi, Please, I am trying to open a details page from the main page item link as follows: Link on the main page: <td><a href=details.php?c_id=<?php echo ".urlencode($c_id)." ?> ><img src="./images/<?php echo $row['cfilename']; ?>" width="90" height="120" alt="" /></a></td> And the details.php page is: <?php $mysqli = new mysqli("localhost", "joseph", " ", … ![]() | |
hi, i have a site where the user can copy and paste a letter they typed on their pc into an HTML editor in the site and when inserted goes into the database. what i need to be able to do is have a button when inserting or a specific … | |
Hi all I have a website about magazines and I want to upload the pdf file into it and create a flipping book effect for that uploaded file. I have seen many softwares but he problem is * I want to integrate this functionality in my website * I am … ![]() | |
I have an array array('mango','apple','orange','bat','cat','mat'); like it for example i want to show an output in rows and columns like as follows mango apple orange bat cat mat how to get output show an above.. ![]() | |
Hi all. Does anyone have a good autoloader script for namespace classes ? Namespace is identical to the file structure. |
The End.