Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
8
Posts with Upvotes
8
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
1 Endorsement
Ranked #888
Ranked #630
~26.4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for kkasp

I am creating the Simple Blog from PHP for absolute beginners book. I have worked through the book and my only error now occurs when I am logged in as the admin and try to Post a Blog. The errors I get are: Warning: array_push() expects parameter 1 to be …

Member Avatar for safety1g
0
392
Member Avatar for capton

Please i want to set sessions in my php file which includes a form but the session doesn't work.This is my code sample. I need help please! [CODE=php] <?php $conn=mysql_connect("localhost","root",""); mysql_select_db("my_db"); session_start(); if(isset($_SESSION['count'])) $_SESSION['count']=$_SESSION['count']+1; else $_SESSION['count']=1; if(!($_SESSION['count']=$_POST['reg'])) die("SESSION NOT SET SUCCESSFULLY!"); else echo "SESSION SUCCESSFUL!"; ?> <html><head></head><body> <form method="POST" action="<?php …

Member Avatar for capton
0
158
Member Avatar for davy_yg

I am trying to save data (link & picture) in banner manager. banner_manager.php [CODE] //SIMPAN DATA if (isset($_POST['simpan'])){ $id = $_POST['id']; $link = mysql_real_escape_string($_POST['link']); //$gambar = $_POST['gambar']; //print_r($_POST); die(); echo $link; echo $gambar['name']; } //Cek apakah ada file yang diupload if((!empty($_FILES['uploaded_file'])) && ($_FILES['uploaded_file']['error'] == 0)){ //$gambar = uploadPicture('uploaded_file'); $target_path = …

Member Avatar for davy_yg
0
206
Member Avatar for drewpark88

Hey Guys, I haven't touched PHP in awhile so I am kinda rusty. I made a validation method within my new request invite class and need some help. I took out all the other code that works so we can focus on checking if email exists. I am trying to …

Member Avatar for drewpark88
0
150
Member Avatar for gunnerone

How could i create x amount of checkboxes based on how many items are in a database and populate each check box with a php variable containing the data from the database. I have had a go and come up with the code below: But i cant seem to get …

Member Avatar for as.bhanuprakash
0
118
Member Avatar for raf.fredi

How to check textarea value is submitted or not on insert page? if (isset($share)){ //do stuff } or anything else? I'm using click function #share instead form submit. How to check #share is clicked, on insert.php page? config.php [CODE] $host="localhost"; $user=""; $password=""; $db=""; $link = mysql_connect("$host", "$user", "$password"); $con=mysql_select_db("$db")or die(mysql_error()); …

Member Avatar for Biiim
0
124
Member Avatar for 140fulton

I'm seeing a problem where some $_SESSION variables are passed from one page to another, and others are not. The session is setup on login, with user identity held in $_SESSION["id"]. At a later date, I want to shift the identity to another, subordinate account. The change is handled by …

Member Avatar for diafol
0
311
Member Avatar for tanu963

How to upload images, audio files, video files using single form and store their names in appropriate tables? database [CODE] CREATE TABLE IF NOT EXISTS `photos` ( `id` bigint(12) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) CREATE TABLE IF NOT EXISTS `audios` ( `id` bigint(12) NOT …

Member Avatar for diafol
0
177
Member Avatar for Pravinrasal

If I click on div first time it show alert and if i again click on div it will not show any alert box

Member Avatar for as.bhanuprakash
0
90
Member Avatar for jonnyboy12

Hello. I am new to php but not to c++; I'm trying to use a submit button to run some html divs and some gui. here is an example of this , very basic. [CODE] $hourglass1 = strip_tags($_POST['hourglass1']); if($hourglass1){ echo" MY DIV CONTAINERS"; } [/CODE] The problem is when i …

Member Avatar for diafol
0
209
Member Avatar for simplyhuman

Getting error as parse error-unexpected at line x and error message headers already sent..what does that mean?

Member Avatar for diafol
0
103
Member Avatar for deraad

I'm making a feature like stated in the title that gives suggestions based on what terms exist in the database; I have a working example below that works for one term. such as "oranges", or "yellow bananas". However, I need it to work for multiple terms so if my database …

Member Avatar for deraad
1
233
Member Avatar for FutureDev86

I am just toying around trying to learn javascript. I find it pretty neat. I am writing this code and I have been racking my brain for a while now. I know it's probably pretty obvious, but what am I doing wrong here? Thanks in advance! [CODE] function chooseGame() { …

Member Avatar for as.bhanuprakash
0
87
Member Avatar for Marauder

I'm making a little script using jQuery to send a sentence to a textarea by clicking on the text. It does this fine however, if I edit the textarea to remove a sentence manually, I can no longer click on the sentences to send them to the textarea. Don't know …

Member Avatar for as.bhanuprakash
0
422
Member Avatar for muralibobby2015

hello... i want ot select multiple vakues from dropdown and insert into database. but it is not working. any one plz help. and one thing when ever i retrive values from database selected values come in top of the dropdown and remaing values are come in bottom of the dropdown. …

Member Avatar for diafol
0
1K
Member Avatar for loligator

Hello all, I have a feeling this is easy to deal with (at least I hope so) but couldn't find much on google, probably because I'm not 100% sure how to word it. Here goes... We all know how there's different representations for apostrophes. There's the ’ character and then …

Member Avatar for sneldog
0
210
Member Avatar for as.bhanuprakash

Hi All, I need to validate the telephone number entered by the user in a form. Following are the conditions. 1. The length of the string should be 10. 2. The first character should be ZERO. 3. Remaining 9 characters can be any digits from 1-9. I am using the …

Member Avatar for as.bhanuprakash
0
119
Member Avatar for logonchristy

how to get popup window if new row inserted into mysql database for a particular table... That to be display inserted values in popup window... Advance thanx...

Member Avatar for moncy
0
236
Member Avatar for mrcniceguy

i have this weird problem and i dont know how to make it work. the problem appears after i consider the OR statement.without or statement the first part is working . So idont how to use this statement in mysql. i hope someone can help me. Down is my script. …

Member Avatar for mrcniceguy
0
361
Member Avatar for AdventDeo

OK I'm not really sure how to put it but I will try my best to explain my question. Basically I am really lost when it comes to arrays and for loops, so I need help badly. I have in my HTML Form about 20 checkboxes like this: [CODE]echo "<input …

Member Avatar for AdventDeo
0
180
Member Avatar for Pooja J.

Hi, I have one page session-bom.php, in which computer parts are availlable for shopping. e.g. mouse , keyboard ect. with the checkbox. and textboxes to enter quantity and label of prices. When user hits 'submit' button, only selected parts goes to the bill.php page and showing their price multiplied by …

Member Avatar for as.bhanuprakash
0
244
Member Avatar for Pooja J.

Hello to all, Please tell me the error from the following code. When I choose a file from 'file' field, then it update the image, but when I dont choose a file. It doesn't keep the same image, i.e. the image get disappear. What is the problem in my 'If.....else …

Member Avatar for Pooja J.
0
97
Member Avatar for sitie_aniem

i am creating a system and have problem with the function to convert year - year, month and date. the thing that i understand is the year is round for 365 days, and others i am not really understand of all. can you give explanation for this function so that …

Member Avatar for daryll1
0
688
Member Avatar for Pooja J.

Hi to all, Here is my code, I want upload file which are only images. All images with jpg, JPG, jpeg, JPEG, gif are uploaded successfully except with bmp file. Plz, help me to find out the prob. why my code is fail with bmp extension file. [code] //file-detail-complex.php <?php …

Member Avatar for Pooja J.
0
809
Member Avatar for fatcat2010

hello expert: got 2 basic questions: 1.don't know how to review php.ini content to check if register_globals is set "on" or "off". i know php.ini is on the server end. how to pull i up? 2. i see a paragraph says..."assuming register_globals is turned off"for this reason, we assume that …

Member Avatar for fatcat2010
0
178
Member Avatar for nathan2oo3

Hi folks, having a bit of bother trying to post my values to another page using radio buttons. I have an exisiting form that I wanted to add the below code to. The form currently posts comments however I want it to post ratings of DVD's on the site. The …

Member Avatar for as.bhanuprakash
0
98
Member Avatar for SMHouston

Ok, so here is my problem. I'm making a telephone registry that lets a user add information such as first/last name, address, zipcode, state, and telephone number. Then they save the contact. Which seems to be where my problem is. The contact is saved and their information is posted. A …

Member Avatar for SMHouston
0
159
Member Avatar for niths

hi i am new to php. i am getting the following error. ------Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\login\login.php:23)----------- <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> <br> <tr> <td>username:</td> <td><input …

Member Avatar for niths
0
114
Member Avatar for virspy

Hello Friends, I want to send emails daily 3 times,6 times a day automatically with my PHP code. the people who r registered for them only. i require help in sheduled mail code. iam not getting any idea on how to send scheduled mails. r provide any links related to …

Member Avatar for as.bhanuprakash
0
2K
Member Avatar for kuteinheart

Hey ppl, I have a couple of php codes for displaying the list box, depending on the selection from the first list box... I am trying to diplay all the list box on the same page using AJAX The problem is, My first , second & the third list box …

Member Avatar for as.bhanuprakash
0
115