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

PHP Variable to javascript

So I want to pass a php variable to the following line of code:   echo '<script type="text/javascript">alert("Registration number already exist");history.back(); </script>';     I thought I...

View Article


in_array parameters

I can't figure out what's wrong with this. The program works, but the deduplication doesn't work. The error I get is : Warning: in_array() [function.in-array]: Wrong datatype for second argument in...

View Article


Help update database from while loop

Hello, I have this piece of code it it currently only updates the last value in the databse. I need all of the fields to update there value. Can anyone help me out ?     <fieldset>...

View Article

Backslashes in a form

Hi, I have a problem with the form on my website here:http://www.yeparticles.com/order/ The problem is that all ' (single-quote), " (double quote) and \ (backslash) are escaped with a backslash...

View Article

simple form with jquery-not working

hello all, am beginning to use jquery.. i am using the code online.. all works fine but when i remove 2 lines it fails.. these two lines are simple input fields.. plss help..no idea what am doing...

View Article


Image may be NSFW.
Clik here to view.

Validating variables

I am trying to write a function that will do all the string validation on my project. I am doing this so that I can validate a charset and string length in one place, which makes it easier to maintain...

View Article

simple css tabbeb menus-last submit input button not showing

Before asking any questions,i would like to thank phpfreaks forum for answering my questions.. Really helpful, thanks again..  i have this tabbed menu.. it worked nicee.. but when i add input submit at...

View Article

Select Option box to display data from table

Hi,   How can I use the select option box to display an option value saved to a table and use the same select box to also select any other value If I want to change the saved value?    

View Article


Image may be NSFW.
Clik here to view.

How to make two different person checked the report

login.php <?php session_start(); mysql_connect("localhost","root") or die(mysql_error()); mysql_select_db("kime") or die(mysql_error()); $branchcodename = $_POST['branchcodename']; $password =...

View Article


Get firstname & lastname through session id?

Hi, how would I make it so that my page returns and echos database information? I've used the mysqli method in most of my coding, examples below and basically I want it so that it querys the firstname...

View Article

php variable problem

<form name="form1"/> <input type="text" name="code1" value="D50" size="7" maxlength="10" onblur="chkidpro(this.value,'provider1');" /> <input type="text" name="code2" value="" size="7"...

View Article

help with PM system

Hi guys, im looking for someone to help me with a PM system for my site at www.just-vent.com   Its very basic and the graphics are awful, but im trying to get the bare bones of the site before i style...

View Article

Aliasing an Array, per se

So, what I'm trying to do is rather simple. I have some input fields, and upon POST, I want to tell whether the user has entered values or not, and if not, to echo the values later on in code.   The...

View Article


MySQL in PHP not printing results

Hi guys  I'm trying to print the results from a query but it keeps printing "No Result" but it should print  one query result. Can someone please help?   My code is as follows       <form action=...

View Article

Image may be NSFW.
Clik here to view.

display duplicate values in multidimensional array

HI everybody, I have this multidimensional array ($TableauNotes[$k][$j]), see image 1. and i wanted to display duplicate values of column 6 in a new array like this (see image 2) with this function:...

View Article


PHP ERROR

countercashadminselect.php <?php session_start(); ini_set('session.bug_compat_warn', 0); ini_set('session.bug_compat_42', 0); if (empty($_SESSION['is_logged_in'])) { header("Location:login.php");...

View Article

Image may be NSFW.
Clik here to view.

Can anyone help with this save to mySQL database problem?

I have a website where a user can create an account and log in to it (Made it off of a template). This part works fine but I want to add a new section to the mySQL table. I want this section to store a...

View Article


Sessions

Hey guys, I'll try to keep this short and simple. I've spent hours upon hours (probably 30-40+ over the week) trying to decide the best and most secure route to take with php sessions, I wouldn't...

View Article

Get value from dropdown menu/list

Hi at All   I have the problem, that I do not know, how to get the value from the selected option in my dropdown list. Hope someone can help me. I have the follow code:   <!DOCTYPE html PUBLIC...

View Article

count coding is working in localhost but in 000webhost i get error

this coding is working in localhost <?php include("include/connection.php"); $profile= mysql_query("SELECT count( user )FROM (SELECT user FROM computerrepair UNION ALL SELECT user FROM computersale...

View Article
Browsing all 13200 articles
Browse latest View live