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

echoing and debuging

I'm not sure why but I can't get $notes to print. I'm very new to these methods and Was wondering if anyone could tell me where I'm going wrong and how I can debug I'm similar circumstances.

View Article


automatically insert into database

suppose i've one starting data(1/12/2013) and final date (26/12/2013). What i want is that to update the database with the difference between the dates every day...   means start data | Final Data |...

View Article


My register script why can't i use else there?

Get error:  Parse error: syntax error, unexpected T_ELSE in C:\wamp\www\cursetube\scripts\user\register.php on line 130   <?php include 'db.php'; $regfname = ""; $reglname = ""; $regage = "";...

View Article

Instead of 0.1, how to show as 0.01?

Hello,   I need to shwo $percent if it is below 0.10 to be 0.01 for example.   case $timenow < $todayInfo['sunrise']: // is it pre-sunrise // get last night's sunset $nighttime = true;...

View Article

2 Warnings

Hi, when I try to access my php file I get 2 warnings:   Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /disk3/daniel/public_html/client/test.php on line 8 Warning:...

View Article


accessing a variable from procedural through a class

I am trying to access a variable through a class, and can't work out how to this. class test { function method() { if (isset({$testing})) { echo {$testing}; } } } $testing = 'it works'; $thetest = new...

View Article

How to use sticky forms for MD5 passwords?

Hello i wonder how to use sticky forms for password with MD5? If you don't know what sticky forms is i will explain.   Explain. You have a page and your user will register on it. Then the user write...

View Article

Show data from mysql

Hello Everyone, I am trying to do something I have never done before and can't figure out any help is welcome. ok here we go,   I have for example 5 textboxes.   Barcode Name Date Place  Comment   Now...

View Article


Image may be NSFW.
Clik here to view.

php email

hello all,   i have a simple, im sure to you guys, problem that i just cant find the answer too.....   i have this code below on my page and i need a small code that will email me the email address......

View Article


SESSION token

hi do you have any idea how session token works? 

View Article

dynamic copyright

I am using this code and the result is "© Copyright 2013 - 2013". I want if possible if the current year is the same with the copyright year to display only one. for example the display will be "©...

View Article

Image may be NSFW.
Clik here to view.

Odd ImageJpeg() Output

Hi guys, this would be my first post here as a new member .   Let me start what my purpose right away, I have this piece of code trying out the ImageJpeg() function.   <?php // Create a blank image...

View Article

Is it possible to display database contents randomly on radio button

I have a quiz program, it is working but it shows the options of the questions in the same order ie currently the correct answer of each of the question will be displayed as the last option only. Is...

View Article


Image may be NSFW.
Clik here to view.

What could be wrong!

Hi all, I am going bald on this one. I wonder what could be wrong. I could login to my local server but cant login in a live server!   thanks all   <?php if(isset($_POST['login'])){...

View Article

Image may be NSFW.
Clik here to view.

Update multiple rows with multiple fields from a form into MySQL based on...

Hello .. I need some help with this .. I have a user database where an admin can add/delete users and search for them on a website..    What i want is a possibility to update user details..   Its a...

View Article


Image may be NSFW.
Clik here to view.

hotel reservation(get checkbox value and save to database)

please help me in my problem ...   first is it will show the room available and then the user will select a room(there are 3 rooms that can be reserve)...i want it can select more than 2 room....after...

View Article

JOIN AND ORDER BY

Currently I have a query set to do a search based upon no TimeOut and for a particular location using the $tablename table. That looks like:   $query = "SELECT * FROM $tablename WHERE TimeOut =...

View Article


Contact form on my website

Hi Guys   I've just finished a new website and for some reason i'm having issues on the php code for the contact form.   I want a Name field ( Manditory) Phone field, Email field and message field. The...

View Article

Access Denied For user

Hi All,   I am stuck at the very first part of my site, and have no idea why I and getting the below error message. I have tried recreating the user in the mysql database with the correct username and...

View Article

help with inserting data into mysql

could someone help me i can't seem to insert data into mysql table and don't know whats gone wrong //create_cat.php include 'mysql.php'; include 'header.php'; echo '<h2>Create a...

View Article
Browsing all 13200 articles
Browse latest View live