39,393 Topics

Member Avatar for
Member Avatar for Samyx

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. …

Member Avatar for IIM
0
641
Member Avatar for LastMitch

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()) …

Member Avatar for broj1
0
849
Member Avatar for AARTI SHRIVAS

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 …

Member Avatar for AARTI SHRIVAS
0
3K
Member Avatar for Edwinner

$query = "SELECT * FROM customers WHERE firstname = '$firstname', lastname = '$lastname'"; $result = mysql_query($query); i keep getting Error: Query was empty

Member Avatar for cereal
0
131
Member Avatar for guyinpv

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 …

Member Avatar for guyinpv
1
458
Member Avatar for Edwinner

//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>" . …

Member Avatar for Edwinner
0
184
Member Avatar for GraficRegret

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 …

Member Avatar for GraficRegret
0
153
Member Avatar for cossay

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 …

Member Avatar for cossay
0
179
Member Avatar for Setvir

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"] > …

Member Avatar for fobos
0
166
Member Avatar for daniel36

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 …

Member Avatar for daniel36
0
139
Member Avatar for ms061210

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"); ?> …

Member Avatar for homeboy
0
331
Member Avatar for tinabina22

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 …

Member Avatar for amith_ami
0
250
Member Avatar for shankar.bandaru.7

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

Member Avatar for AARTI SHRIVAS
0
379
Member Avatar for sou.dara.16

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?

Member Avatar for YASHASHYA
0
127
Member Avatar for Misbah khan

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 = …

Member Avatar for YASHASHYA
0
108
Member Avatar for rouse

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: …

Member Avatar for LastMitch
0
405
Member Avatar for WarrenG.27

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 …

Member Avatar for WarrenG.27
0
412
Member Avatar for shlokka

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 …

Member Avatar for Craig@2Checkout
0
169
Member Avatar for McLaren

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 …

Member Avatar for McLaren
0
410
Member Avatar for spencerharry80
Member Avatar for Octet
-2
38
Member Avatar for tokick4

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 …

Member Avatar for tokick4
0
230
Member Avatar for vato116

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) …

Member Avatar for simplypixie
0
206
Member Avatar for tarwara

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 …

Member Avatar for tarwara
0
724
Member Avatar for bleedsgreen33

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 …

Member Avatar for tokick4
0
3K
Member Avatar for adishardis

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 …

Member Avatar for adishardis
0
474
Member Avatar for josephbupe

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", " ", …

Member Avatar for diafol
0
234
Member Avatar for andydeans

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 …

Member Avatar for mrhankey
0
123
Member Avatar for baig772

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 …

Member Avatar for diafol
0
249
Member Avatar for Mahesh57

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..

Member Avatar for diafol
0
171
Member Avatar for Squidge

Hi all. Does anyone have a good autoloader script for namespace classes ? Namespace is identical to the file structure.

Member Avatar for Squidge
0
124

The End.