MySQL Near date range
Hi, I've been trying to sort out some issues I've been having with a query to fetch dates from an events based web app I've done. Currently, the query looks like this.. $listresult =...
View ArticlePopulate a form based on dropdown selections.
Hi I have a 'categories' mysql table and a 'subcategories' table. I need to make a form so the site owner can remove subcategories as needed. I was think of having a form with 2 dropdowns on it, the...
View ArticleThe option is not in dropdownlist if the check by contained data
//countercashadminlocation.php <?php session_start(); if (empty($_SESSION['is_logged_in'])) { header("Location:login.php"); die(); // just to make sure no scripts execute } ?> <?php...
View ArticlePHP File Uploading $_FILE empty
$_FILE uploading is empty. I've been doing this upload 2 days but my image file won't move to the site directory, and I dump the $_FILES I see that everytime I post It returned empty, but on my...
View Articlehow can i delete value in database through html form?
<?php include('connection.php'); if(isset($_GET['id'])) { $id=$_GET['id']; $query1=mysql_query("delete from news where id='$id'"); if($query1) { header('location:news_list.php'); } } ?>
View ArticleMail Form little help
Hi im a web design student and i need to do a simple mail form for a firm and i need 2 make it 2 work, now ive made this , but the thing is if i enter all fields and skip the SECTOR menu the submit...
View ArticleExecution stops at $objWriter->save
I am executing a php script from my home directiry in linux, script is executing but at the end of the script when it encounters below steps, it stops. This statement is create file. I have write...
View Articleexport images from folder to excel file using php
Hi all This is DSR(PHP novice) from India and i am stuk in a probelm.. Is it possible to export images from folder to excel file using php? if possible then please show me the way. Regards DSR...
View ArticleNeed Help Reloading Previously Selected Checkboxes
Hello fellow PHP developers. I have been stuck on a problem I just can not figure out. I am developing a couple forms (insert and update) that users fill out. On this form is general user...
View ArticleMysqli insert parsed array containing original original tags
I would really like for someone to take a little time and look over my code. I'm parsing some news content and I can insert the initial parse into my database which contains the news URL and the title....
View ArticleCurly braces when breaking for loop?
I'm learning PHP from the book, PHP & MySQL in Easy Steps but when I reached the section on breaking loops I think the author is a bit unclear about how many braces are used and therefore I cannot...
View ArticleExecuting outside script using exec()
I have a page that makes a call to an outside php page that creates a txt file and stores it on the server, attaches the file to an email then deletes it. Everything works except the bolded line...
View ArticleUnique counters
Hello i have a question, how to make a daily - weekly - monthly unique counter like, daily = when new day starts save old day.txt begin new day.txt weekly = when new week starts save old week.txt...
View ArticleHow to use quotation marks and apostrophes in Xpath
I'm trying to pick out items from an XML file by their titles using Xpath in DOM, but because some have apostrophes, and others have quotes, it doesn't work. I've tried replacing the apostrophes using...
View Articleneed help with login code
Hi I'm not sure if I am in right place... I used some online code, adapted it to my site and it does not work!! I think it is a small problem, perhaps of the php file not getting the correct data...
View Articleselect field with multiple sub-categories - too inefficient
I have a select box that filters categories. However, there are also sub-categories, and sub-sub-categories, etc. <form method="GET" action="categories.php"> <div class="form"> <select...
View ArticleSort By Date
I am trying to sort by date my date posted format is the following 4/9/2013 -> Month / Day / Year I am using the following query (I want to put the newest at top) $mainQuery = "SELECT...
View ArticleNeed a method to fire an iframe pixel within PHP script
Hi, Does anyone have a solution or have had to implement a PHP setup where you fire iframe pixels from your script based on conversions from an external page. FYI: the script where the iframe code...
View Articleoutput the data in each different tags
Hi guys, I have stored data in a MySQL database and I've output it in PHP. I want to know how I can output the data in different <span id="text1">` tags from `<tr><td>` tags....
View ArticleSimple Encryption Routine VBA to PHP URL Encoding Problem
Hi everyone first time poster here wOOt! Question is about encryption in Visual Basic then dercrypted on PHP Here are my encryption decryption functions they work fine. The problem is when I pass...
View Article