52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for koneill

All in the following code snippet - I have this code working without syntax error if a user accesses the page directly they get the message listed in the else statement "This page cannot be accessed directly " - and when the user accesses the page from a post method …

Web Development
Member Avatar for The Diamonds
0
306
Member Avatar for Krunal_3

Hello, I have implemented pagination in MVC application. when first time page loads, it works properly, when I click on paging then it makes AJAX call and bind the data in my HTML table from json response. but after AJAX call, pagination is working. once AJAX call fires, then pagination …

Member Avatar for The Diamonds
0
811
Member Avatar for solomon_13000

I am attempting to create a simple project for the subject matter for learning and discovery purpose however it doesn't seem to work. My rest API works well but the integration of AngularJS with Laravel doesn't work. You can pull my mini project from [Click Here](https://github.com/solomon13000/angulara). Your help is kindly …

Web Development angularjs api github php
Member Avatar for solomon_13000
0
394
Member Avatar for UI

Guys, After getting putoff from php.net to learn php 7 (because it is not beginner friendly) and raoming around youtube for 1.5mnth to learn php and failing to get proper tutorials there, I returned to php.net. Was reading the CONSTANT chapter and really got pissed-off. Read this page and tell …

Web Development php
Member Avatar for UI
0
305
Member Avatar for dbalas

Hi! Anyone can help please? I am searching around like crazy to make this work but no luck... There are allot of articles with some solutions but nothing works for me... Here is my code <?php require_once('../tcpdf/config/lang/eng.php'); require_once('../tcpdf/tcpdf.php'); // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, …

Web Development pdf php
Member Avatar for salman_15
0
4K
Member Avatar for Lloyd_4

Hi Everyone, I am having a bit of a mare trying to get my htaccess file working the way I would like it too. I am trying to redirect the index.php from websitename/directory/index.php to websitename/directory/ I have tried the following rewrites but nothing seems to be working, Hope someone can …

Web Development php
Member Avatar for gottaloveit
0
585
Member Avatar for SeanKann

Having an issue passing info from the modal to the model so that I can do a where statement. The first line below is the link to open the modal. Works fine no issues. <td><a href="javascript:;" class="openModal" data-toggle="modal" data-target="#email_details_<?php echo $SP->fit_tv_rollout_info_id;?>"> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> </a></td> <div id="email_details_<?php echo $SP->fit_tv_rollout_info_id;?>" …

Member Avatar for gottaloveit
0
289
Member Avatar for koneill

All, I am trying to a call a fly program which generates dynamic images on a webpage and I'm geting this error -> malformed header from script. Bad header=/usr/home/gump/bin/fly: The main code is as such and I've tried various varaitions of the Content-Type headers to no avail - the simple-lib.pl …

Web Development perl
Member Avatar for Geoff_3
0
1K
Member Avatar for gahhon

function email($reqNo){ //Database Configurations $host = "some.url"; $username = "someuser"; $pass = "xxxxxx"; $db = "mydatabase_db"; //Customer Configurations $cName = null; $cEmail = null; $DBConnect = @mysqli_connect($host, $username, $pass, $db) or die ("<p>Unable to connect to the database server.</p>". "<p>Error code ". mysqli_connect_errno().": ". mysqli_connect_error()). "</p>"; $SQLString = "SELECT name, …

Web Development email php
Member Avatar for gahhon
0
381
Member Avatar for gahhon

<!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Address Book</title> <script type="text/javascript"> function addressBookItem (fname, lname, email) { this.fname = fname; this.lname = lname; this.email = email; } addressBookItem.prototype.write = function() { adrbook = "<tr><td>" + this.fname + "</td><td>" + this.lname + …

Web Development javascript
Member Avatar for gahhon
0
610
Member Avatar for Siberian

I was informed the if-statement is incorrect. I can't find the syntax error ? var curDoc = app.activeDocument; var selall = app.executeMenuCommand("selectall"); var fillrmv = curDoc.pathItems[0].filled = false; if (app.activeDocument.pathItems[0].filled = true) { for (i=0;i>fillrmv;i++) { curDoc.pathItems[0].filled = false; }; };

Member Avatar for Siberian
0
361
Member Avatar for UI

Hello People, Do you know why iframe is not opening to the url (variable value) ? Here is latest update of the code but still it shows not the variable value as the iframe URL. Variable calls db row data. Mysql column "Latet_View" has an entry on position zero: http://www.google.com …

Web Development display mysql php session
Member Avatar for UI
0
377
Member Avatar for UI

Php Experts, I am a complete beginner in Php. Trying to learn Php 7 as much as I can. I need your help to point me to the right direction. What kind of method in Php 7 is used to track urls belonging to a foreign domain ? I mean, …

Web Development php
Member Avatar for UI
0
448
Member Avatar for UI

Ladies & Gentle Men Programmers! If you add the following anonymous web proxy url prior to your chosen URL then you can view that URL anonymously via the http://anonymouse.org web proxy: Anonymouse.org[^] For example, if you want to view ebay.com then you'd view it anonymously via this url: http://anonymouse.org/cgi-bin/anon-www.cgi/ So …

Web Development google php
Member Avatar for UI
0
345
Member Avatar for Sylvia_4

Need Help to create **Gmail** style realtime chat app for my website. I found server for realtime chat here https://xmpp.org/software/servers.html (I will go for [ejabberd](https://www.process-one.net/en/) or [Openfire](http://igniterealtime.org/) **or** which one should I choose?) **Goals** 1. send & receive chat request 2. accept or reject request 3. show sent/pending chat request …

Member Avatar for Sylvia_4
0
351
Member Avatar for koneill

My ISP - upgraded the Apache servers and in doing so - the CGI/Perl script below that worked before since they didn't require use strict now does not - since I uncommented out the use strict - I'm getting two errors - at first I was getting: Global symbol "@allgifs" …

Web Development apache perl
Member Avatar for koneill
0
566
Member Avatar for UI

Programmer buddies, Do you mind pointing me to the right direction ? I've been waiting from dec 2015 to learn php 7 but no tuts on php 7 were out until a month or 2 ago but yet again they are not proper or complete tuts. Can you recommend some …

Web Development php session
Member Avatar for UI
0
321
Member Avatar for John Rwaka

I wish to get good training about HTML scripting,i need to be developing web based aps,therefore i ask for experts in scripting languages like ASP.NET,PHP&Python but first,i need to go with HTML.

Web Development html-css mysql
Member Avatar for John Rwaka
0
207
Member Avatar for gahhon

Let's all be examples. I am redirecting from A.php to B.php with a parameter, let's say it ID=1. Therefore, ..../B.php?ID=1 And I wanna hold the value of the ID. Whenever I press a button on B.php, the value ID=1 gone. Any idea of how can I hold that value ? …

Web Development php
Member Avatar for gahhon
0
290
Member Avatar for new_coder

hi im new in php im trying to create a log-in system but i got an error need your help guys THIS IS MY LOGIN PROCESS <?php require 'connect.php'; $employeeno = $_POST['employeeno']; $name = $_POST['name']; if(isset($_POST['LOGIN'])) { $query = "SELECT * FROM tbl_employee_information WHERE employeeno='$employeeno' AND name='$name'"; $query_run = mysqli_query($query,$db); …

Web Development mysql php
Member Avatar for cereal
0
348
Member Avatar for Naters_uk

I am creating a update member page. I would like the page to auto retrieve the information he or she originally used while registering on my site and display them into the individual textboxes of the update profile page, this is to prevent the hassle to rekey in every individual …

Web Development asp asp.net display sql
Member Avatar for ajeet_4
0
2K
Member Avatar for UI

Programming Buddies, Here's my latest script. It is a member reg-login script. It registers you and gets you to activate your account confirming your email and then auto logs you into your account. It uses cookies to remember your user details. It was working fine until I added the feature …

Web Development php
Member Avatar for cereal
0
182
Member Avatar for newbee_jv

Hello everyone, I have a simple JSP, with a text input and a submit button, as follow: <form accept-charset="UTF-8" method="get" action="<%=request.getContextPath()%>/someAction"> Enter Search: <input type="text" name="keyword"/><input type="submit" /> </form> And in my Servlet, I am reading the input, as such: String word = request.getParameter("keyword").trim(); System.out.println("Keyword: " + word); The input …

Web Development java-jsp
Member Avatar for rproffitt
0
322
Member Avatar for gahhon

function display_questions() { $lines = file('questions.txt', FILE_IGNORE_NEW_LINES); $count = count($lines); for ($i = 0; $i < $count; $i++) { $newLines = explode(",", $lines[$i]); $no_question = $i + 1; ECHO ('<b>' .$newLines[0]. '</b><br />'); ECHO ('<input type="radio" name="' .$no_question. '" value="' .$newLines[1]. '/>' .$newLines[1]. '<br />'); ECHO ('<input type="radio" name="' .$no_question. …

Web Development php
Member Avatar for gahhon
0
268
Member Avatar for Rodney_2

import java.io.*; import java.sql.*; import java.util.*; import javax.naming.*; public class Controller { public static String processUser(String sqlStmt, String whichSvlt){ String st =""; String first_name = null; String last_name; String ssn; String email; String address; String userid; String password; List<StudentInfo> result = new ArrayList<StudentInfo>(); // later I will use whichSvlt to …

Web Development
Member Avatar for rubberman
0
280
Member Avatar for idaryl

I am using this output from a radio array in a heredoc output {$custom_radio2_2} and wanted to add a font awseome icon to the variable output like `<i class=fa fa-eye></i>` - however if I just use it in the heredoc its always present...and I just want it to appear whenver …

Web Development php
Member Avatar for rproffitt
0
299
Member Avatar for bbizzl

Hello, I have a PHP email script that works I just can't figure out adding the unsubscribe link and tracking. [CODE]<?php $formMessage = ""; $senderName = ""; $senderEmail = ""; $senderMessage = ""; if (isset($_POST['cusername'])) { // Gather the posted form variables into local PHP variables $senderName = $_POST['cusername']; $senderEmail …

Web Development email php seo
Member Avatar for andrew_38
0
952
Member Avatar for UI

Hi, I have gathered this list of sources to learn php 7. I have ranked according to priority I am giving. Do you pros mind checking them out and then give your own ranking hich onees you give priority to as a good learning source ? Btw, these sources never …

Web Development apache oop php ubuntu
Member Avatar for rproffitt
0
543
Member Avatar for janicemurby

hi i have a form for members to fill in and i want there own personal submissions under form where i will be adding options but it will only work if i put the submitted data above form else i get white screen heres my coding **top php block ** …

Web Development php
Member Avatar for diafol
0
263
Member Avatar for Siberian

What does it mean when you get the error; Illegal use of the resevered word; else. if(); { alert(); } else { alert(); };

Web Development javascript
Member Avatar for Siberian
0
213
Member Avatar for shivya_1

Hello to all, I am working on a project of job posting. There is a table in database. I have a html form and postcode.php (there will be code) , I am facing a problem with this code. **My html form code:-** <form name="posting" action="postcode.php"> <table class="table"> <h4>Job Details: <span>specify …

Member Avatar for Traevel
0
264
Member Avatar for PoroUsedSnax

Hi All, I'm currently designing a website for my business and would like to have a system that pulls products from my database via PHP and adds them to my products section, but I'm unable to find anything that explains how to do it for the kind of setup I …

Member Avatar for diafol
0
457
Member Avatar for UI

Hi, I am using php 7 and I do not know why the following 2 different codes for user the user registration page is not working.*The login page php is working, though. I would appreciate the communities feed-backs. Thank You!

Web Development mysql php sql
Member Avatar for UI
0
134
Member Avatar for UI

<pre>Hi, I'm a beginner in php. Starting my learning at php 7 and not 5 or earlier. I don't understand why php 7 is acting weird. It give different result at different time. Do you guy mind checking if I got the coding wrong or if I've come across a …

Web Development mysql php sql
Member Avatar for diafol
0
579
Member Avatar for Phil_7

I have found a source of and aledged xml file (although it is named as solarxml.php, when I download it the data that I want is there, i.e. solarflux, aindex, kindex and sunspots, but I have no idea how to determine how to extract the 4 data fields I want, …

Web Development javascript php xml
Member Avatar for Traevel
0
1K
Member Avatar for abubaker_2
Member Avatar for abubaker_2
0
604
Member Avatar for DavidB

I have been writing plain old vanilla JavaScript pages for a while, for numerical math problems. Usually, I create one page for a specific problem. For example, one page to solve a system of 3 Equations in 3 Unknowns, one page to solve a system of 4 Equations in 4 …

Member Avatar for diafol
0
193
Member Avatar for Phil_7

I have found a source of and aledged xml file (although it is named as solarxml.php, when I download it the data that I want is there, i.e. solarflux, aindex, kindex and sunspots, but I have no idea how to determine how to extract the 4 data fields I want, …

Web Development javascript xml
Member Avatar for Traevel
0
296
Member Avatar for Mark_65

The following code will allow me to add a table row line and I can add the starting amount with the first amount input into the first row, but if I add a row and enter in an amount I want it to add or subtract that as well. Thanks …

Web Development finance java
Member Avatar for broj1
0
2K
Member Avatar for koneill

All, In the code snippet below - I am trying to only send an e-mail if the page is reached via a POST request - the if statement is not being recognized in the CGI code - as when I access the page this is on directly - I get …

Web Development first-post
Member Avatar for koneill
0
360
Member Avatar for Dylan_11

HI, I have the below php code that i am attempting to use to search the database for a value that has been inputted in the form. This connects to the database and works fine but brings back no results. I found the following error: Warning: mysqli_num_rows() expects parameter 1 …

Web Development mysql php sql
Member Avatar for abubaker_2
0
563
Member Avatar for phphp

Dear Sir, I have these code <html> <head> <style type="text/css"> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } body { overflow: hidden; } #content { max-height: calc(100% - 280px); overflow-y: scroll; padding: 0px 5% 0px 5% !important; margin-top: 10px !important; border: 0px dotted #39F; } </head> …

Web Development html-css
Member Avatar for rproffitt
0
1K
Member Avatar for janicemurby

hi all ive got a file to display info from database and im trying some way to fetch username from another table for it i have put this at top of file. <?php $query = mysqli_query($conn,"select * from user"); $fetch_user = mysqli_fetch_array($query); ?> and here is the section for displaying …

Web Development php
Member Avatar for janicemurby
0
318
Member Avatar for davy_yg

Hello, Can anyone help me check my contact captcha? http://www.advance-web-studio.com/contact.php That suppose to appears a captcha. Like this: http://www.advance-web-studio.com/captcha.jpg I wonder why it disappears?

Web Development
Member Avatar for Dani
0
235
Member Avatar for Dylan_11

HI, I have attempted to put a login page on to my web page that i am developing as a learnig curve. I am almost there i think, i have created a table in my database that stores the username and passwords and i have a php script that i …

Web Development mysql php
Member Avatar for diafol
0
1K
Member Avatar for Andrea_7

Hi, I'm a graphic designer and am designing a site using Adobe Muse which creates HTML, CSS, and JavaScript. Can I export the site as HTML to a developer to integrate with Cold Fusion? There is a client login portion of the larger site created with Cold Fusion (I believe). …

Member Avatar for diafol
0
334
Member Avatar for davy_yg

controllers/Cspages.php public function index() { $this->load->helper('url'); $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } views/index.php <?php foreach($pic as $pic_item): ?> <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> <?php endforeach;?> models/gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } Now the result is: A …

Web Development php-codeigniter
Member Avatar for diafol
0
6K
Member Avatar for janicemurby

hi im attempting to add mysqli_real_escape_string into form to make more secure and after i added it in code below $event_type = $_POST['event_type']; $event_date = $_POST['event_date']; $event_country = $_POST['event_country']; $event_postcode = mysqli_real_escape_string($conn, $_POST['event_postcode']); $event_title = mysqli_real_escape_string($conn, $_POST['event_title']); $event_description = mysqli_real_escape_string($conn, $_POST['event_description']); $event_ltm = $_POST['event_ltm']; like so and go to fill …

Web Development mysql php
Member Avatar for janicemurby
0
253
Member Avatar for gamechick1988

hi, I'm new to PHP and mysql (so you're warned ;) ). i'm making a videogame database ( with XAMPP) and something goes wrong when I try to update my game data. It says the update went fine but the only all the spaces are now blank except for the …

Web Development gaming php
Member Avatar for diafol
0
213
Member Avatar for gentlemedia

I have an issue with what seemed a simple task, but I'm having a brain farth, so it's not :) I count child elements with `length`and add `+1` on top of that length. This works fine and I store that in a var `$trackCount` $trackCount = $carousel.find('.owl-item').length +1; Now I …

Web Development javascript-jquery
Member Avatar for diafol
0
338

The End.