Xampp Install - Large numbers calcs not working like preceding smaller ones?
//I am calculating payroll contributions to 401k to give employees a baseline outlook for 20 years to check against their portfolio quarterly reports. It all works until numbers start getting larger....
View ArticleConditional not working
Hey Guys, Im trying to create a registration page, that will have some validations and then register my user into my DB. I am fairly new to this and i am following a tutorial. long story short i...
View Articlepreg_replace_callback vs while loop line by line for template compiler
Hello , i built php class for parsing html templates , and i used preg_replace_callback function for parsing template while loops & if conditions , for loop , ... etc i repeated the function...
View ArticleTemplate and include
I want to separate the presentation from the business logic, and i wrote a class. Template engine working like any other. Example: page.tpl <html><body> <div id="content">...
View ArticlePHP writing to textbox
Hi there, I wish to write a set $var into a textbox. So far, I have gotten: <?php $result = "Hello world!"; //Do your logic anywhere but be sure to set the result here ?> <form method="post"...
View ArticleHow to add Values
Hi I want to say thank you all for your help. I have one more question. How do I add a field from a form to a field in mysql database. What I want is if the field on the form has 200 and the field in...
View Articlehow to output the data from php to html?
Hi guys, I need your help. I have stored the information in mysql database where I can print it out in my php using with this following code: <?php session_start(); define('DB_HOST', 'localhost');...
View Articlephp connection
Hello! i need some help this the php problems i have a main database administrator module and the table name is DATABASENAME inside the databasename theres a lot of schema name that i need to pickup...
View Articledependency injection and error handling
Hi there, I have been writing my own MVC framework which is basically a lightweight version of ZF1. One thing I am tying to improve on in my version is the decoupling of objects. As I am on a tight...
View Articleusing fopen within a loop
Hi, I am trying to loop through all of the users on my site and grab their game stats from another site to do this i am using fopen within a foreach loop, this works nicely for about 30 members but...
View Articlesearch results: extract month & year from the date field
Hi I have following tables: And following is my PHP code (mysearch.php) which will search and list the relevant results in the same page. For example lets say in the search criteria when someone...
View ArticleBroken image when showing from MySQL
Hey there! I have this big project due 5 days and I really need some help. I've made a imagesharing website where you upload images to a MySQL database into a table called images (with id, name and...
View ArticleDisplay results in a text box to be edited for update query
Hello, I'm trying to display the results of my query in a text box so that they can be edited, if need be, and updated in the database. I'm getting the error below, with the code below. I've tried a...
View ArticleSetting/Selecting value from drop-down in PHP - Please help!
Hello ppl, I am a newbie to PHP and I am stuck at a point which may be simple for you experts. Thus, please give your advice on the following: Current Situation: The existing code of a web-page...
View ArticlePHP alternative to mysql_data_seek for ODBC
I am converting a PHP-mySQL application to a PHP-ODBC application. ie getting the database migrated from mysql to DB2. 1. While using mysql i used mysql_data_seek function so as to reset the recordset...
View ArticleEcho repeating a table header that it shouldn't be
Hi there, I'm trying to display the results of a MySQL query in PHP and HTML, however for some reason, it is creating a table for each row of results. When it should be just one table, containing the...
View ArticleParse error: syntax error, unexpected '`', expecting T_FUNCTION
i get the following error in my site.... Parse error: syntax error, unexpected '`', expecting T_FUNCTION help please!!! <?php final class MySQL { private $link; public function...
View ArticlePHP Checkboxes Auto Select
Hey guys, Not sure if anyone is able to help me out I'm trying to split up some data from a table and select check boxes depending on if the tag exists: Database: Table: Tags Fields: id, tag...
View ArticlePHP code in html Index page
Hi I am trying to include a script that I have tested on its own (and works fine), into the index.html page of my website. I am placing it in an Aside (on the left), when I run this on my ISP test...
View Article