I just bought a used book which is the PHP and MySQL Web Development (4th Edition) but the cd was not included in it I just want the chapters example code specifically the include_fns.php since they don't tell you how to code in this file.
If any one knows where I can find the books source code examples please let me know.
...
Hi,
I'm new to object oriented php, so I'm not sure which classes do I need for programming. I want to write little program, to show information from the database. There is a web page with the form for user input above and some space for the database output. User can enter something and programm logic will query the database and make so...
Parse error: syntax error, unexpected
T_VARIABLE
This is the line that got the error:
$list[$i][$docinfo['attrs']['@groupby']] = $docinfo['attrs']['@count'];
Is there anything wrong?
...
I have built a simple TAPI app that will run on a machine on the LAN that connects to the office PBX, it allows me to receive dial, answer, hangup etc commands (which I was planning on receiving via a udp packet). I did this with the intention to integrate the office CRM system to the phone system.
Having done this and testing using a s...
I am using the following SQL query:
Select * from table1 as t1, table2 as t2 where t1.id = t2.col
but my problem is that both the tables have fields with same name, place.
So how can I select the column with name place from table2 in my PHP code?
I want to use the following php code
while($row_records = mysql_fetch_array($result_rec...
I want to experiment with creating images/thumbnails of PHP output. A place where one would use this is in a CMS with various modules, and then have a thumbnail of how the output of how each module looks. This should include images and all.
Any tips/ideas how I would go about doing this?
...
Is there a template language for PHP that's almost similar to the Django template language?
...
I usually use phpmailer for sending emails, however I have a client that uses a strict MS Exchange environment. They will not set up the SMTP connector for Exchange.
Is there a way to send email through an Exchange server if SMTP is not setup?
Thank you.
...
I have an issue, I'm trying to insert a new row into a postgres database table and get the following error
ERROR: duplicate key violates unique constraint "n_clients_pkey"
Here my query
insert into n_clients(client_name) values( 'value');
I'm using postgres 8.1.11
PostgreSQL 8.1.11 on x86_64-redhat-linux-gnu, compiled by GCC gcc...
i'm trying to do a search engine for a briefing system.
I'm using a many to many relationship style setup with 3 databases representing the relationships.
comms_briefings is where the data is stored for the briefings
search_tags is where the tags are stored
briefings_tags is where the relationship is formed
i have this code already w...
Possible Duplicate:
execute sql query from sql file
i have a file named file.sql which is exported from a database 'desktop'. i want import this old database to my new database 'laptop' using php scripts. i opened the file.sql using fopen and read all contents using fread and stored whole content to a string named $sqldata. how ...
I am using the MVC functionality in the Zend Framework 1.9, and it appears that Zend_Layout is not encoding the view content using UTF-8, despite this being set in the heading.
The layout script is shown below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<...
I am doing a clean install of OS X Snow Leopard and I was wondering what people think should go into the ideal web developer environment?
Can I get a good rundown of things you would do when setting up a clean system?
My main focus is HTML, CSS, PHP, and Actionscript work. But I would also like to dabble in other languages and framewo...
Please help in code that i am unable to print values of associative array after extracting itself
class display{
protected $variables = array();
function set($name,$value) {
$this->variables[$name] = $value;
}
function render(){
extract($this->variables);
// ?? to print values of $variable array
}
...
I have a CSV file on my server, if a user clicks on a link it should download, but instead it opens up in my browser window.
My code looks as follows
<a href="files/csv/example/example.csv" class="pagination">Click here to download an example of the "CSV" file</a>
It's a web server normal webserver where I have all of my dev work on...
Xdebug displays "var_dump" in its own way with more useful information, but in Firebug is unreadable.
I was wondering if there was a way to display the var_dump in Firebug to make it readable without disabling xdebug and also keeping the display of the var_dump made by xdebug in PHP.
Examples of var_dump displayed in Firebug:
$test = ...
Ok, here is an issue: in the project i'm working on, we can't rely on server-side sessions for any functionality.
The problem is that common captcha solutions from preventing robotic submits require session to store the string to match captcha against.
The question is - is there any way to solve the problem without using sessions? Wha...
Hi all,
I have to convert all my echo/print string from my php source code file to PO file(for the language translation),
is there any batch convector available for the same.
...
If I have this array:
<?php
$array[0]='foo';
$array[1]='bar';
$array[2]='foo2';
$array[3]='bar3';
?>
And I want to delete the second entry ($array[1]), but so that all the remaining entries' indexes automatically get adjusted, so the next 2 elements whose indexes are 2 and 3, become 1 and 2.
How can this be done, or is there any bu...
hi,
I have made a block in its body I have added php code that is :
$var = md5(time());
echo "http://maps.google.com/maps?q=http%3A//mysitename/sites/default/files/content.kml?q=" . $var . "&keepThis=true&TB_iframe=true&height=560&width=1024' class = 'thickbox'>View Works On a Map";
?>
the above code causes an iframe to open with thic...