Generate PDF report from php
Hi, I am using php code to query to a database and the results will be used to generate a report. If I want the report to be generated in a pdf format how should I do it ? ...
Hi, I am using php code to query to a database and the results will be used to generate a report. If I want the report to be generated in a pdf format how should I do it ? ...
I have input fields ,which I process with AJAX and send it on another file. The value of the inputs is always different. How in the file ,where I get the data from AJAX ,to change the variable id always when I get the data from AJAX. Example: I get the data from AJAX in this file: <?php $id=1; echo '<div id="$id"></div>'; ?> Then I d...
Hello, How do I play videos in facebook fbml application? Is there a tag for that? ...
Hiya. I have a script that parse the database and create php classes to work with that db. (zend-db-model-generator). is there a way to in php to have a DBMS agonstic commands so on each type of db it will return the table structure ? so it doesn't matter if i use the pdo driver once for mysql and once for postgresql, it will still ret...
I have a product catalog using apache, php and mysql. I need to put it on a CD, so it can be run from it direclty. What possibilities are there? ...
I'm new to PHP and have a two part question. I need to take rows from two separate tables, and arrange them in descending order by their date. The rows do not correspond in order or number and have no relationship with each other. ---EDIT--- They each contain updates on a site, one table holds text, links, dates, titles etc. from a bl...
Hello i new to smarty and i am creating simple php application with using smarty i have file header, left ,body, and footer. main index.php and tpl file in templates folder containig templates.tpl other design tpl i am calling in templates.tpl in index.php index file contains url encode code. i have also folder shop which ha...
I'm trying to determine why some WordPress plugins use register_activation_hook(FILE, 'activate_plugin') while others use the add_action('init', 'activate_plugin'); ...
I'm sick of waiting for my developers to fix this, so I decided to ask you guys. I'm trying to modify what they've already given me, so sorry if the setup doesn't make a whole lot of sense. I could probably change it but want to keep as much of the existing table setup as possible. I've got a MySQL table with a bunch of entries in it, a...
Hello, What should I put into class to be able to do so? $data = array( 'a' => 12345, 'b' => 67890, ); $object = new Class($data); echo $object->a; //outputs 12345 echo $object->b; //outputs 67890 ...
Hi all, i am writing my own news article section on my site, and store each article in a mysql database. Each article has a unique id, a title, the main body and thanks to the jquery plugin, it's own url-friendly slug. However, I am not sure how on earth I go about fetching the article when linking to the slug. How do i get: www.site...
Hi! Say I have a database called Poll and have these two table structures. poll table has fields pid (auto_inc) and title. choices table has cid (auto_inc), pid, and text. How do i add a value to the poll table and at the same time get the pid of the most recent entry in the poll table to be used as the pid in the choices table? So f...
Note,it's not what the recent hiphop project of facebook,I just want to convert it into opcode,not c/c++. Is there a solution yet? A demo is always the best! ...
Hello all, I have some questions about using mysqli, queries, and related memory management. The code here is just to clarify my questions, so don't dump on it for error checking, etc. I know that needs to be done :) Suppose I have something like this: @ $db = new mysqli($dbhost, $un, $ps, $dbname); $query = "SELECT field1, field2 ". ...
Each page on my website is rendered using PHP. Each PHP file uses around 10 includes. So for every page that is displayed, the server needs to fetch 10 files, in addition to the rest of it's functions (MySQL etc). Should I combine them into a single include file? Will that make ANY difference to real world speed? It's not a trivial tas...
Hi. No flame wars please!! Researching/Looking for a CMS/DMS that I can use that will be suitable to modify. I'd prefer a php/lamp based approach if possible. I've looked at quite a few CMS/DMS apps, and can't find one that meest my needs, but a bunch that are all about the same. So i'm going to have to modify whatever I choose. I'm ...
I am trying to integrate a site search feature into a client's site. I've created an test search engine with Google Custom Search, but I can't sort out how to make it work with the following criteria: The search form posts back to the site The POST page uses an API to get the result back from Google I display the results within my sit...
how can i retrieve the full directory tree using SPL ? ...
There's an open book quiz for a job application I'm doing, and it's obviously highlighted a shortcoming in my php knowledge. Note, I'm not asking for the answer directly, I'm asking to be shown what I'm misunderstanding/lacking in how to answer it. The question is: 3. Finish the following class to print "Person->name has been zapped" ...
I am creating a Rule in D6 to notify a person when "approved" volunteer hours reach a multiple of 8. Hours are logged as a custom content type with a numeric CCK field, and "approved" is a Flag. I was doing a modulo 8 calculation but realized that won't suffice. If a user has 7 hours approved and puts in another 2, the Rule returns false...