52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for adsegzy

I have a popup login script in which once a visitor clicks on LOGIN link on any page, login form will popup. The script is as below. <style type="text/css"> #popupbox{ margin: 0; margin-left: 40%; margin-right: 40%; margin-top: 50px; padding-top: 10px; width: 20%; height: 150px; position: absolute; background: #FBFBF0; border: solid …

Web Development php
Member Avatar for moyk
0
141
Member Avatar for chris_huh

I am trying to set up a survey system. The survey questions themselves come from a database. I have created the page that pulls the questions from the mysql table into an html form but can't work out how to insert the responses into the database. I think i will …

Web Development mysql php session
Member Avatar for dany12
0
972
Member Avatar for uglykidjoe

I have 2 tables one storing sizes the other company names. I would like to alter my existing query to give out different results from the table depending on the product type so at the moment I have and assigning the aliases accordingly ` SELECT MAX(#__xyz_sizes.size) AS MAX, MIN(#__xyz_sizes.size) AS …

Web Development mysql php
Member Avatar for Incognitus
0
123
Member Avatar for calebcook

Hi. I have been working on a project that displays data in an XML file. (It's kind of like an API). I know how to parse XML with PHP, and how to make an XML file in PHP, but they don't work together. :) Basically, I have two files: `parse.php` …

Web Development mysql php xml
Member Avatar for Incognitus
0
238
Member Avatar for nyt1972

Hi Experts, below is my data file and I want to create form the basis of data returned by the following code. **getdata.php** <?php include ("dbConnect.php"); $examID = $_POST['examID']; $sql= mysql_query("select * from examsub where examID='1'); if(mysql_num_rows($sql)>0) { while($row=mysql_fetch_array($sql3)) { echo $row['examID'].$row['subject'].$row['thrymarks'].$row['pracmarks'].$row['subjectID']; } } ?> Below is the code from …

Web Development mysql php
Member Avatar for dany12
0
162
Member Avatar for riahc3

Hey I tried to access a cookie that has a [object HTMLImageElement] but when I try to echo it, it simply prints that out: [object HTMLImageElement] I want it to display the picture. How can I do this? Thanks

Web Development display html-css php
Member Avatar for riahc3
0
4K
Member Avatar for vibhaJ

Hi Friends, I want to develop a website like file manager. Where user register and will get fix disk space lets say 20MB. Now user can upload their pdf, doc, txt, jpeg etc files upto their disk limit. I can develop upto this using PHP. Now my issue is if …

Member Avatar for vibhaJ
0
148
Member Avatar for riahc3

Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 It seems this is something PHP related. How can …

Web Development java php
Member Avatar for riahc3
0
726
Member Avatar for BenzZz

Hi, I've just begun learning PHP and have purchased books etc and researched on websites different areas of the language however I've noticed that there is not much information available relating to the actual appearances of websites through PHP. I know the standard way is using HTML and CSS but …

Web Development html-css php web-design
Member Avatar for Ausopenxcell
0
155
Member Avatar for javacle

i'm trying to analyse this php, i noticed that whenever i enter values into textfield, like input type="text", and i retrieve the data, it is not showing in the address bar like, www.host.com/login.php?usermae="user"&password="pass". Please why is this happening, is it a new feature in php? or something else.

Web Development php
Member Avatar for |-|x
0
196
Member Avatar for DaveyMoyes

HI everyone, I have a script running on a website that uses the facebook share.php file. <?php $title=urlencode(''.$numrows['title'].' | '. htmlentities(money_format("%10.2n", $numrows[price])).' '.$currency_code.''); $url=urlencode(''.$token.''); $summary=urlencode(''.$numrows['description'].''); $image=urlencode(''.$numrows['img1'].''); ?> <a id="button" onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?>&amp;p[url]=<?php echo $url; ?>&amp;&p[images][0]=<?php echo $image;?>', 'sharer', 'toolbar=0,status=0,width=550,height=400');" target="_parent" href="javascript: void(0)"> <input type='submit' class='btn' title='Share This Item …

Web Development html-amp php
Member Avatar for diafol
0
941
Member Avatar for sammry

I am using the followng code, to import csv into mysql. if($_POST['sform'] == "1") { $fname = $_FILES['upload']['name']; $chk_ext = explode(".",$fname); if(strtolower($chk_ext[1]) == "csv") { $filename = $_FILES['upload']['tmp_name']; $row = 1; if (($handle = fopen($filename, "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $row++; $data_entries[] …

Web Development mysql php
Member Avatar for sammry
0
129
Member Avatar for judyhicks

i pasted this code into my child theme's functions.php file (begining on line 5, //Custom CSS styles...), which is resulting in an unexpected T_string error on my site. any ideas how to fix? <?php add_theme_support( 'builder-3.0' ); // Custom CSS styles on WYSIWYG Editor – Start if ( ! function_exists( …

Web Development php
Member Avatar for judyhicks
0
202
Member Avatar for DCSS

I have a problem that seems so simple to fix but I cannot figure out why this is not working. I have done this in other apps with no problem. I have an ASPX page that displays data at the top for info only and a Gridview to show related …

Web Development asp asp.net dataset
Member Avatar for DCSS
0
850
Member Avatar for mbarandao

hello: I'm pulling mysql data and want to load into an array. I getting the data in like manner: $result = mysql_query("SELECT DISTINCT item2 FROM products"); echo "var option_array = new Array(num_of_cats);\n"; $count=1; echo"option_array[0] = new Array(\"Please Select a Merchandise\");"; while($row = mysql_fetch_array($result)) { echo"option_array[".$count."] = new Array(\"--select One--\",\"\",\"\");"; $count++; …

Web Development mysql php
Member Avatar for diafol
0
269
Member Avatar for Patiodude

I recently converted all my .html files to .php, and while the stylesheet they're linked to (which hasn't changed) works almost perfectly, the <h1> through <h6> tags (headings) don't work with the new .php files. The font appears the same size as the body, which is too small to be …

Web Development html-css php
Member Avatar for almostbob
0
221
Member Avatar for daniel36

If i removes error_reporting(0) function it gives error " undefined index tm ".can any one have solution sothat i can use this script without this function. <?php require '../zones/publisher_header.php'; ?> <Script language="JavaScript"> function goto(form) { var index=form.select.selectedIndex if (form.select.options[index].value != "0") { location=form.select.options[index].value;}} //--> </SCRIPT> <h2 style="padding:25px;border:1px solid red; width:90%;">Publisher …

Web Development php
Member Avatar for vibhaJ
0
141
Member Avatar for inni2626

Hello Everyone, Am working on a project with includes php and mysql database.Everything works fine but i fail to make the validation work or i guess don't know how. I got a form and i would like if the user input numeric or less character to submit an error message. …

Web Development php
Member Avatar for sftranna
0
301
Member Avatar for dheerajm

hello i am developing a website and i have a problem. when i enter a keyword in my search tab, it works fine and displays all the products matching with the keyword. when i click on a single product the product page opens fine also. but i want all the …

Web Development php
Member Avatar for senthilvignesh
0
118
Member Avatar for vijayram

Hi everybody, i asked many times.but i cannot get expected result.so i asked agian. anybody plz help me. this code,did not display fancy box.the requested content cannot be loaded message display. i created planmate url. $(document).ready(function(){ $(".planbooks").fancybox(); $('#planbook-content').bind('click',function() { $.ajax({ type :"post", catch:false, url : $("#planbook_planmate"), data :{title_name:'title_name',} success:function(data) { …

Web Development php
Member Avatar for pritaeas
0
104
Member Avatar for ping0ping

Hi, my jQuery link is not working. Its only work if I'm not using `href` attribute on that link. Currently its only functioning when I put the `URL` into `alt`or `title` attribute for example. When I put the url on `href` attribute it will not run as AJAX. Sorry if …

Web Development javascript javascript-jquery php
Member Avatar for ping0ping
0
172
Member Avatar for hwoarang69

my image database: image_id user_id image(long blob-store images) image_name...etc on gallery.php i just want to print all the image of who ever is loged in. here is what i did: first i got username and id of whoever is loged in. $user = $_SESSION['username']; $id = $_SESSION['user_id']; than i select …

Web Development php
Member Avatar for pritaeas
0
699
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

Web Development asp.net
Member Avatar for kvprajapati
0
233
Member Avatar for jeffadrian

here is my sql data from my search.php page mysql_connect("localhost", "username", "password") or die( mysql_error() ); mysql_select_db("dbname") or die( mysql_error() ); mysql_query("SET NAMES utf8"); $find = strtoupper($find); $find = strip_tags($find); $find = trim ($find); mysql_query("SET NAMES utf8"); $data = mysql_query("SELECT * from database WHERE upper($field) LIKE'%$find%' ORDER BY Catalog ASC"); …

Web Development php sql
Member Avatar for jeffadrian
0
251
Member Avatar for furqankhyraj

<td><a href="$_SERVER['PHP_SELF'] . '?id=' . $myrow["article_tittle"] ">'.$row["article_tittle"].'</a></td> what's the error in above code, its showing error Parse error: syntax error, unexpected T_STRING in ...../class.article.php on line 64 Please identify

Web Development php
Member Avatar for MarPlo
0
236
Member Avatar for Patiodude

I recently converted all my website's files to .php, including my index.html and 404 page. Everything worked fine until I clicked a dead link, and no 404 page came up. Naturally, I figured I forgot to update the .htaccess file. After doing so and re-uploading it, every page on my …

Web Development apache http-protocol php
Member Avatar for |-|x
0
252
Member Avatar for ping0ping

Hi I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp ----> index.ctp I managed to get the content of page.ctp using below method. $.get('http://localhost/pages/10', function(data) { console.log(data); }); But based …

Web Development javascript-jquery php
Member Avatar for ping0ping
0
166
Member Avatar for hwoarang69

Notice: Undefined index: lastid in C:\xampp\htdocs\login_test\gallery.php on line 29 and broken links $lastid = mysql_insert_id(); <img src='$row[lastid]' width='200' height='200'></img> line 29 : $row[lastid]

Web Development php
Member Avatar for hwoarang69
0
493
Member Avatar for trektrak

Ok.. at first I wanna try to put "include.php" on the php.. but it goes around and around.... this is the case... if ($v_name=="") $query="DELETE FROM key_show WHERE code='$v_name'"; else{ $query="insert into key_show(code) values('$v_name')"; mysql_query($query) or die(mysql_error()); } The problem here..the system keep inserting data...it shouldn't be like that yea..it …

Web Development php
Member Avatar for trektrak
0
123
Member Avatar for |-|x

Hi All I'm looking for ideas or suggestions about how to implement this feature. The concept is I have 2 dropdown select boxes, with data that is not directly related (in the sense that there is no identifiers or foreign keys or anything within the data itself) but that have …

Web Development asp.net javascript
0
105
Member Avatar for hwoarang69

iam using long blob to store my images and it works fine untill user upload huge image like 2000x2000. than i get erros like: Warning: mysql_query() [function.mysql-query]: MySQL server has gone away in C:\xampp\htdocs\login_test\upload.php on line 41 Warning: mysql_query() [function.mysql-query]: Error reading result set's header in C:\xampp\htdocs\login_test\upload.php on line 41 …

Web Development php
Member Avatar for hwoarang69
0
225
Member Avatar for Dani

Hi, I'm completely desperate for some help. I am getting a handful of reports that DaniWeb keeps crashing the web browser. Most of these reports are coming in from Firefox. Supposedly the problem is fairly consistent. I *cannot* duplicate the problem no matter how hard I've tried. I spend a …

Member Avatar for neatric
0
448
Member Avatar for ofir0803

Hi I find it hard to define the** job title **for this job. On the one hand this is a client side developer, but on the other hand the job responsibility's are much more then that. can you help me define a job title for those responsibility's at our Operations …

Web Development career cms
Member Avatar for neatric
0
260
Member Avatar for CoolAtt

hi all, i have 3 php websites , each one requires login (same username+password for all of them) they run on apache virtual hosts on the same machine. i want to centralise login on a single page by adding 3 forms on a page so that when i click on …

Web Development apache php
Member Avatar for diafol
0
257
Member Avatar for anand01

hi all I am new to JSTL , I need to display content in JSP using JSTL. Its Student information project I have list of students , i need to display them in jsp using jstl, my servlet code try { UserList userList = dataCon.getListUsers(strClassId); session.setAttribute("userList",userList); response.sendRedirect("/CMS/classsearch.jsp"); } catch (Exception …

Web Development cms display java-jsp session
Member Avatar for rajesh1158
0
1K
Member Avatar for subtlehulk

Hello. I have a little problem with some work i've been given to study and i am meant to build a little bingo application. We have to modify our co-workers' code so that it fits out own little scenario. I've chosen to do a British Bingo card application and my …

Web Development html-css javascript
Member Avatar for JorgeM
0
4K
Member Avatar for McLaren

Hello, is there a way to be sure that you not missed to test some function? I want to test lets say all posible functions, but it lot of them and you might easily miss. It would be good to get notices or something like that on which functions has …

Web Development php
Member Avatar for McLaren
0
103
Member Avatar for McLaren

Hello, today I am experimenting with unit testing functions, on codeigniter, but that does not matter, the same question is for everything in PHP, or maybe not only in PHP, but general with functions that connect to database. So lets say I have such function: public function turnview_by_franchise_id($franchises_id, $clients_id, $date_from, …

Web Development php php-codeigniter
Member Avatar for McLaren
0
226
Member Avatar for westerncj

Can someone help me with wiring up my search parameters. I have txtboxes on my webpage and a search button. So far I can only search for an ID. How can I expand this to include searching for AssignedTo, Location, Department, Model, InkType, Status, AquiredDate? Here is my code. Can …

Web Development asp.net
Member Avatar for westerncj
0
106
Member Avatar for Maha Sh.

Hi all, I am designing a log in page and every day i face a new problem :'( The code now is working fine but i want to add exception to check if the Login Id and the password are not exist in the DB table I tried to put …

Member Avatar for Maha Sh.
0
132
Member Avatar for veledrom

Hi, I have a XML file and want to put this line it but doesn't work. Is there any way of doing it? Thanks <?php header('location: goback.php'); exit; ?>

Web Development php xml
Member Avatar for vibhaJ
0
231
Member Avatar for PF2G

Hi, i'm doing a search system where you search the reference of a product and it shows a list of all results, but i have one prolem. Is that i can't do the seperation of the products by its material: $ref=$_GET['q2']; $query_prod="SELECT * FROM produtos WHERE referencia LIKE '%".$ref."%' ORDER …

Web Development php
Member Avatar for PF2G
0
166
Member Avatar for elya158

Hi, I'm building a battleship game that has multiple sessions over an apache server. It's a server/client containing servlets & jsp's. Let's say i have a jsp page that shows all the boards, for each session i want this page to be refreshed as soon another player makes a move. …

Member Avatar for johannsig
0
1K
Member Avatar for hwoarang69

i though repost this issue. i am trying to display image from database. but broken image shows up. and dont how why. i tried debuging like echo, mysql_error, erron, but there are no errors. get.php <?php include("connect.php"); $user_id = $_SESSION['user_id']; $image = mysql_query("SELECT * FROM image WHERE user_id = $user_id"); …

Web Development display image php
Member Avatar for SpartakusMd
0
2K
Member Avatar for hwoarang69

i have a upload.php page where user can upload images to database. now i want to create gallery.php. where who ever is loged in can view all his photos from database. here is my struct for my gallery.php file gallery.php ______________________________________ (1)at top there is going to be menu and …

Web Development image mysql php
Member Avatar for jeremym001
0
140
Member Avatar for Vanquish39

Hey guys i have a problem and I'm starting to fall short of solutions. Here is the scenario. I created a student registration HTML file and a servlet to answer this file. The problem is the submit button doesn't work on the html form. I have tried dozens and dozens …

Member Avatar for komalikaa
0
463
Member Avatar for azareth

i have this code, it's purpose is to automatically add a colon when the index is 2, i have done it, but when replacing(overwrite) index 2 where (:) is, you can replace it with a different char, so basically colon will be removed. and also what if the user has …

Web Development javascript
Member Avatar for azareth
0
2K
Member Avatar for vijayram

Hi, everybody, user post the plancard.click the evryplanbook display popup page with content how can i make it. anybody plz help me. <p><div id="planbook-content" class="float" onclick='<?php echo url_for('@planbook_planmate') ?>' > <div><img src="/uploads/planbook/<?php echo $planbook['photo'] ?>" alt="" /></div> <div> <span class="field-label"> Title: <?php echo $planbook['title_name'] ?></span></div></br> Country: <?php echo $planbook['country_id'] ?></span><br …

Web Development display php
Member Avatar for diafol
0
1K
Member Avatar for itisnot_me

Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far var map = { 'flammable': 'inflammable', 'duh': 'no duh' }; $.each(map, function(key, value) { var key = value; }); alert(duh); …

Web Development javascript
Member Avatar for itisnot_me
0
202
Member Avatar for hwoarang69

i got a wired error below: 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 'Ö£'}€l‘¸â:m™ëînYWñ×KDnšC=¨ŠnÂRoÕö¨ºk„Ý·ÇçÓQ' at line 1problem uploading image $image = file_get_contents($_FILES['fileupload']['tmp_name']); $image_full_name = $_FILES['fileupload']['name']; $image_size = getimagesize($_FILES['fileupload']['tmp_name']); if(!$insert = mysql_query("INSERT INTO …

Web Development php sql
Member Avatar for hwoarang69
0
327

The End.