Quantcast
Channel: PHP Freaks: PHP Help
Browsing all 13200 articles
Browse latest View live

Math Array with Limit

Hello, I not to confident with arrays but I'm sure one could be used instead of all the code I've written below. Any help or direction is appreciated. My database records have unique id's. Each id has...

View Article


Echoing values with the ternary operator

Hey,    I have a question. I am trying to echo out constant using the ternary operator, but its not echoing. Below is one line of code I am using. Any suggestions? echo defined(STORE_ADDRESS) ?...

View Article


Debugging code beyond basic?

Hi all,   I'm trying to work with SugarCRM's REST service, whenever you add a new email it passes the email off to a class called HTMLPurifier.    I'm having issues though, passing emails to the...

View Article

Php Mail Function Error

Hi there   I am trying to use the php mail function, but I am receiving this error: The requested URL /mailform.php was not found on this server.     PHP     <?php if (isset($_REQUEST['email']))...

View Article

Help trying to create a dynamic browse by page

Hey guys !   I am working on a browse page that will allow an end user to browse any name category they want , simply by going to one dynamic php page labeled as browse.php   This browse page will then...

View Article


display multiple ID values from one url

I'm working on an application that prints a fields from rows of a MySQL database.  There is a checkbox next to each row.  For each checkbox selected, it sends the unique row ID to the next page in the...

View Article

Handling Views/Templates in MVC

I'm looking for some advice on the best ways to handle the "view" part of the MVC pattern, specifically the loading of the view files, dependent on where you are in the system, what actions you've...

View Article

Random Width/Height and Random Rotation

Hi,  New coder here! I'm making a php If loop that will post my image a set number of times (depending on user input in a text box), and I have that all figured out. However, I can't figure out how to...

View Article


Working with images and databases

Hello, I am attempting to work with a map that I want to do, and get points from a database such as 39.22 -85.17 41.12 -83.05 41.12 -80.36 39.22 -82.55 and I was going to use my map...

View Article


Image may be NSFW.
Clik here to view.

Dynamic server response

Hi. Can anybody tell me how I can make the server send out data to connected users upon an event? The case is say 2 people are sending messages, chatting, instead of having ajax calls every second is...

View Article

can anybody make better this code?

Hi everyone Here my PHP code .. its looking so bad,but work :s i have 2 table with the both row is same //PHP retrive data <? $id = isset($_POST['id']) ? (int)$_POST['id'] : 0; if($id > 0) {...

View Article

Really basic question

So I'm assuming this is a very basic question. I've made... and by "made", I mean downloaded the code offered free by someone else and am using it... a login page. It all works since the person who...

View Article

Function to validate $_POST array - Return another array - not quite there yet

function validate() { //Returns 'false' with no errors //Returns 'true' with errors $ERROR_Validate = false; $ERROR_Specify = array(); foreach($_POST as $a) { if ($a == "") { $ERROR_Validate = true;...

View Article


unknown error

Hii i'm seeing this error.... Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global...

View Article

Same content showing please help!

Ok so basically I have created a simple blog for my website which does what I want it to do pretty much I'm having a problem with the date though If I echo the date out in to my page it just shows the...

View Article


Newbie PHP Help - Echo Images

Hi,   I'm trying to display some records from a MySQL database which worked fine.  I have now changed the code to display in image and I seem to have broken it. Could anybody help me sort this out?...

View Article

Web based RPG game

Hey people! I am new here... I need help on my small project. So, back in 4th grade (I am now 10th) there is an online game called pokemon crater. I am now trying to recreat that website. And yes, I...

View Article


no get parameters, is my syntax out somwhere?

For some reason i'm not passing any get parameters.  Is my syntax out? (line 33)   I'm using dreamweaver's syntax highlighter and it isn't showing any errors.     The form takes me to:...

View Article

Need help with creating constants through a form

Hey,    I have a from on a custom web application that sets up constants. The issue that I am running into is that, I am trying to Define a constant called "Google analytics" However when I enter the...

View Article

Image may be NSFW.
Clik here to view.

search form to search two columns from mssql table

Hi we have a inhouse Win32 application that saves data to MSSQL. I am trying to create a php search form that will search a table which has following data.   my search form <form name="myform"...

View Article
Browsing all 13200 articles
Browse latest View live