389 Posted Topics
Re: 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'); | |
Re: have you tried using $delimiter=chr(207); while ($data = fgetcsv($csvfile,1000,$delimiter,'|')) | |
Re: 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) | |
Re: 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 | |
Re: > all of a sudden ... > i didnt change anything in my code So what did change? | |
Re: 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) | |
Re: you should parse $nfname $copen is a file handeler, not a file name | |
Re: 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 … | |
Re: 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]` | |
Re: [http://www.w3schools.com/jquery/jquery_ajax_intro.asp](http://www.w3schools.com/jquery/jquery_ajax_intro.asp) | |
Re: 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? | |
Re: 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) | |
Re: 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/) | |
Re: Put a var_dump($rows) in your while loop , see what it says | |
Re: 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. | |
Re: You probley have an error in your query. (assuming $lobj->disp returns false on fail just like mysql_query) ![]() | |
Re: 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 … | |
Re: You can install plugins for both | |
Re: 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)){ | |
Re: > 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 … ![]() | |
Re: [http://www.tomjepson.co.uk/mysql-select-from-table-where-date-today/](http://www.tomjepson.co.uk/mysql-select-from-table-where-date-today/) | |
Re: You have to send a `Content-Type:multipart/mixed` email [see 3e example](http://webcheatsheet.com/PHP/send_email_text_html_attachment.php) | |
Re: 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 ![]() | |
Re: 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 | |
Re: check the value of ` $request->getPost('remember')` | |
Re: or [https://dev.skype.com/skype-uri/skype-uri-tutorial-webpages](https://dev.skype.com/skype-uri/skype-uri-tutorial-webpages) ![]() | |
Re: basicly php tells your webserver how to create a html-page that gets sent to the browser | |
Re: 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) | |
Re: You'r looking for [mysql-real-escape-string](http://php.net/manual/en/function.mysql-real-escape-string.php) | |
![]() | Re: 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? |
Re: > <select onChange="openOffersDialog(this.value); This calls a javascript function not php | |
Re: before you load your images in you php-file `ini_set('memory_limit','16M');` ![]() | |
Re: I don't see the transformation between the two. What are you trying to do? Atleast show us the code you have sofar ![]() | |
Re: It a template, for what? It probley means that it is an included file. | |
Re: > 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? | |
Re: 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. … | |
Re: on [http://www.opensourcecms.com/](http://www.opensourcecms.com/) You can test and trie out allot off different wiki's, blogs, forums, image galleries, ... ![]() | |
Re: yes, use [imagecopyresampled](http://php.net/manual/en/function.imagecopyresampled.php) but you know and use that already so what is the questin? | |
Re: 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) | |
Re: I think you look for a [custum Post type](http://codex.wordpress.org/Post_Types) for use in a plugin | |
Re: are you moving your old blog to the new installed? | |
Re: 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) | |
Re: 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) | |
Re: remove the space between li and :hover in the css #navMenu ul li:hover ul{ | |
Re: 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', … | |
Re: take a look at this: [$_SERVER](http://www.php.net/manual/en/reserved.variables.server.php) | |
Re: why not use [substr](http://www.php.net/manual/en/function.substr.php.) and [strpos](http://www.php.net/manual/en/function.strpos.php)? | |
Re: 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 |
The End.