10 Topics

Member Avatar for
Member Avatar for blueguy777

Getting the follwoing error message. How to fix this? **Parse error: syntax error, unexpected end of file in** Actual Code: <?php session_start(); include("connection.php"); $sqlsettings = "SELECT * from admin"; $resultsettings = mysql_query($sqlsettings); $rowsettings = mysql_fetch_array($resultsettings); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?php echo $rowsettings['ScriptName']; ?> …

Member Avatar for blueguy777
0
306
Member Avatar for markii.borabon

im getting unexpected '$sql' when I run this code.. and idont know why.. <?php include('connect/connection.php'); if(isset($_POST['pid2'])) { $pid = $_POST['pid2']; $name = $_POST['name'] $sql="INSERT INTO tbl_wishlist (prod_id, name) (select prod_id, image from tbl_product where prod_id ='$pid' AND image ='$name' )"; }else{ echo 'mali';} mysql_close(); ?>

Member Avatar for markii.borabon
0
102
Member Avatar for old_apache

i developed a system in xampp 1.7.2, and now i run it in xampp 1.8.2 (lastest version) i got this error Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\ hint: in xampp 1.7.2 no error anybody can tell me why?

Member Avatar for old_apache
0
237
Member Avatar for mallows.yum

Hi All! i have her a code <?php /** * Main.php */ include("include/session.php"); //include("viewproj.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="searchemp.php" method="post" > <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: …

Member Avatar for Eng. Hadi
0
470
Member Avatar for eburlea

Hello. The code below returns an error. Please advise what is wrong with it. Thank you. class Login { private var $good_username; private var $good_password; public function Authentification () { private $this->good_username = "myusername"; private $this->good_password = "mypassword"; } }

Member Avatar for eburlea
0
315
Member Avatar for darl.liew

Hi, I need help with this... can anyone help me?? Plssssss Im getting Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in line 10 What's wrong with it... can't seemed to find the error. Im trying to make my blog display the video. <?php $file = $_GET['file']; $image = $_GET['image']; …

Member Avatar for darl.liew
0
5K
Member Avatar for kbat115

I've been having a bit of problems with a file. Here is the script that I'm having issues with and the exact error is as follows: Parse error: syntax error, unexpected $end in /hermes/bosweb/web168/b1683/ipg.xoizocom/pba/login/index.php on line 239 <?PHP require_once("globals.php"); $INFO = array(); $ipsclass = new ipsclass(); $ipsclass->vars = $INFO; $script …

Member Avatar for andyy121
0
526
Member Avatar for abhishekagrawal

Hi All, I am writing a program to find the number between 1 and 100 that has the greatest number of distinct divisors. Below is my code for the same. It is returning an erroneous answer, i.e. 8 for greatest number of distinct divisors and 4 as the number for …

Member Avatar for nullptr
0
189
Member Avatar for itamardori3

**Hey, so i got syntax error when i'm trying to use this file** Parse error: syntax error, unexpected $end in /var/www/vhosts/airlinesofisrael.com/httpdocs/phpvms.full/lib/skins/lolim/layout.tpl on line 129 my code is below, can someone help please? :) <?php /** * * * * * * * * * * * * * */ ?><!DOCTYPE …

Member Avatar for itamardori3
0
222
Member Avatar for Goshutu

Hi, DaniWeb forum members! I am an above-amateur programmer and this is my first more complex SDL-based program. I am trying to make the menu of a game, but SDL cannot capture the key presses when a single key was pressed. I use only UP and DOWN arrows, in this …

Member Avatar for Goshutu
0
722

The End.