Print data in pdf or send data to printer
Hi I have a problem to send php page with data to printer directly. Below code is working fine but only print issue. Pls help me Html page <style type="text/css"></style> <?php...
View ArticleParse error: syntax error, unexpected 'INSERT' (T_STRING)
Hello everyone, I've been a few days working on solving this problem. My compatriots unfortunately can not help me. Which one of you can help me? Parse error: syntax error, unexpected 'INSERT'...
View ArticleLoop Through Large CSV?
Im trying to loop through a 145mb csv file but I keep getting Fatal error: Allowed memory size of xxxxxxxxxx bytes exhausted (tried to allocate 71 bytes) I've tried setting the memory limit to 512m,...
View ArticleHow to set file pointer to end of file when opening a file?
Using fopen how do I set the file pointer to end of file when opening a file?
View Articlebrowsing nested array using reference
Lets say that we have several nested arrays, like in this example: $some_array = array( 'key_foo' => 'var_foo', 'key_bar' => array( '_key_baz' => '_smth' '_key_other_baz' => array(...
View ArticleIndex not Validating
Greetings, Working with an assignment in my school I am having an issue getting an Index to validate. Been bashing my head against this all day. I am new to PHP and still learning. <?php /*...
View ArticleNeed guide for a big website
Hello everybody I have experience of web programming. But I do not have any experience of a big fully structured Web Programming. Therefore I ask for guides from members: Explanation: This website...
View ArticleCreating XML file from HTML form
This might be confusing so I am going to do my best at describing this. I have a simple HTML form that I am trying to create an XML file from the data. Here is the link to the form....
View ArticleXML Parsing problem from Tumblr
Can some please help me figure out why this isn't working? Just trying to show a page on my site show photo posts from a tumblr account. So I found this code to pull the XML data and then echo it on...
View Articleob_clean() - Trouble Understanding Code
Hello. I'm having a difficulty understanding the code below: <?php set_error_handler('errorHandler', E_ALL); function errorHandler($number, $message, $file, $line){ if(ob_get_length()) ob_clean();...
View ArticleEcho Success message
Hello to all php gurus, I'm new here and hoping someone kind can help me with a small issue on php form i have. 1st i would like is to echo a success message the same way the script echos error...
View ArticleHow to create a message board signature generator
Not too sure where to start...but this is what I am looking to create for my site: http://www.internationalvapersclub.com/sig/ You basically enter in the date you quit smoking How many cigs you...
View ArticleHow to call to method from other Class at the same time
I've got a class method that is working fine on my localhost but when I included on the website im working on it aint working, and I see that the site only requires static call. I use to call like...
View Articleimagecreatefromjpeg() and the URL IMAGE PATH contain dynamic values from...
The Url with calling dynamic values from database not working forimagecreatefromjpeg('$file_path'). There must some quotes or slashes need to be include in the $file_path url. What will be the correct...
View ArticleSmall code - small problem - can't find it!
Hey Wondered if anyone could help me with this. I had this right a couple of days ago but for some reason it wasn't in my code yesterday and since rebuilding, has ceased to work. I have a multi file...
View ArticleUndefined offset 1 issue
Hi. I have built a small script to use in my cart which is run on each page load. I am using AJAX to load this page each time a change is made. The code looks at a string of numbers which change...
View ArticleWHats wrong with this?
Hey Guys, I have an Array Count On file uploads (Upto 5 Files) Called Upload[0]; Is this right to use an individual filename from the array as a variable? $image_upload1 = $_POST['upload'[0];...
View Articleinsert value from two dropdown list to same mysql field
Hi, I have a mysql table with following fields id – int company – varchar(50) cost – decimal(5,2) Updated - datetime Example of data: 101 company1 120.10 2013-05-22 10:21:19 102 company2 121.20...
View Articlehref an require_once
Can anyone tell me why this won't work? <a href="<?php require_once('includes/scotch_gard.php'); ?>">Scotchgard Carpet Protector</a> I want it to just display the link text and run...
View ArticleSumming array value
i have a MySQL query that loops multiple times, but not always the same amount of times. Each loops gets data from a specific sales campaign. The loop to query the data works fine...
View Article