52,566 Archived Topics
Remove Filter ![]() | |
Hello everyone! I am having a problem. I receive an error below. Parse error: syntax error, unexpected ')', expecting '(' in /home/fundis/public_html/ww.incs/basics.php on line 27 Here is my 'basics.php'. [CODE] <?php session_start(); function __autoload($name) { require $name . '.php'; } function dbInit(){ if(isset($GLOBALS['db']))return $GLOBALS['db']; global $DBVARS; $db=new PDO('mysql:host='.$DBVARS['hostname'] .';dbname='.$DBVARS['db_name'], $DBVARS['username'], … Web Development php | |
Hi guys, I am trying to insert image into the database ... I tried everything to do so ... But still it displaying the error like: Cannot implicitly convert type 'System.Drawing.Image' to 'System.Web.UI.WebControls.Image' The code is like this: [CODE] public partial class Image : System.Web.UI.Page { tblImage objImage = new … | |
hello ! my boss assign me a task to connect mssql server 2008 and show records in table using JS and JSON , i m very new in asp.net , can any one me help me where to start my work and how i can complete this , can any … Web Development asp.net javascript json | |
I want to send the verification mail before the user can sign in for which I have written some code, but the problem if that it gives the error "Could not find a part of the path", but I cannot understand why it is giving the error. The error occurs … | |
Hi, I just installed wordpress custom themes to my wordpress page then this error appears when open the admin page. On top of the admin page. Why is it ? Warning: Cannot modify header information - headers already sent by (output started at /home/ocklaw5/public_html/new/wp-content/themes/ocklaw/functions.php:2) in /home/ocklaw5/public_html/new/wp-includes/functions.php on line 861 Warning: … | |
Hello, This is my fisrs web application in ASp.Net. I need help how to create This project should include: The application should be able to Administration of users, user registration, adding, modifying and deleting products for auction. The application has three types of users: Administrator, User and Advertiser. - The … Web Development asp.net web-design | |
| |
Hi, I work on one project in ASP.NET MVC3. Everything worked fine, until I created new table Price_Ranges. I then tried to get data using LINQ, the following code: [CODE] IEnumerable<PriceRange> priceRanges = from pr in dbContext.PriceRanges join cat in dbContext.Categories on pr.Category_Id equals cat.Id where cat.Id==categoryId select pr; [/CODE] … | |
Hii.. Am a C# and ASP.net fan..now have a plan of learning PHP..So experts can you help me out where to start .....i have dreamweaver and Xamp ..Is this good enough or do i need to go for anyother IDE like cakephp ..Zend etc....can anyone guide..... | |
hi n working with a code but m facing a problem of undefined index. i have seen it occurs due to unavailablity of data or like that but here i m declaring that data jst before its use. rest of variable are working correctly just SESS_dept is giving error plz … Web Development php | |
Hi All, I'm copying a long text from word and pasting into a html textarea and from here I send it to MySQL database. If the submited text is too long nothing happens. Any ideas on how to submit a large amount of text from a webpage to a MySQL … | |
I want to be able to insert and update 2 different tables at the same time heres the scenario: if i insert a new record, the it will create a primary key for me as auto increment then once that primary key is created, I want to use that to … Web Development php | |
Hi all, glad to write here again, i need all your help :) Does anyone knows or have simple online booking system that can attach in a wordpress blog. This plugin let user choose check in date and check out date to check room availability. | |
Hello i m developing admin panel for my project i want to add new records when i fill out the form and hit the add button its redirect me a error message i dont know how to ride on this error please help thanks! The error is Insert failureColumn count … Web Development php | |
I am working on an ASP.NET 2.0 web application. After making a change in a textbox and hitting Tab or Enter, the focus jumps to the web address bar instead of the next field. I have tried: 1.SetFocus on the text change event 2.Saving last field in a hidden textbox … Web Development asp.net web-browser | |
I have taken from net html script it displays in all browsers correctly but in OPERA. Can anyone help me to find out problem. may be smth wrong with its javascript here us url: [URL="http://axundzade.info/templateproblem/"]http://axundzade.info/templateproblem/[/URL] Web Development javascript | |
In my database I have a datediscontinued. When someone runs a a report they select a start date (FORM.StartDate) and an end date (FORM.EndDate). I need to find the records where date discontinued is between the start and end date. If the start date is NEQ to the end date … Web Development coldfusion session | |
Question it title, how to do it ? I need to stop a function with another function or I need to call a global function inner function with another global function so I could stop it that way. I know its possible but how ? Web Development javascript ![]() | |
i got this error when i trying to submit a form.. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order(firstname,lastname,email,address,city,postalcode,country,totalprice,paymen' at line 1 appreciate if you could assist me.. [CODE] $sql2= mysql_query("INSERT INTO … ![]() | |
i have to run 2 queries for inserting 2 different tables userorder table contains orderid , title order_details containts orderid, qty so how can i get orderid for my order_details? the code below donts seems able to get last orderid [CODE] $query = mysql_query("SELECT last_insert_id()"); list($oid)=mysql_fetch_row($query); [/CODE] Web Development php | |
Hi guys, I simply need to add an exception to this directory listing coding so .php files aren't visible. Do any of you know how to do that? Thanks!! [CODE]<?php // open this directory $myDirectory = opendir("."); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // … Web Development php | |
I was working on this script which let's you upload and everything is logged in the database. I got this error, any help? Error :You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/home/a6771073/public_html/upload/img.png)' … | |
Hi guys, ok so here's the deal: currently I have this PHP code that allows someone to see every files that are in the directory. I would also like for them to be able to delete any files he wants. Here's my PHP code: [CODE] <?php // open this directory … Web Development php | |
Hi I would like to create drop scroll show content, how to do so ? v Fiat Justitia Ruat Caelum Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer eros risus, vulputate vel iaculis vel, luctus ac arcu. Vestibulum metus ligula, dignissim nec viverra a, interdum ut magna. Donec dignissim … Web Development javascript-jquery php | |
The following script creates a child window check/check.php in Firefox but not in IE or Chrome. I know that I should not be using [I]href = "javascript:void(0);"[/I] but I cannot work out a better solution at this stage. Here is the snippet I'm using. While this code contains PHP I … Web Development javascript | |
Hi all, I have taken from net chained select script. here is all PHP and Javascript files but i dont understand one thing there. index.php file [ICODE]<?php include('db.php'); include('func.php'); ?> <!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=utf-8" /> <title>Chained Select Boxes using … Web Development javascript javascript-jquery php | |
I have developed the html Frame. Which contain two php pages First show the data in the table which is comming from database and refresh after 30sec and click on the tr it shows the data in the second frame as in graph(candle chart). Everything is working fine. But Problem … Web Development php | |
this is my code please find the error and reply me. thanks <?php session_start(); ob_start(); //print_r($_REQUEST); //print_r($_SESSION); error_reporting(0); include("includes/conn.php"); header('Content-Language: en-us'); header('Content-Type: text/html; charset=utf-8'); if($_POST['opt']=='logout'){ $_SESSION['username'] == ""; session_unset(); session_destroy(); //require_once("login.php"); } // echo $_FILES["logo"]['name']; //if($opt=='Create') include("includes/conn.php"); /* $opt_multiple = $_REQUEST['opt_multiple']; foreach($opt_multiple as $key => $value){ $b.= $value . ","; … Web Development html-css microsoft-access open-source pdf php session storage | |
Guys i have a textbox where user enters a telephone number , i need to check in the database whether there a same telephone number in the database already , i want this to happen as soon as the textbox looses focus without posting back , is there any way … Web Development asp.net | |
Hello all, i have a question. Is there possible to get a data (for example some word in website) and then use the sentence to our own JSP page? To make clearly, example : [url]www.facebook.com[/url], is it possible to get the word "Sign Up" (in the middle right of page) … Web Development java-jsp | |
Database query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [CODE]<?php ob_start(); require_once("includes/connection.php"); include_once("includes/header.php"); //get category id according to selected record $category_id = $_GET['cat_id']; //fetch data to populate … Web Development php | |
I've been looking to secure a site that has many queries involved. I've always known about mysql real escape string for a while but recently i ran across prepared statements. I had a few questions about them. Is it a good idea to use both? is this over kill? When … ![]() | |
I use the below code to add or remove a row from a table using javascript. The code works fine on IE however it doesnt work on Firefox, can anybody suggest reasons why this might be doing so? The id "table1" is the ID of the table I am trying … Web Development javascript | |
am having trouble with this small java-script problem how can i make a link button clickable after an event lets say clicking a check-box or another button ...example when you want to install a software you see the next button but can not click it until you check the check-box … Web Development javascript | |
Hello, i'm new in JSP, and i already install Apache Tomcat for the server, but after install it and then try it to browser and choose example there was some text like below. HTTP Status 404 - /examples/jsp/ type Status report message /examples/jsp/ description The requested resource (/examples/jsp/) is not … | |
I'm trying to simply match these letters using php, but it's kind-of a complex matching formula... First, I have two arrays and one string. The arrays contain letters and the string is a near match of those letters. $a - [Array] Must be <= 7 $b - [Array] Must be … Web Development peer-to-peer php programming-construct | |
What I an wanting to do here is have the script email me when the user count reaches X number of listeners on my RR Scanner Feed. Is This Possible? [CODE]<?php $filename = '<script language="JavaScript" src="http://api.radioreference.com/audio/listeners.php?feedId=10734"></script>'; $fp = fopen( $filename,"r"); if ($filename >= X) { //// ($email Me @ My … | |
Dear all, I am certainly not a web developer nor a computer scientist but a little biologist. I developed my tool to analyze some high-throughput biological results and I'd like to make it available online. My prototype : [URL="http://homes.esat.kuleuven.be/~sbrohee/test/new_gsea/php/"]http://homes.esat.kuleuven.be/~sbrohee/test/new_gsea/php/[/URL] Just to make it simple, the user must have the choice … Web Development dataset javascript php | |
HI there, I am having a few problems understanding how drag and drop works in jquery. Say I have this (which is taken from a text book): [url]http://aharrisbooks.net/jad/chap_12/dragDrop.html[/url] In the code you have [CODE] ... //make all drag me elements draggable $(".dragMe").draggable(); //set target as droppable $("#target").droppable(); //bind events to … Web Development javascript javascript-jquery | |
This code does not update my mysql. [CODE] //the $q is sent from ajax and looks like this thumbsup.546 or thumbsdown.567 //the $q is sent trough a working ajax function and looks like this <a href="#" onclick="thefunction(thumbsup.'.$row['wallid'].');">[+]</a> $q = mysql_real_escape_string($_GET['q']); $findme = 'thumbsup'; $pos = strpos($q, $findme); if($pos == TRUE){ … Web Development php | |
hi ... is there a script that make make my v viewers read pdf file online..thanks | |
Am having a hard time printing all record percent in my db my sql statement [CODE]$query="SELECT *, duedate,(TO_DAYS(duedate) - TO_DAYS(CurDate())) as difference FROM vehicle_info ORDER by svreg"; //$query="SELECT * FROM vehicle_info WHERE id='$id' ORDER by vreg"; $pager = new PS_Pagination($conn,$query,10,10); $accra = $pager->paginate(); while($row = mysql_fetch_assoc($accra)) { $id = $row['id']; … | |
Hello, I have a problem with the response text of an ajax request. I want to use the answer of the php script ("true" or "false") to do different things with a if-condition, but it always takes the false option. Here is the code. [CODE] var hr = new XMLHttpRequest(); … Web Development javascript php | |
[ICODE]Is there a way to expand and collapse included PHP content? Any code examples pls. [/ICODE] Web Development php | |
hi all I need help plzzzzzzzzzzzzzzzz my project uses asp.net and sql database I use treeview to insert and retrieve hierarchical data from the database I used the following code the problem is when I added the code for the retrieval the insertion has a problem where I can't add … Web Development asp.net dataset open-source | |
Hello I wonder if anyone could help me with the following please? I have scratched my head and played around but not been able to move forward. I am creating a script to redirect a user to a random link on my site. The first part of the code extracts … Web Development http-protocol php seo | |
Hello Friends...:) I am a part time web designer and small time PhP developer by side. I recently got a request from one of my clients that he needs a site in which he is offering some service( some spiritual advice kind of stuff based upon your date of birth … Web Development php | |
Please i want to set sessions in my php file which includes a form but the session doesn't work.This is my code sample. I need help please! [CODE=php] <?php $conn=mysql_connect("localhost","root",""); mysql_select_db("my_db"); session_start(); if(isset($_SESSION['count'])) $_SESSION['count']=$_SESSION['count']+1; else $_SESSION['count']=1; if(!($_SESSION['count']=$_POST['reg'])) die("SESSION NOT SET SUCCESSFULLY!"); else echo "SESSION SUCCESSFUL!"; ?> <html><head></head><body> <form method="POST" action="<?php … | |
<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="Raphael.js"></script> <script type="text/javascript"> <?php include("class.logger.php"); //path to class.logger.php file $log = new logger(); //Instentiate the class $log->dbconnect(); //connect to database //pass the name of the table as the parameter. I.e. 'logger" $log->createtable('logger'); //set date and year text for the info bubble that appears … Web Development html-css javascript-jquery php | |
I have a very simple script (below) that works fine when sending email to a single email address, however when I add another (as I have in the script below) by seperating with a comma, the script just sends the email to one of the addresses twice and not to … |
The End.