389 Posted Topics

Member Avatar for lloydsbackyard

is this what you mean? main.php define ('BASEPATH', 'calling from main'); include ('include.php'); include.php if (! defined('BASEPATH')) exit('No direct script access allowed');

Member Avatar for almostbob
0
187
Member Avatar for PriteshP23
Member Avatar for PriteshP23
0
927
Member Avatar for PriteshP23

take a look at this: [http://www.sitepoint.com/forums/showthread.php?621278-Maximum-filesize-that-can-be-opened-by-fopen%28%29](http://www.sitepoint.com/forums/showthread.php?621278-Maximum-filesize-that-can-be-opened-by-fopen%28%29)

Member Avatar for PriteshP23
0
540
Member Avatar for khushhappy

If I see it right, you have 12 table rows and 11 values in your sqr1. This will give a error and will insert noting, giving you no last_insert_id

Member Avatar for khushhappy
0
179
Member Avatar for newbie26

> all of a sudden ... > i didnt change anything in my code So what did change?

Member Avatar for pritaeas
0
174
Member Avatar for aido89

I'm missing part of the code checkout [mysql_query](http://php.net/manual/en/function.mysql-query.php) and [mysql_fetch_assoc](http://www.php.net/manual/en/function.mysql-fetch-assoc.php)

Member Avatar for broj1
0
230
Member Avatar for blitznck_1
Member Avatar for blitznck_1
0
405
Member Avatar for london-G

your sitebar.html is a complete html including <htm><head> and <body> tags If you include this like so it will be part of an other html page that has its onw <htm><head> and <body> tags That messes thinks up. Change your sidebar.html so that it is only the div containg the …

Member Avatar for pzuurveen
0
220
Member Avatar for nerdynewf

Take al look at the stucture of the [$_FILES ](http://php.net/manual/en/reserved.variables.files.php)- variable. (scroll down about 3/4) basicly use like `$_FILES['theImage']['tmp_name'][$index]`

Member Avatar for pzuurveen
0
179
Member Avatar for Hazuan Nazri

[http://www.w3schools.com/jquery/jquery_ajax_intro.asp](http://www.w3schools.com/jquery/jquery_ajax_intro.asp)

Member Avatar for Hazuan Nazri
0
606
Member Avatar for newbie26

Is your computer you are running this code from a windows system? localhost? Or have you uploaded it to a server, and want to read the dir of the computer that runs your browser?

Member Avatar for newbie26
0
319
Member Avatar for joshl_1995

You have to change the value of your checkboxes using javascript You can use [window.opener](http://www.w3schools.com/jsref/prop_win_opener.asp)

Member Avatar for joshl_1995
0
124
Member Avatar for sanbhu2105

you need an table like retailerProduct - id, -ret_id, prod_id, price also I recomend to remove user_id from retailer; Because 2 people can like the same retailer favourteRetaler - id, user_id, ret_id [It's called database normalization](http://www.andrewrollins.com/2009/08/11/database-normalization-first-second-and-third-normal-forms/)

Member Avatar for sanbhu2105
0
253
Member Avatar for Fiorentino01^
Member Avatar for Fiorentino01^
0
354
Member Avatar for kg2989
Member Avatar for Syed Nasir ali

make sure that the url is http://localhost/... and not file:///C:/xampp/htdocs/... You get the wrong url if you right-clik ->open in brouwer on the file.

Member Avatar for pzuurveen
0
259
Member Avatar for kiLLer.zoh_1

You probley have an error in your query. (assuming $lobj->disp returns false on fail just like mysql_query)

Member Avatar for diafol
0
358
Member Avatar for kantigniter

I think the trouble is in your database design: >the tables are not related And yet they are. Put a foreign key(category_id) to table1 into table2. If you have 2 living rooms you have 2 rows in table2. Than do somthing like this SELECT table1.interior_category_desc, table2.* FROM table1, table2 WHERE …

Member Avatar for kantigniter
0
506
Member Avatar for davidkroj
Member Avatar for Shikha_1

line 72 `!mysql_query("UPDATE users SET activationkey = '', status='activated' WHERE (id = $row[id])")` this will not work because of the $row[id] also You probley want $row['id']) $query = sprintf("UPDATE users SET activationkey = '', status='activated' WHERE (id = %s)",$row['id']); If(!mysql_query($query)){

Member Avatar for pzuurveen
0
134
Member Avatar for furlanut

> 5000+ rows and 13000 populated fields sound like a job for the database itself. It's designed to handle large amount of data. In php you can run into memory problems and/or long prosessing times. and sending it all over the net so that javascript can handlel it, will increase …

Member Avatar for diafol
0
320
Member Avatar for sathish_nadu

[http://www.tomjepson.co.uk/mysql-select-from-table-where-date-today/](http://www.tomjepson.co.uk/mysql-select-from-table-where-date-today/)

Member Avatar for pzuurveen
0
145
Member Avatar for edensigauke

You have to send a `Content-Type:multipart/mixed` email [see 3e example](http://webcheatsheet.com/PHP/send_email_text_html_attachment.php)

Member Avatar for Tinnin
0
518
Member Avatar for maharrington

contact your server provider You server is configured to save cookys to /var/chroot/home/content/96/9375396/tmp/ But that diretory appears not to exist

Member Avatar for diafol
0
351
Member Avatar for davidjennings

I don't think // is a valid [mysql comment](http://dev.mysql.com/doc/refman/5.1/en/comments.html) as you use at line 70: web_customised_partners_case_study ON web_customised_partners.web_customised_partners_id = web_customised_partners_case_study_id // fix this join

Member Avatar for davidjennings
0
383
Member Avatar for eburlea
Member Avatar for showman13

or [https://dev.skype.com/skype-uri/skype-uri-tutorial-webpages](https://dev.skype.com/skype-uri/skype-uri-tutorial-webpages)

Member Avatar for diafol
0
255
Member Avatar for furalise

basicly php tells your webserver how to create a html-page that gets sent to the browser

Member Avatar for furalise
0
310
Member Avatar for rdtheclown

You have to process the form yourself and create an html-email look at example 4 from [function.mail](http://php.net/manual/en/function.mail.php)

Member Avatar for pzuurveen
0
185
Member Avatar for fheppell

You'r looking for [mysql-real-escape-string](http://php.net/manual/en/function.mysql-real-escape-string.php)

Member Avatar for fheppell
0
213
Member Avatar for mdemetri2

session_register deprecated as of php5.3.0 and removed as of php 5.4.0. use: [$_SESSION](http://www.php.net/manual/en/function.session-start.php) also if you pass the userename by $_SESSION wha also pass it in the url?

Member Avatar for Webville312
0
2K
Member Avatar for shilu2

> <select onChange="openOffersDialog(this.value); This calls a javascript function not php

Member Avatar for broj1
0
208
Member Avatar for wplay
Member Avatar for LastMitch
0
1K
Member Avatar for aithabuddy

I don't see the transformation between the two. What are you trying to do? Atleast show us the code you have sofar

Member Avatar for diafol
0
164
Member Avatar for lloyd.farrell.7
Member Avatar for MargateSteve

> Currently, each of these divs call a seperate page which pulls data from a MySQL database. > Why not make one ajax-call for all the div's at once to one singe php making one MySQL search?

Member Avatar for minitauros
0
189
Member Avatar for geneh23

because you removed the type var icon = customIcons[type] || {}; // will be empty var marker = new google.maps.Marker({ map: map, position: point, icon: icon.icon, // this will be emtpy shadow: icon.shadow // this will be empty }); so you put a marker on the map without an icon. …

Member Avatar for geneh23
0
372
Member Avatar for mrvijayakumar

on [http://www.opensourcecms.com/](http://www.opensourcecms.com/) You can test and trie out allot off different wiki's, blogs, forums, image galleries, ...

Member Avatar for diafol
0
536
Member Avatar for mjsmitten

yes, use [imagecopyresampled](http://php.net/manual/en/function.imagecopyresampled.php) but you know and use that already so what is the questin?

Member Avatar for pritaeas
0
196
Member Avatar for akkbkht

check out [http://nl1.php.net/manual/en/session.examples.basic.php](http://nl1.php.net/manual/en/session.examples.basic.php) [http://www.w3schools.com/php/php_sessions.asp](http://www.w3schools.com/php/php_sessions.asp)

Member Avatar for OsaMasw
0
327
Member Avatar for bops

I think you look for a [custum Post type](http://codex.wordpress.org/Post_Types) for use in a plugin

Member Avatar for bops
0
286
Member Avatar for kw42chan
Member Avatar for Fiorentino01^

your $_POST variables don't exist until after you submit your form You can use ` isset($_POST['submit']) ` to check if your form has been submited also take a look at [mysql_real_escape_string](http://www.php.net/manual/en/function.mysql-real-escape-string.php)

Member Avatar for TonyG_cyprus
0
291
Member Avatar for @Swathi

the compete guide on dates :[http://www.hunlock.com/blogs/Javascript_Dates-The_Complete_Reference](http://www.hunlock.com/blogs/Javascript_Dates-The_Complete_Reference)

Member Avatar for @Swathi
0
170
Member Avatar for andi-dev
Member Avatar for andi-dev
0
197
Member Avatar for akkbkht

you need to add each option-element to the select-element separately. So put the element.add insde the while loop: var element = document.createElement("select");//create select element element.setAttribute("name", "text"); var option = document.createElement("option");//create option element <?php //Server= localhost, Username= root, pasword = "there is no password" and db name = bsc_db. mysql_connect('localhost', 'root', …

Member Avatar for pzuurveen
-1
292
Member Avatar for davy_yg

take a look at this: [$_SERVER](http://www.php.net/manual/en/reserved.variables.server.php)

Member Avatar for davy_yg
0
207
Member Avatar for davy_yg
Member Avatar for davy_yg
0
153
Member Avatar for ferdinandmucos

why not use [substr](http://www.php.net/manual/en/function.substr.php.) and [strpos](http://www.php.net/manual/en/function.strpos.php)?

Member Avatar for ferdinandmucos
0
210
Member Avatar for mallows.yum

This code will put the same value's of the first emplyee into the varables $num times? To create a list of all employee's that match the search put the mysql_fetch_array and the html-part inside the while loop

Member Avatar for pzuurveen
0
305

The End.