39,323 Topics

Member Avatar for
Member Avatar for tgr0ss83

Not the prettiest edits, but does the job, and it's fast :) Sorry Cereal, i know it's like taking crayon to a Picasso :) [CODE]<?php $file = "http://mis.nyiso.com/public/realtime/realtime_gen_lbmp.csv"; $f = fopen($file, "r"); $ln= 0; $theData=array(); $nyc = array(); $millwood = array(); $hudvl = array(); $dunwood = array(); $nycLmp = array(); …

0
75
Member Avatar for geaclaesson

Hi guys, Used this forum a bit today to find answers for a bit of scripting that I'm attempting. It's been 5-6 years since I last did anything like this, so bear with me. My question is; why does this generate results from Dec 12 2011 and not from Dec …

Member Avatar for geaclaesson
0
569
Member Avatar for stranger_on_way

I want to open up a link (of another site) on new page in iframe. For example when the link on page A is clicked, it opens a new window(Page b) of same website and make the link of another site to open in iframe.. Please help....

Member Avatar for diafol
0
185
Member Avatar for Buppy

Hi, I have data like this - [CODE] Someting Object ( [_values:protected] => Array ( [key1] => something, [key2] => something else, etc... [/CODE] How do i access that _values:protected part? I tried $name->_values:protected['key1'], but it gives me an error. Thanks

Member Avatar for diafol
0
148
Member Avatar for dunktap

Hey all, I am trying to figure out how to enable images to be saved as an image file when i display them in php. Right now when i right click on the image, it says save image as.. but then it wont save it as anything other than the …

Member Avatar for qazplm114477
0
171
Member Avatar for bsewell

Hello, I want to make a simple website, and friendly urls would be a great step towards that. I have been trying this for 2 days without success. [url]www.mydomain.com/join[/url] redirects to [url]www.mydomain.com/index.php?path1=join[/url] [url]www.mydomain.com/forum[/url] redirects to [url]www.mydomain.com/index.php?path1=forum[/url] [url]www.mydomain.com/forum/getting-started[/url] redirects to [url]www.mydomain.com/index.php?path1=forum&path2=getting-started[/url] These directories do not actually exist. They are going to …

0
137
Member Avatar for philip.s

Hi Guy's, I need to write a simple application that posts to twitter using (most probably) the Zend framework. This application should work for only 1 user. I have tried numerous different tutorials, but keep getting stuck. Please help :-(

Member Avatar for StephNicolaou
0
86
Member Avatar for tgr0ss83

I have a CSV that i can parse no problem at 10am.. But by 5pm it does grow to over 100,000 lines that cuases the script to hang. I have to parse the CSV into an array that i can then shape. If anyone has any idea how i can …

Member Avatar for cereal
0
4K
Member Avatar for aaloo

this is my code in which i am getting $_POST['name'] from a html form.i am using mysql_real_escape_string function that should escape characters like these [ICODE]\x00 \n \r \ ' " \x1a[/ICODE] but when i enter these special characters in the form .it is going in the database. it should be …

Member Avatar for pritaeas
0
188
Member Avatar for aaloo

this is a part of my code and i m getting this error somewhere in this part[ICODE] Parse error: syntax error, unexpected T_ECHO[/ICODE] [CODE] $data = mysql_query("SELECT * FROM $title") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { ?> <div id="username"><? php echo $info['name'] ?></div> <div id="statement"> <? php echo …

Member Avatar for aaloo
0
3K
Member Avatar for Buppy

Hi, I'd like to know if there is possible to check in the CakePHP model class if a certain field has validated in the process. An example: 2 fields - field_one and field_two. field_one must not be empty, but field_two must contain a value that matches a regular expression pattern. …

0
46
Member Avatar for akmal1981

Dear prog wizards, Please help as I am noob at this. I got source code from other website in which I made small changes to cater my need. I have created a database called 'a_database' and table called 'property' using XAMPP 1.7.7 . The columns are 'id', 'Type', 'Price' and …

0
51
Member Avatar for harsha.netpem

Hello, I am using this code and getting this error given below:- [B]Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\database login new\buyers_substance_view.php on line 46[/B] [B]Please check the code is given below:-[/B] [CODE][/CODE] <?php $title="Buyers Substance Report"; $page_name="Buyers Substance Report"; include("includes/header.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for Fest3er
0
742
Member Avatar for ppetree

I need a little help architecting a process that is a little beyond my skill set so if I could get a little help in how to approach this, I would appreciate it. Basically: BigBox Corporation has 15,000 employees in multiple countries. They want to build a communications system consisting …

Member Avatar for Fest3er
0
150
Member Avatar for dunktap

Hey everyone! I am working on a project that involves querying a mysql database using php, and I am running into some issues. html form is in list_files.php and the query is in query.php .. i also attached my mySQL database which has 2 tables: only the file table is …

Member Avatar for dunktap
0
168
Member Avatar for joban.ali

Hi I am creating an basic online menu ordering system, what i want to do is display the typical chilli level, vegetarian and nut icons/symbols along side a dish name. I have a product table which has all the required field which will be called out. spice level, veg and …

Member Avatar for joban.ali
0
82
Member Avatar for Jashandeep
Member Avatar for DustinG
0
114
Member Avatar for daniel36
Member Avatar for Ezzaral
0
88
Member Avatar for swissknife007

[CODE]<?php $time1=time(); $time2=$time1+5; echo $time2-time()."Current time<br>"; setcookie("user","Abhi",$time2); // ECHO "<html> // <body> // <form action='cookie2.php' method='get'> // <input type='Submit'> sybmit // </form> // </body> // </html> // "; ?> <?php while(isset($_COOKIE["user"])) { echo "hi ".$_COOKIE["user"]; echo time()."Current time if<br>"; } if(!isset($_COOKIE["user"])) { echo "hello"; echo time()."Current time else<br>"; } ?>[/CODE] …

Member Avatar for diafol
0
179
Member Avatar for shamsidah

[CODE]<?php include 'connection.php'; $data = mysql_query( "SELECT Date,color_code, COUNT(color_code) FROM paintshop WHERE Date BETWEEN '$startDate' AND '$endDate'") or die('error'); while($rw = mysql_fetch_array($data)){ ?> <td width="59" height="25" class="style5Copy"><?php echo $rw['Date']; }?></td>[/CODE] i want display the dates between i post from the form.. eg: start date = 1-12-2011 until end date 7-12-2011 …

Member Avatar for HITMANOF44th
0
86
Member Avatar for klemme

Hey, I know this is a stupid way of doing it, hence the question..: How can i do this smarter: [CODE] if (($url == 'billeder') or ($url == 'billeder=1' or $url == 'billeder=2' or $url == 'billeder=3' or $url == 'billeder=4')) { include("includes/billeder.php"); } [/CODE] I just want to see …

Member Avatar for HITMANOF44th
0
116
Member Avatar for shailu.thakre

anybody can solve my php syntax problem?[CODE] $sql = "SELECT entries.*, catagories.cat FROM entries, catagories WHERE entries.cat_id = catagories.id ORDER BY dateposted DESC LIMIT 1;"; [/CODE]

Member Avatar for fobos
0
96
Member Avatar for srdva59

hi, how can i add a pantone like this [url]http://img.pai.pt/mysite/rendermedia/42/45/2/192881b9-8e84-44ff-b109-bac29d7726de_LARGE.jpg[/url] ? thanks for your help :)

Member Avatar for pritaeas
0
50
Member Avatar for klemme

Hi all, I have a site, where everything is on the index.php page - and then I include files when needed. Im not sure if this matters, but now you know..the page I am trying to create pagination on, is in an included file. So the page/url i am working …

Member Avatar for rotten69
0
164
Member Avatar for whiteyoh

hi all, when i send an email, the headers include the path to the file that executed the script in the x-source-args parameter. can this be supressed?

Member Avatar for pritaeas
0
61
Member Avatar for bjones531

In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets …

Member Avatar for rotten69
0
472
Member Avatar for Swiftle

Hello, I'm new to the whole regex thing, and I'm having trouble understanding the syntax. I have to separate a line by different criteria like spaces, brackets and others. Here's and example line: "$#*! My Dad Says" (2010) {Code Ed (#1.4)} 2010 What I want to have is: $#*! My …

Member Avatar for pritaeas
0
127
Member Avatar for stanley87

Hi,guys!May i know how to i seperate -keyword and +keyword from an array? eg, i have $arrayList = array(+book,+school,-play,-study); How to i seperate those +keyword into 1 array and -keyword into another array? You help will be kindly appreciate. Best Regards, Stanley

Member Avatar for stanley87
0
129
Member Avatar for nikki05

Hi, I want to redirect domain.com to [url]www.domain.com.I[/url] found may people mentioned about Rewrite Rule as shown below in .htaccess. I could not find .htaccess file in my apache. There is httpd.config file. How to force domain to display [url]www.domain.com?[/url] Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule ^(.*)$ …

Member Avatar for pritaeas
0
150
Member Avatar for charter

I have an index.php. page which is a search on my MySQL database to update HTML tables in my results.php page. I have a form on the index page as the search which is like this: <form action="results.php." method="post"> Search:&nbsp;<select name="searchtype"> <option value="Date">Date</option> <option value="Wk No.">Wk #</option> <option value="Artist">Artist</option> <option …

Member Avatar for ToniAdams
0
5K

The End.