52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for harishprakash
Member Avatar for OsaMasw
0
173
Member Avatar for riwakawd

When I or user logs on it checks what permissions it has. And then on a form if has not got permission throws error. Example: <?php class Users_groups extends CI_Controller { public function update() { if (($this->input->server('REQUEST_METHOD') == 'POST') && $this->validateForm()) { // Modal stuff } } public function index() …

Web Development php php-codeigniter session
Member Avatar for riwakawd
0
261
Member Avatar for gentlemedia

Hi, This will do the job, but it's ugly, so how to do this more elegant? $('ul').prepend('<li></li><li></li><li></li><li></li><li></li>'); $('ul').append('<li></li><li></li><li></li><li></li><li></li>'); Thanks in advance!

Web Development javascript javascript-jquery
Member Avatar for gentlemedia
0
224
Member Avatar for mattyd

Hello: Before I post code I will say that last year I hired a programmer to build one feature for my project. Today upon further inspection of the database/tables I am receiving errors that I have never received and I am at a loss as to their actual meaning. I …

Web Development php sql
Member Avatar for mattyd
0
245
Member Avatar for asaidi

Hi i m trying to update records via array and i m getting this error .. Notice: Uninitialized string offset: 1 in C:\wamp\www\routephp\search_results.php on line 142 <?php if(isset($_GET['van'])){ $van=$_GET['van']; $van = preg_replace("/[^0-9]/", '', $van); } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Route Database</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <script type="text/javascript"> …

Web Development html-css php
Member Avatar for asaidi
0
5K
Member Avatar for Apurva1026

column count doesn't match value count at row 1 $objhelperClass->insert(PRODUCT,"`catid`,`subcat`,`pname`,`price`,`sort_order`,`description`","'".$_POST['cat']."','".$_POST['subcat']."','".$_POST['pname']."','".$_POST['amount']."','".$_POST['sort']."'"); $m=$objhelperClass->select(PRODUCT,"1","max(`id`)"); $pid=$m['max(`id`)']; if(is_array($patas)) { foreach(array_combine($patas,$thumbs) as $val => $val1) { //echo $val; $objhelperClass->insert(IMAGES," `image`,`thumb`,`pid`,`link` ","'".$val."','".$val1."','".$pid."' "); } }

Web Development php
Member Avatar for hericles
0
534
Member Avatar for stevenson.nelli
Member Avatar for dawbin
0
861
Member Avatar for markdean1989

I just downloaded WAMP 64 bit. Successfully installed. Everything went fine. Problem is, I don't know where to go. Where do I put my codes? Online resources I have read says just create a directory in the root folder or something. Does that mean create a folder in the "www" …

Web Development php
Member Avatar for pixelsoul
0
132
Member Avatar for Samyx

Hi guys, I am trying to create a login page using apache mod_auth_form to authenticate users. Once the user is authenticated he/she should be able to access the main page. # my public directory: # C:/webroot/ regtrack_newSG.php # my protected directory: # C:/webroot/myapp/ regtrack_studysiteone.php # my password file: C:/Apache24/passwd/passwords # …

Web Development apache php session
Member Avatar for cereal
0
2K
Member Avatar for GlenRogers

I'm trying to use fullPage.js but its only ever showing my first section! I have my sections set up like this <div class="section"> Section 1 </div> <div class="section"> Section 2 </div> <div class="section"> Section 3 </div> and I inatlize like this <script> $(document).ready(function() { $('.wrapper').fullpage({ sectionsColor: ['blue', 'red', 'green'], }); …

Web Development javascript
Member Avatar for gentlemedia
0
411
Member Avatar for boddupallianvesh

i am working on a project. i have database and it has 20 coloumns for each row. i display rows in form of table. in table i am retrieving data from database and displaying it. <% While(special.next()){ %> <ul class="features"> <li><%= special.getString("company")%></li> <li><%= special.getString("catagory")%></li> <li><%= special.getString("place")%></li> <li><%= special.getString("verified")%></li> <li><%= special.getString("phone")%></li> …

Web Development java-jsp
Member Avatar for milil
0
2K
Member Avatar for Bensirpent07

I feel like this is a very dumb question but please excuse me if there is an obvious answer. I have just recently seriously dug into JQuery (loving it by the way). Anyways in the code below you can see I have the color to animate to white and green …

Web Development javascript javascript-jquery
Member Avatar for Bensirpent07
0
350
Member Avatar for enterdani

The code works to send the email with link included bu the URL does not open. Can anyone help? //Send Email For Account Confirmation $s_web="http://".$_SERVER[HTTP_HOST]; $message="Please activate your account by running this link:"."\n\n"; $message.=$s_web.'/confirmaccount.php?code='.$encryptpass.'&id='.$id."\n\n"; $headers = 'From:'.$s_mail."\n" . 'Reply-To:'.$s_mail."\n" . 'X-Mailer: PHP/' . phpversion(); mail ($emailaddress,'New Account Confirmation',$message,$headers); } mysql_close($connect);

Web Development email php
Member Avatar for pixelsoul
0
401
Member Avatar for jelly46

How to pass link data from one page to another page using querystring in asp net This link would be set up something like this: http://.mywebsite.com/site/TR?fr_id=1131&pg=entry?utm_source=______&utm_medium=_______&utm_campaign=ABCD2015 When it is clicked, the code implemented needs to pass the source and medium info (facebook /social) into the gaps (_____) in link url. …

Web Development asp.net
Member Avatar for jelly46
0
378
Member Avatar for AntonyRayan

Hi every one, I want to take a photo by using webcam , and I want to store it in db and finally I want to view it. How to do? Its urgent.

Web Development php webcam
Member Avatar for almostbob
0
105
Member Avatar for subbu_1

'HTML' form <form action="result.php" method="POST"> <input type="search" name="query" size="10" id="searchfield" title="searchfield" /> <input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" /> </form> result php file <?php @session_start(); include 'connections.php'; if (isset($_POST['query']) && $_POST['query'] != "") $query = $_POST['query']; $min_length = 1; if(strlen($query) >= $min_length) { $query = htmlspecialchars($query); $query = mysql_real_escape_string($query); …

Web Development html-css php
Member Avatar for subbu_1
0
528
Member Avatar for darrylnuyda

Hi everyone, Can you help me ?? how to install a laravel-master PHP Framework, Using the XAMPP? I tried to install but I failed. Also, watching youtube video tutorials but their example is WAMPP server. In my part Im capable in XAMPP cause this is my practice in my web …

Web Development finance php
Member Avatar for Le_1
0
1K
Member Avatar for UK-1991

Hello, I have created a page for users to view their status reports but I have created 2 dropdown 1 for month second for year i want that user click on the month it show only that months status not for the whole table status and at the end of …

Web Development php
Member Avatar for diafol
0
180
Member Avatar for markdean1989

Hi guys, I just thought of starting PHP as my web scripting language but I don't know which applications I should be downloading. The online resource that I was reviewing says I need to install; PHP Web Server MySQL Can somebody tell me where to get these stuff? (all those …

Web Development php web-server
Member Avatar for markdean1989
0
209
Member Avatar for Violet_82

I just came across something strange, and I posted it here because although it is C# it is still part of learning ASP.NET. Usually when you use setters and getters, you have proper methods to set and access private variables (I'm referring to C++ and JAVA mainly) but here in …

Web Development asp.net
Member Avatar for Violet_82
0
145
Member Avatar for epicrevolt

Title should be load ajax inside ajax because facebook comments load via ajax I am building an all AJAX site for a Facebook iFrame page and am having an issue. All the pages and what not load up dynamically just fine, but some pages use the Facebook commet system. After …

Web Development javascript
Member Avatar for stevenson.nelli
0
327
Member Avatar for SpottyBlue

I have problems for loading data from draft in my project. On the homepage (Default.aspx) under the tab "Drafted", when I want to edit the drafted data on another page (DraftRegister.aspx), it didn't show up the drafted data, just only empty and default values. ![help_3.png](/attachments/large/4/4c1db3ae92ce5a11c6dd89399934131a.png "align-center") Can help me check …

Web Development asp.net dataset
Member Avatar for SpottyBlue
0
263
Member Avatar for janicemurby

hya i have created a table of multi checkbox group and added a [] at the end of the name in html now when i check a selection of boxes i just get array echoed what do i do to sort it out and get the list of items that …

Web Development php
Member Avatar for cereal
0
184
Member Avatar for Sophia_1

Hi,tried to update the improvement_plan table with the records below but unable to do so, as the records are not updated. When i click submit button, no records are saved. Please advise? Thanks. <?php error_reporting(E_ALL ^ E_NOTICE); mysql_connect("localhost","user",""); mysql_select_db("p1"); $table="improvement_plan"; if(isset($_POST['submit'])){ // echo $_SESSION['Picid']; echo $_SESSION['Progressid']; foreach($_POST['Ipid'] as $value) { …

Web Development php
Member Avatar for Sophia_1
0
229
Member Avatar for osagie.odigie.148

Good day all ! i have a multi-dimensional array. the array was carefully built from my xml structure. here's it : array (size=1) 'Articles' => array (size=4) '@About' => string 'programming' (length=11) '@compile' => string 'pro' (length=3) 'Article' => array (size=3) 0 => array (size=6) ... 1 => array (size=6) …

Web Development data-structure json php ruby xml
Member Avatar for diafol
0
362
Member Avatar for Olivier_1

Hi, i'm trying to implement a flot.js graph using a custom php array as data. Here is what i've done : <?php foreach ( $dynamic_prices as $limit => $price ): $coordonnees[] = array($limit,$price); endforeach; ?> <?php echo json_encode(($coordonnees), JSON_NUMERIC_CHECK); ?> This code outputs : [[5,9],[6,8]] is it the right format …

Web Development javascript-jquery json php
Member Avatar for Olivier_1
0
261
Member Avatar for Britto_1

Dear All, I need to choose the value of a list item in jsp. There are many employees in various departments and i need to choose that employees in department wise. Example. I have two list items in jsp 1. Select dept_no,dept_name from departments 2. SElect emp_name from employees, departments …

Web Development java-jsp
Member Avatar for Britto_1
0
150
Member Avatar for fireburner29

Hi there, I have a row of checkboxes and I want the following: - when clicking the child it has to select/unselect all parent checkboxes - and you uncheck one of the child checkboxes, the parent should also uncheck. Here parent ->child select/unselect attached. <script language="JavaScript"> function checkAll(theForm, cName, status) …

Web Development javascript
Member Avatar for fireburner29
0
2K
Member Avatar for davy_yg

Hello, How to place quote (' ') between Lesson 3 ? define('SUCCESS_URL','add_material.php?class_name=Lesson 3'); Thanks before, Davy

Web Development php
Member Avatar for diafol
0
129
Member Avatar for fireburner29

Hi, Please help me to resolve my Script Redirection problem. Actually i have developing simple crm application php using pdo->prepare. this is working fine in localhost. but what is my problem means redirection is not working, when i uploaded to server. for refernce i hereby attached . please help me …

Web Development php
Member Avatar for fireburner29
0
754
Member Avatar for fireburner29

how to insert multiple checkbox values in multiple rows mysql database using php pdo? Please give multiple insert option Here is my script: $create = sizeof(isset($_POST['create']) ? $_POST['create'] : array()); $edit = sizeof(isset($_POST['edit']) ? $_POST['edit'] : array()); $delete = sizeof(isset($_POST['delete']) ? $_POST['delete'] : array()); $view = sizeof(isset($_POST['view']) ? $_POST['view'] : …

Web Development mysql php
0
199
Member Avatar for samson.oba.77

Since i want to develop responsive websites i usually neglect px and use % for dimensions. But i discovered that some cases % doesnt work so i use em instead. Why is it that in some cases % doesnt work but em does ? Thx for help

Web Development
Member Avatar for gentlemedia
0
327
Member Avatar for ramsiva

IN httaccess file what are the important parameters how to use. give me one example

Web Development php
Member Avatar for ramsiva
0
113
Member Avatar for Kewne

Hi guys, I'm trying to set up a localhost,...but I am getting this error from apache error logs "Cannot serve directory C:/xampp/htdocs/crm/images/: No matching DirectoryIndex (index.php,index.pl,index.cgi,index.asp,index.shtml,index.html,index.htm,default.php,default.pl,default.cgi,default.asp,default.shtml,default.html,default.htm,home.php,home.pl,home.cgi,home.asp,home.shtml,home.html,home.htm) found, and server-generated directory index forbidden by Options directive, referer: http://localhost:8080/qwer/index.php" I don't know what to do with this. I have searched the net …

Web Development apache php
Member Avatar for Kewne
0
330
Member Avatar for davecoventry

I'm using PHPExcel to generate a spreadsheet to download. <?php $objPHPExcel = new PHPExcel(); $emailReport = 'tmp/company.xls'; // Remove previous file if it exists. $testdel=unlink($emailReport); if(!$testdel){ echo "Unable to remove previous Spreadsheet<hr/>"; } echo '<a href="'.$emailReport.'" class="dbutton">Download Spreadsheet</a><hr/>'; $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(1, 1,'Old Value'); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); $objWriter->save($emailReport); ?> All well and …

Web Development file-system
Member Avatar for davecoventry
0
214
Member Avatar for enterdani

I know that myisam is no longer used by I don't know how to update the query. I am trying to create tables with text in "Run SQL query in myphpadmin. Can anyone help? This is the complete error I receive: //MySQL said: Documentation #1064 - You have an error …

Web Development php sql
Member Avatar for iamthwee
0
350
Member Avatar for SimonIoa

I have a problem with resizing images with imagemagick this is the info ImageMagick module info Array ( [versionNumber] => 1672 [versionString] => ImageMagick 6.8.8-7 Q16 x86_64 2015-01-27 http://www.imagemagick.org ) this is the imagemagick.php <?php $im = new Imagick(); $im->newPseudoImage(50, 50, "gradient:red-black"); $draw = new ImagickDraw(); $draw->pushPattern('gradient', 0, 0, 50, …

Web Development audio php
Member Avatar for iamthwee
0
282
Member Avatar for UK-1991

I have created a page where employees submits their daily status report at every end of the day so on admin page I have created 3 drop down menus first one is Select User Select Month Select Year So a bit confused about the code to be intended I tried …

Web Development php
Member Avatar for UK-1991
0
460
Member Avatar for euhiduwehfui

I have a page which has a form table. It displays select option when an option is selected the user clicks button and it runs choosecake.php which has query for updating. I need the select to be dynamically updated and display the success/error message like "updated" or "no results" on …

Web Development javascript php
Member Avatar for euhiduwehfui
0
807
Member Avatar for Marc_5

I have a php loop that writes hundrends of records, I need to have a button on each line to trigger a bootstrap modal that will allow to edit this specific record. can't really sent the line ID (it's user ID) via GEt since the URL doesn't change, or by …

Web Development php
Member Avatar for iamthwee
0
12K
Member Avatar for enterdani

Cant figure our why I get this error, Please Help! this is my php file: <?php $servername = "localhost"; $username = "ebookcas_down"; $password = "down2263"; $dbname = "ebookcas_down"; // Create connection $link = mysqli_connect($servername, $username, $password); mysql_select_db($dbname); if ($CatID != "") { mysql_query("UPDATE Download_Cat Set CatName ='" . addslashes($CategoryName) . …

Web Development php
Member Avatar for pritaeas
0
542
Member Avatar for AntonyRayan

how to compare two dates and how to show the availabilty for the particular date?

Web Development
Member Avatar for minitauros
0
106
Member Avatar for tudor_1

Hello! I am trying to make a custom drop down list, each row having two selectable options. To be more precise, I want on each row to have two options: select item(which should act as a implicit ddl works) or delete selected item (which removes the selected item from the …

Web Development javascript
Member Avatar for tudor_1
0
114
Member Avatar for bubbafunk1

Hi, I'm working on a wordpress website where every product page has its own top banner that appears on the page using php. This works fine on the products but when I try to have a different banner on the category page it shows the banner that was the first …

Web Development php wordpress
Member Avatar for bubbafunk1
0
213
Member Avatar for Ben_8

Hi All, I was wondering if anyone could have a look at this code and explain why the page doesn't display an image? Basically I have a camer taking pictures very few minutes and I want to display the latest one. <!DOCTYPE html> <html> <head> <title>Picture</title> </head> <body> <a href="index.html">Return …

Web Development image php
Member Avatar for Ben_8
0
181
Member Avatar for Tuan_2

I'm trying to run a script that clicks on two seperate buttons/Ids on the same website. I want to run **first** document.getElementById("add-to-cart").click() which will redirect me to the **cart/basket page** of an online store once I'm there, i want to run document.getElementById("checkout").click() which will take me to paypal. How do …

Web Development javascript
Member Avatar for Tuan_2
0
202
Member Avatar for code05

I need to put this loginform a login attempt after 3 unsuccessful attempts. Can you please help me out in this situation, I've been trying to do this several days now and none of them is working. I've try some examples on the net but the problem is I can't …

Web Development php
Member Avatar for Sikander Nasar
0
188
Member Avatar for Ctechnology24

<?php session_start(); if (isset($_SESSION['username'])) { include("database.php"); $username = $_SESSION['username']; $query = "SELECT * FROM tblpatient_pass p, tblpatient_info i WHERE p.RelationMR_no = i.MR_no AND p.username='$username'"; $result = mysql_query($query) or die(mysql_error()); $patient = mysql_num_rows($result); if ($patient!=0) { while ($row = mysql_fetch_array($result)) { $dMR_no = $row[0]; $dusername = $row[1]; $dpassword = $row[2]; $demail …

Web Development image php
Member Avatar for pavitraa
0
5K
Member Avatar for giovannelapay

I already succeeded in making alert if the box is left empty or not filled in. All of my codes are working except for the GENDER and GRADE. For GENDER they have to tick to select. For Grade they have to select on the drop down menus. Here are my …

Web Development
Member Avatar for diafol
0
145
Member Avatar for SimonIoa

Hello i a have a problem with my site. The thing is that the images take too much space and the site runs slow. A programmer seiad that i need to resize them. How do i do that? i have set the upload file to be under 2mb. this is …

Web Development php
Member Avatar for cereal
0
670

The End.