52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pedal123

I also have a string stored in a session variable but can't figure out how to get it back out again... THIS CODE IS PAGE 1. <form action="page1.php" method="post" id="register-form" novalidate="novalidate"> <b>Postcode:</b> <input type="text" name="search" /> (required)<br /> <?php @session_start(); if (empty($_POST['search']) && isset($_POST['submit'])){ echo'Please enter postcode i.e. ZZZZ'; } …

Web Development php session
Member Avatar for broj1
0
3K
Member Avatar for daniel.conlinjr.1

Fatal error: Call to a member function add_content() on a non-object here is my index: <?php include ('lib/connect.php'); include('lib/nav.php'); if($_POST['add']): $obj->add_content($_POST); endif ?> Here is my function: <?php function add_content($p) { $title = mysql_real_eacape_string($p['title']); $body = mysql_real_eacape_string($p['body']); if(!$title || !$body): if(!$title): echo"The Title is required"; endif; if(!body): echo"The Body is …

Web Development cms first-post php
Member Avatar for daniel.conlinjr.1
0
295
Member Avatar for zjony.rashed

Hi,I can't display Multiple checkbox save value in my veiw page. Here is insert/save value details: Model --------- public function saveInstituteOfferdCourse($data = array()) { if ($this->db->insert('tbl_course_offred', $data)) { return $this->db->insert_id(); // tbl_course_offred = "Table name" } return FALSE; } ---------- Controller ---------- public function saveCourses() { $data = array(); $this->load->library('form_validation'); …

Web Development display mysql php session
Member Avatar for veedeoo
0
277
Member Avatar for danarashad

Is there a way to change the mail spool location? The location is on the c drive. Is there a way I could change the location to another drive?

Web Development coldfusion
Member Avatar for CutterBlades
0
143
Member Avatar for jasonmark238

Hi friends, Waht are the differences between Sessions and cookies in PHP? Please explain with examples. Thanks & Regards Jasonmark

Web Development php session web-browser
Member Avatar for diafol
0
258
Member Avatar for shuka79

Hi Guys I am currently using the opendir to display all files and folders in a specific directory code below. It displays great however it display each file twice. If it is a folder then it will just display once. I have check the folder on the server and there …

Web Development php
Member Avatar for shuka79
0
175
Member Avatar for bradly.spicer

Hey, Been writing my own php snippet but I'm having a few issues. I have a drop down which is populated by the mysql db however when I click delete it runs an action and throws an error. Form: <form action="deleteuserform.php"> <select> <?php $sql="SELECT id,customer_name FROM Customers"; $result =mysql_query($sql); while …

Web Development php
Member Avatar for remunance
0
238
Member Avatar for anandschiru

How to extract an article which is a html page from a rss feed in php.

Web Development php xml
Member Avatar for diafol
0
115
Member Avatar for GraficRegret

I have been searching all morning and I cant seem to find a reliable source for a decent slideshow script, I am working on creating one myself now, if anyone has any helpfull hints or tips, or even if you have some code snipets that would be usefull for my …

Web Development mysql php
Member Avatar for GraficRegret
0
1K
Member Avatar for soapyillusion

Hey all Im have trouble passing this jquery functions results thru an ajax call. I want this function: $('.sidebar_bookmark_linkrel1').attr('href') to pass as string, any ideas?

Web Development javascript javascript-jquery
Member Avatar for soapyillusion
0
130
Member Avatar for McLaren

Hello, I am thinking about making one small project with PHP, javascript, becasue I don't have experience in other languages too much. It would be something like addition to a windows program which uses postgre sql database. I see that I can make one feature from that database. For me …

Web Development php
Member Avatar for McLaren
0
255
Member Avatar for brugernavn

Hello :D Im 100% noob to javascript.. now, i have this script: <script> if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { document.write(position.coords.latitude + '_' + position.coords.longitude); }); } </script> and i need to send the location data to a php script.. Is there any easy and smart way to do souch things? The easy …

Web Development javascript
Member Avatar for NardCake
0
191
Member Avatar for narai

Hi, I am facing these problem. I gt 4 category. So for each category, I want to count number of people in each of it.I already have the query but i dont know how to put it in array with $i =$i +1 to count it when no of people …

Web Development html-css javascript-jquery
Member Avatar for pritaeas
0
196
Member Avatar for coder91

So I have a table that stores various prices for things. The ID is set as the primary key and doesnt allow nulls. I then have a stored procedure that takes the data entered into the form (ID) included and it works out the cost of that particular item. This …

Web Development asp.net
Member Avatar for JorgeM
0
116
Member Avatar for noman90

Hi all web devlper and java devlper how you im really enjoy this amazing group i have one quesstion i need a insvisble counter they show all the think on my site just like page views country keyword and most popular pages

Web Development java-jsp
Member Avatar for stultuske
0
131
Member Avatar for Umesh17_89

Hello ! I have 2 divs in my webpage. One div has links (using anchor tag). When I click on the link, I want the webpage in href url to open in other div. Can I do it using Javascript. Regards -Umesh

Web Development javascript
Member Avatar for sujeshmarar1
0
2K
Member Avatar for bradly.spicer

Hey all, Recently been working on a website which now looks REALLY good in FF and Chrome however in IE it looks absolutely terrible... is it possible to make it so anyone who goes to the site on Internet explorer is automatically taken elsewhere? like a new directory? Thanks

Web Development php
Member Avatar for bradly.spicer
0
197
Member Avatar for seema serrao

how to clear browser cache in php after logout

Web Development php
Member Avatar for AARTI SHRIVAS
0
138
Member Avatar for AARTI SHRIVAS

i am just start to learn php and using dreaweaver for practice, i just want to know that like other languages can we debug php code if can then how we debug php code in dreamweaver or any other editor for php?

Web Development ide php
Member Avatar for AARTI SHRIVAS
0
387
Member Avatar for Venter

<!DOCTYPE html> <html> <head> <title>Registration Form</title> <link rel="stylesheet" media="screen" href="style.css" > </head> <body> <div class="head" style="background:#343434;width:auto;height:100px"> <br/> <h2 Style="color:white"><center>NAVAL DOCKYARD, VISAKHAPATNAM-530 014 </br> APPLICATION FOR ABSORPTION OF TRADESMAN(SKILLED)</center> </h2> </div> <form enctype="multipart/form-data" class="contact_form" action= "<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <ul> <h4>Registration Form </h4> <hr/> <li> <label for="name">APPLICANT PHOTO :<sup style="color: …

Web Development display html-css image php
Member Avatar for AARTI SHRIVAS
0
148
Member Avatar for Violet_82

Hi all, I was looking into determine the size of some text on 2 websites (basically it is 2 websites a dev and a live copy and I wanted to determine whether they are the same on every browser) and because I couldn't find a way to do that in …

Web Development javascript
Member Avatar for Violet_82
0
149
Member Avatar for neha05

Hii I am trying to do that when i clicked on particula Category ,only subcategories of tht clicked category show and rest subcategories ll hide ....im getting problem because it is in loop ,if im applying any script it implement on all..so please any better way to do it ..so …

Web Development php
Member Avatar for neha05
0
260
Member Avatar for Monstette

Having problems with my add button, it works . . . when it wants to. its OK when adding but when trying to add after deleting it gets moody and doesn't work. I didn't use a loop but there's a counter for the sake of the IDs cause i will …

Web Development javascript
Member Avatar for kanna443
0
986
Member Avatar for simplypixie

My brain won't work (in fact it doesn't often when it comes to comparing dates). I need to check whether a date returned from the database is 7 days or less from the current date (can't do it in database as it is used to highlight events where entries close …

Web Development php
Member Avatar for simplypixie
0
142
Member Avatar for coolvasu

Hi everybody, i have problem in my php code (it just showing nothing....means no error no results).......can anybody tell me what is wrong with this code.....i'm new to PHP........here is my code <?php try { $config=array( 'DB_USERNAME'=>'root', 'DB_PASSWORD'=>'' ); $conn=new PDO('mysql:host=localhost;dbname=scc',$config['DB_USERNAME'],$config['DB_PASSWORD']); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo rand_id(); } catch(Exception $e) { echo …

Member Avatar for coolvasu
0
341
Member Avatar for missc

i am developing a hit counter in my web application to increase whenever a new user visits my website so that i will now the number of hits from different users so far. but the problem is that it is increasing even though it is the same ip address

Web Development java-jsp
Member Avatar for jalpesh_007
0
234
Member Avatar for cloud09

I have an input that renders completely weird in IE8 - the issue fixes itself however as soon as you enter something into the input. The input is not floated. When the page loads, the entire input, except the actually text in the input are moved down and right by …

Web Development javascript
Member Avatar for Wagaweze
0
164
Member Avatar for RazorRamon

Ok I dunno why this isn't working. The alert outside the droppable says 0 but the alert inside the droppable says undefined. Anybody have an idea as to why? I want to start keeping a running count to when a person drops an object into the match div. I dont …

Web Development javascript javascript-jquery
Member Avatar for Airshow
0
680
Member Avatar for showman13

Good afternoon, I have an MP3 of a short presentation that I would like to make available on the index page of my members site. Actually it is already there... and it works. But, the problem that I have is that when you click on the link, it opens the …

Web Development php
Member Avatar for showman13
0
209
Member Avatar for Navlag

Hello. I received some code that has a section in which the variable $DB is established. $DB =& new DB($db_username, $db_password, $db_dsn, false); It does this by calling a function named DB, which is shown here below. /** * Constructor * * will set $DB->error and return false if login …

Web Development php
Member Avatar for veedeoo
0
217
Member Avatar for coder91

So i have a gridview that contains data is entered in a form from various drop down menus. I am now creating a new field in the form which is a multiline text box. This is to appear in the gridview aswell. However it won't appear for me, is it …

Web Development asp.net
Member Avatar for devinnrock
0
120
Member Avatar for soapyillusion

any idea how I can get a string to return from an ajax call taking the href from an object using: (javascript) $('herpy').attr('href').toString() into a PHP controller as a string so it can be used as a parameter in sql code? Everything I try results in this bizzarre array being …

Web Development php
Member Avatar for soapyillusion
0
92
Member Avatar for Violet_82

Hi guys, if you have an anonymous function sitting within an each function and I would like to use the this parameter within the anonymous function, how would I do it? Currently it returns an error saying `"SyntaxError: missing formal parameter setTimeout(function(this){"`. I am trying to apply a delay of …

Web Development javascript
Member Avatar for Violet_82
0
142
Member Avatar for HiWorld

So I have a form customers fill out. When they check a few checkboxes t150 (t8) through t440 (t45) they will get the intended version of the quote with all of the checked models included in the quote, but if they check one of the models in the t150(t8) through …

Web Development php
Member Avatar for HiWorld
0
125
Member Avatar for eklem

Hello, I followed the tutorial from [this site here](http://www.html-form-guide.com/php-form/php-login-form.html) and have added the login/registration to my test site. The problem is I now need to add two currencies to each user. On the database I have created two rows for 'invested' and 'return' and need these to be unique to …

Web Development php
Member Avatar for eklem
0
262
Member Avatar for AleMonteiro

Hi everybody. I'm trying to insert an indented code inside another indented code, using the first indentation as base for the second. I mean, the second indentation must begin at the end of the first. The indentation i got working right, but it is adding some undesired line breaks, that …

Web Development asp.net c# regex
Member Avatar for AleMonteiro
0
243
Member Avatar for AleMonteiro

Hi, I'm starting with BI, Analysis Services, Cubes and ADOMD.NET. I searched a lot and was able to make some demos, but the performance is not good. What I'm trying to do it's a Dimension tree view explorer. Currently I have the following code: [CODE] CubeDef cube = conn.Cubes.Find( "SCA" …

Web Development asp.net
Member Avatar for AleMonteiro
0
431
Member Avatar for mr0277

I have a div, absolutely positioned, originally non-visible that is shown at the position of an element icon (in elements listing) being clicked rendering its preview (top position of the preview is lined to the top of the icon clicked). When the element being clicked is positioned low on the …

Web Development javascript javascript-jquery
Member Avatar for gon1387
0
256
Member Avatar for riahc3

Hello I have a combobox which has some values. When I click on it and select a item (with my mouse, for now) I want to get those values. Im not sure if its mousedown or comboboxchange or how its called. Now Im a completely noob when it comes to …

Web Development javascript javascript-jquery
Member Avatar for Taywin
0
202
Member Avatar for jacob21

How to make HTML Page Full screen?? With "full screen" I mean that it should take all the space of user's screen,just like when we watch a video with the full screen model. I do not want the task bar/menu bar of the browser window display. Any suggestions??

Web Development html-css javascript
Member Avatar for jacob21
0
6K
Member Avatar for 86fallen#2019!

Hello friends! I have 2 problems! I built an e-shop local and... 1) when I add a product and then publish it, it doesn't appear in it's category. Does anyone have an idea about what might goes wrong? 2) Sometimes, when I either click "Save" or "Save & Close" buttons …

Web Development javascript
Member Avatar for 86fallen#2019!
0
142
Member Avatar for ayat abukhadra

Hello, Is there's a way to detect the browser re size on the client side using the java script ? Thanks in advance for helping =)

Web Development javascript
Member Avatar for ayat abukhadra
0
84
Member Avatar for riahc3

Hello By the way Javascript works Im not sure if this is possible but I would like to debug Javascript much like debugging C# or/and Java; I put a breakpoint in a line and press (for example) F5 so it goes to the next line/function and pauses and keeps going …

Web Development javascript
Member Avatar for riahc3
0
252
Member Avatar for GraficRegret

I am trying to delete pictures from the server that are associated with a specific item, that way when the user clicks on the delete button it will delete the item as well as all pictures associated with it, after doing a bunch of searching and experimenting I have this …

Web Development php
Member Avatar for GraficRegret
0
280
Member Avatar for Khav

Hello I want to extract content of a website found between some specific html tags.How can i achieve that with php. For e.g consider viewing google.com soure code.I want to extract data with <title> </title> tags and store it in a variable(its "Google" in this case) Bascially script navigates to …

Web Development html-css php
Member Avatar for veedeoo
0
271
Member Avatar for soapyillusion

Hello everyone, I am once agian running into a problem with something that's normally simple, yet lovely cakePHP has to make all so very hard. I'm once agian tasked with improoving the bookmarking application on our website. This time I am suppose to have the url save the date: start …

Web Development php
Member Avatar for soapyillusion
0
143
Member Avatar for barnamah

Hi, I haved a form where elements in a rows can be added by clicking on "Add item". Once the item is added, use can remove that item by clickon on the "remove" link. One of the fileds in the row has integer value and I want to added the …

Web Development javascript javascript-jquery
Member Avatar for gon1387
0
230
Member Avatar for designershiv

Hello Friends, I need your help again sample code `<div id="generic_photo125_addinputs"><ul><li><input type="button"/></li></ul></div>` The above code generated automatically, i like to hide the button inside the li, Now the problem is all the ids, class everything is generated dynamically,so i cant able to target the button based on the selector,Is it …

Web Development javascript javascript-jquery
Member Avatar for gon1387
0
148
Member Avatar for divyakrishnan

Hi.. I am doing an online quiz software.I have total 100 questions with 5 in each page.I want to go to a particular question number and I want to fix the focus on that question(Not on the top of the page).Each question is inside a label.I am calling a function …

Web Development javascript
Member Avatar for ajbest
0
126
Member Avatar for aoi.serizawa.9

hey guys im trying to update my database here, the code is running fine session_start(); $school_id = $_SESSION['school_id']; $faculty_id = $_SESSION['user_id_fac']; $subject_id = $_POST['subject_id']; $year_grade_level = $_POST['year_level']; $subject_handeler_id = $_POST['subject_handler_id']; $student_grades_boy = $_POST['student_grades_boy']; $student_grades_girl = $_POST['student_grades_girl']; $values_boy = array(); foreach ($student_grades_boy as $key=>$data) { $student_id_B= $data['studnt_B_id']; $grade_B = $data['studnt_grade_B']; $values_boy[$key] …

Web Development php
Member Avatar for ajbest
0
319

The End.