39,323 Topics

Member Avatar for
Member Avatar for nadiam

Hi, so im trying to insert data but i get: > Notice: Undefined index: events html part: <form method="post" action="seating.php> <div class="drop"> <label>Event : <label/> <select name="events" id="dd-events" onchange="getguests(this.value)"> <option value="" disabled selected >Event</option> <?php foreach($retrieve as $r): ?> <option value="<?=$r['event_id']?>"><?=$r['event_name']?></option> <?php endforeach ?> </select> </div> <input type="hidden" name="table_name[]" value='+tablename+'><span …

Member Avatar for nadiam
0
3K
Member Avatar for ishlux

Hi all, i am storing the value in session but while retrieving its showing the some other value.....totally i want this stored value in the next page .........can u help me........... This is the code i am storing the value in session [code=php] <? session_start(); include('database.php'); $mailid1 = $_GET['mail_id']; session_register('mailid1'); …

Member Avatar for Hegneous
0
921
Member Avatar for wikit

So I know I can restrict the viewing of a page by session/access using this <?PHP require_once('../../lib/connections/db.php'); include('../../lib/functions/functions.php'); checkLogin('2'); $getuser = getUserRecords($_SESSION['user_id']); ?> is there a way to add to that if the id of the page doesnt match the username in the same database it wont allow you to …

Member Avatar for wikit
0
346
Member Avatar for hriti

i have been trying to upload music file but the file will not upload but all the picture upload are successfully . i need some help . i want to upload music file to a directory in my server but i have been having problems with it. unable to upload …

Member Avatar for cereal
0
266
Member Avatar for nevil120

I have Android app and 1 php application. I want to invoke android function when the button is clicked on my php application (on latop-pc browser). So basically Php to android communication. How to achieve that?

Member Avatar for timetraveller1992
0
167
Member Avatar for sanjay@srvmedia
Member Avatar for aseel_1

s their an error in this code ?? !! it display Image uploded successfully but it isn't !!!!!!! if(isset($_POST['submit'])) { $query="insert into POST (Title,SubTitle,PostDetail,PDay,PMonth,PYear) values('$_POST[_title]','$_POST[_subtitle]','$_POST[_detail]',". date("d").",".date("m").",".date("y").")"; //echo $query; mysql_query($query); $msg="post added sucsessfully"; if($_FILES['_postimage']['tmp_name']!= "") { move_uploaded_file($_FILES['_postimage']['tmp_name'] ,$_SERVER['DOCUMENT_ROOT'].'/Aseelblog/POST_imgs/a.jpg'); $msg.="</br>Image uploded successfully"; //DOCUMENT_ROOT=/var/www/example ///// } else { $msg.="image File too large or …

Member Avatar for veedeoo
0
154
Member Avatar for OsaMasw

hello guys, its been a while since I used htaccess file, but I know how to use it. but the only problem I face is when using in this way I have page for view video watch.php?v=qvLqn2NEsOE&title=Networkplus_tutorials.html first I've create rewrite rule in .htaccess file `RewriteRule ^v-(.*)-(.*).html$ watch.php?v=$1&title=$2` so if …

Member Avatar for OsaMasw
0
317
Member Avatar for chaitu11

move_uploaded_file gives Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this …

Member Avatar for suresh9696
0
1K
Member Avatar for Syed Azadar

hi, how to send email when the server in down in php with cron ? i have 4 server and i want to check every 2 minutes that if any server is down , email send to my gmail account . email send once in 24 hrs not after every …

Member Avatar for timetraveller1992
0
156
Member Avatar for Jack_9
Member Avatar for Daisy_1
Member Avatar for timetraveller1992
0
531
Member Avatar for Prateek_2

For 2-3 years in have been coding in php , then for some time in codeigniter. Now i want to built some business type application like ERP and i am confused which language to choose ASP.NET or java As ASP.NET is growing very rapidly and has large library to do …

Member Avatar for diafol
0
1K
Member Avatar for lalit01

i am doinf online test so i have stode qus and and in mysql . and now i am showing all qusetion at a time . but i want one quse at a time and i want to use next and privius button . help me how can i use …

Member Avatar for diafol
0
104
Member Avatar for RonKevinT.Manuela

Hey guys i need help, I dont know how to remove that irritaing notice....here's the code <fieldset> <legend>Categories</legend> <?php $stmt2 = $db->query('SELECT catID, catTitle FROM blog_cats ORDER BY catTitle'); while($row2 = $stmt2->fetch()){ if(isset($_POST['catID'])){ if(in_array($row2['catID'], $_POST['catID'])){ $checked="checked='checked'";} else{ $checked = null; } } //this is where it says undefined variable echo …

Member Avatar for RonKevinT.Manuela
0
237
Member Avatar for wikit

what I'm on the hunt for is a php script using mysql or mysqli that searches for results. This part is the easy part the hard part is this. I'd like it to search 1 database to to yeild 2 sets of results with 1 search. It would use a …

Member Avatar for wikit
0
309
Member Avatar for Clanstrom

I am tring to make a search script, but I have no idea how and would appreaciate if anyone could give me samples or websites. thanks

Member Avatar for timetraveller1992
0
415
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to call a [pNotify](http://sciactive.com/pnotify) notification using php. So after I submit a form I can use PHP to create the popup.

Member Avatar for DJBirdi
0
2K
Member Avatar for joshl_1995

Hello Community, I have spent almost an hour looking for a solution to combine several pictures side-by-side but can't seem to find anything. I want to be able to get a dozen pictures (.png) and place them to the right of the previous picture then combine them as one (.png) …

Member Avatar for cereal
0
2K
Member Avatar for khurram123

Hi, I have develop a quote form in php and after submission it will e-mail me all the inforamtion correctly but i have problem not getting the information from drop down list and also have browse field so user can upload this file if he wants. PHP Code: <?php if(!$_POST) …

Member Avatar for cereal
0
226
Member Avatar for Pravesh_1

I am using a php thumbnail script; its working on server but not on my local server. How I can run this script into my local server too ?

Member Avatar for Pravesh_1
0
754
Member Avatar for RAJboss

function generateHashLink($service_domain, $file_path, $url_signing_key ,$expiry_timestamp = NULL){ // + and / are some of represented chars of based64 encoding (8 bits) // + is 62 and / is 63 and these char should be replaced by other predefined chars $search_chars = array('+','/'); $replace_chars = array('-', '_'); if($file_path[0] != '/'){ $file_path …

Member Avatar for peter_budo
0
297
Member Avatar for Priti_P

Hi, I want to take php string in javascript variable. How to take it? php string includes \n so while taking it in variable it shows me error of "SyntaxError: unterminated string literal" I got one solution form stackoverflow that use json_encode but after use of json_encode is giving me …

Member Avatar for Priti_P
0
303
Member Avatar for kategirdlelock
Member Avatar for mero_1

Dear friends , i've got a problem with ecommerce integration to my payment based website , i want to integrate the paypal or any other payment service provider to make payment. i'v tried using some php code but it didn't worked out , so what do i need to do …

Member Avatar for DJBirdi
0
299
Member Avatar for afaaro

I tried inserting as serialize to multiple selected but when i want to retrieve those multi selected in the select box is not working echo "<td class='tbl1' width='15%'>Format</td><td class='tbl1'><select name='format[]' multiple='multiple' class='textbox'>\n"; $sel = ($_POST['format'] == $data['format'] ? " selected='selected'" : ""); echo "<option value='".$data['format']."'$sel>".$data['format']."</option>\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n";

Member Avatar for diafol
0
317
Member Avatar for shrutisk

everything newww....!!! hoping to learn dis language asap.. any reviews for d beginner??

Member Avatar for diafol
0
176
Member Avatar for axier

PLease help me how to send password to email <form name="forgot" method="post" action="<?php $_SERVER['PHP_SELF'];?>"> <p><label for="email">Email:</label> <input name="email" type="text" value="" /> </p> <input type="submit" name="submit" value="submit"/> <input type="reset" name="reset" value="reset"/> </form> <?php if(isset($_POST['submit'])) { $connect=mysql_connect("localhost","root","") or die("Could not connect to database"); mysql_select_db("dbsalon") or die(mysql_error()); $email = $_POST['email']; $sql= "SELECT `password` …

Member Avatar for guruparthi
0
8K
Member Avatar for 4XGump

Hello I have got an php probid webesite. everything worked well until I restored an backup. I need someone who can help me fixing following errors that appeared after restoring backup. - I can not upload pictures and mediafiles to an auction or in admin page - second language --> …

Member Avatar for veedeoo
0
129
Member Avatar for Cbn

i had some trouble when updating a mysql field, i had 2 text fields and 1 textarea fields, both the text fields updated ok through this query: but textarea field is not updating.. edit.php <?php include('connect.php'); $id=$_GET['id']; $result = $db->prepare("SELECT * FROM telugunews WHERE id= :userid"); $result->bindParam(':userid', $id); $result->execute(); for($i=0; …

Member Avatar for wikit
0
501

The End.