39,320 Topics

Member Avatar for
Member Avatar for chandbasha

Hi, I have one csv file with same order id for 4 or 5 times. How to know that order id is 4 or five times. My problem is on the basis of order id i will get the Product name and i want to generate the invoice. If the …

Member Avatar for HITMANOF44th
0
181
Member Avatar for mastermind2

I am working for a sms portal where user will submit an sms template for admin will approve that template. user will submit like [CODE]my name is # i leave in #[/CODE] Admin will approve this sms template when user will sent this sms he can replace one word with …

Member Avatar for HITMANOF44th
0
100
Member Avatar for glut

Hey, I'm currently using mysql_real_escape_string() to protect against SQL injection. Is there a way to exploit this? I have already tried \ to try to make the query \', thus making it just a regular backslash. I have heard of the Big5 exploit, but I don't know how to use …

Member Avatar for diafol
0
171
Member Avatar for asghar123

hi, I am getting this error: Parse error: syntax error, [B]unexpected T_STRING in C:\xampp\htdocs\makedatabase.php[/B] on line 2 here is the code: <?php CREATE USER("jeffrey"@"localhost", IDENTIFIED BY "mypass"); $con = mysql_connect("localhost" ,"jeffrey","mypass"); if (!$con) { die('Could not connect: ' . mysql_error()); } if (mysql_query("CREATE DATABASE my_db",$con)) { echo "Database created"; } …

Member Avatar for pritaeas
0
121
Member Avatar for mightysnake

Hi everyone, I've created a function for calling .js files in <head> but it's not working properly. The reason why is this function necessary is that I want to include different .js files in different pages or remove some If I don't need them. [CODE]function get_scripts($array, $dir) { $count = …

Member Avatar for pritaeas
0
124
Member Avatar for daniel36

can any body tell me how to use the information of page [URL="https://sandbox.clickbank.com/rest/1.2/sandbox"]https://sandbox.clickbank.com/rest/1.2/sandbox[/URL].

Member Avatar for pritaeas
0
252
Member Avatar for rahulroshan

Hi I want to echo the output of query in php $query = "SELECT COUNT(name) FROM ji where name="rahul" and age='23' "; Can anyone plz help?

Member Avatar for pritaeas
0
82
Member Avatar for BilalAKhan

Hi, I have want to insert session variable in my database. I have developed a blog and I want to insert session variable in one of the fields defined in my database. I have the code which can insert other fields in the database but I do not know how …

Member Avatar for BilalAKhan
0
3K
Member Avatar for vijaykavin10

Hi all While i am getting my data from gmail throws some error... Can anybody help me to fix the issue:fopen(path/file name)[function.fopen]:failed to open stream: No such file or directory in path on line xx Unable to open file Thanks:icon_smile:

Member Avatar for rotten69
0
79
Member Avatar for Alex12345

So far, I have managed to create a register, login and welcome page with PHP. I'm now focusing on a creating a profile page. I'm wondering, first of all, how I can have every page on my site display "Welcome, " .$username. Do I have to insert a cookie write …

Member Avatar for phorce
0
296
Member Avatar for davy_yg

product_edit.php [CODE] // SETELAH TOMBOL SIMPAN DI TEKAN if (isset($_POST['save'])){ $tgl_masuk = date("y-m-j"); if (empty($_POST['id'])){ $result = mysql_query("INSERT INTO produk(nama_produk, harga, deskripsi, tgl_masuk, gambar) VALUES('".$nama."','".$harga."','".$deskripsi."','".$tgl_masuk."','".$gambar."')"); echo "Data has been recorded in the database."; } else{ $result = mysql_query("UPDATE produk SET nama_produk='".$nama_produk."', harga='".$harga."', deskripsi='".$deskripsi."', gambar='".$gambar."' WHERE id=".$_POST['id']); $result = mysql_query($sqlstr) or …

Member Avatar for cereal
0
121
Member Avatar for Virangya

hi, this is relating to a wordpress site, i have this query [CODE]$qstring="SELECT * FROM rwb_bk_schedule s INNER JOIN rwb_bk_rooms r ON s.room_id = r.room_id WHERE s.room_status=1 AND r.room_name='".$room."' AND start_date BETWEEN '".$sdate."' AND '".$edate."' OR end_date BETWEEN '".$sdate."' AND '".$edate."'";[/CODE] as i given the code i use OR there …

Member Avatar for smantscheff
0
133
Member Avatar for devinodaniel

I'm trying to send a confirmation email to the person who submitted this "ticket" but it's not sending. I know the right info is there it just seems like I'm putting something in the wrong spot. Anyone help me out? [CODE]<?php include("database.php"); $today = date("M d Y"); $sql="INSERT INTO info …

Member Avatar for dineshsjce
0
188
Member Avatar for Szabi Zsoldos

Hey guys, I'm working on a ajax drop down system. I'm currently finding myself in a difficulty with a $_POST[]. The thing is that I want to explode my $_POST but it doesn't let me for something, cant find it out why. [CODE] case 2: if(strstr($_POST['modelBox'],'^')) { $ex = $_POST['modelBox']; …

Member Avatar for Szabi Zsoldos
0
255
Member Avatar for Alex12345

The first version was not working.. I made this simpler one, but it is not working either. It says the username or password are wrong. I also verified that it counts 0 rows with if($count==1). I am using WAMP. Thanks so much for any help. Oh and I got the …

Member Avatar for diafol
0
266
Member Avatar for saadi06

Hi, I am having a problem with 404 page.I have handled it through .htaccess and it is working fine as it redirects the page fine.But it is giving me error in my error log that file not found xxx/xxx/xxx/forums.Although I have handled 404 problem and it is working fine.But in …

Member Avatar for saadi06
0
74
Member Avatar for swissknife007

[CODE]<?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; $i=0; if(isset($_POST['submit'])) { $mail->Username=check($_POST['UserName'],"user id required"); if(filter_var($_POST['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_POST['UserName']; $mail->Password=check($_POST['pass'],"password required"); $con=check($_POST['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_POST['name']); $_POST['rec']=check($_POST['rec'],"recipient required"); if(filter_var($_POST['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_POST['recn']=check($_POST['recn']); $mail->AddAddress($_POST['rec'],$_POST['recn']); $mail->Subject=$_POST['sub']; $mail->Body =$_POST['body'];$i=0; if …

Member Avatar for cereal
0
127
Member Avatar for BrickZ28

Ok I have hit my next hurdle. I have though of a few ways this could be done but just cannot wrap my head around it. What I would like to do is as I am accepting membership and move the member to the members database they will be given …

Member Avatar for BrickZ28
0
198
Member Avatar for sgonser

Hello, I'm looking to create a disclaimer page as a precedent to viewing an exercise video. I'm currently using a standard text field (for initials) and check box (to agree). There's no problem with that. I know I can just put the form submit to open a new page, but …

Member Avatar for sgonser
0
623
Member Avatar for sjsanjuan

Hi, I'm having a trouble with dynamic redirection. I've searched for everything and did $_GET and $_POST but still not working. The $id is not returning any results. Here's my code: include_once("includes/connection.php"); global $result; putenv("TZ=Asia/Manila"); $arrErrors = array(); $oid = isset($_GET['oid']) ? intval($_GET['oid']) : 0; $package_id = isset($_GET['package_id']) ? intval($_GET['package_id']) …

Member Avatar for diafol
0
345
Member Avatar for Virangya

hi , this is my code. i want to return data using a php page after processing a query within it. [CODE]$.post('check_booked.php', { room:roomv, srtdate:sdatev, eddate:sdatev}, function(data){ alert( data); });[/CODE] before completing php page i test using online code which returned nothing.. i don't know what wrong, as i have …

0
127
Member Avatar for rana.moeen

Hi Geeks, Here is code below, I wrote for multi file upload. This form takes a numeric value from previous page and print required form fields on this page. But when I write php code for upload it gives me errors. I use print_r($_FILES); but it returns an empty array(). …

Member Avatar for rana.moeen
1
169
Member Avatar for filipgothic

I want this two echo's to stay in one line. One in center and another right like I did but not in new line echo "<a href=\"http://zafakultet.herobo.com\logout.php\"><font size=+1</font>Click here to logout!</a>"; echo "<p align=right>Username: " . $_SESSION["valid_user"]; I tried with <? ?> and it wont work. Thanks for help.

Member Avatar for diafol
0
168
Member Avatar for hendroang

Please help me check my code especially change_form.php here's my code update_form.php [CODE] <?php $con = mysql_connect("localhost","root",""); mysql_select_db("exercise",$con); $query = mysql_query("select * from test_mysql",$con); $num = mysql_num_rows($query); echo "<center>Show database data</center>"; echo "<br>"; echo "Database data : $num"; while($num =mysql_fetch_array($query)) { echo "<br>"; echo $num[0]; echo "<br>"; echo "Name : …

Member Avatar for rotten69
0
199
Member Avatar for rahulroshan

Hi I have made a code in php, 1) Now the action is on the click of submit button, can i submit it using the keyboard input enter. <td><input type="submit" value="LOAD NEXT AND SAVE" name="loadnextsave"/></td> 2) To open a new page can i use the keyboard shortcut key instead of …

Member Avatar for diafol
0
164
Member Avatar for swissknife007

[CODE] <?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; if(isset($_GET['submit'])) { $mail->Username=check($_GET['UserName'],"user id required"); if(filter_var($_GET['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_GET['UserName']; $mail->Password=check($_GET['pass'],"password required"); $con=check($_GET['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_GET['name']); $_GET['rec']=check($_GET['rec'],"recipient required"); if(filter_var($_GET['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_GET['recn']=check($_GET['recn']); $mail->AddAddress($_GET['rec'],$_GET['recn']); $mail->Subject=$_GET['sub']; $mail->Body =$_GET['body']; if …

Member Avatar for diafol
0
342
Member Avatar for joshmac

I've been trying for hours to retrieve an ID from a previous insert statement to include in the next insert statement. I am not sure what I am doing on but a new fresh set of eyes can see the issue better than I can at the moment. Any help …

Member Avatar for pro_learner
0
127
Member Avatar for lastgame2007

im having problem with my this, what i want to happen is when i submit, i want to save those records from 2 diffrent table's from my db, but it wont save? have you seen any problem with my code? thanks! [CODE] <?php include("connect.php"); if(isset($_POST['submit'])) { mysql_query("insert into tblgrading set …

Member Avatar for phorce
0
90
Member Avatar for cip6791

I would like to check if a user is logged on domain1.com and return a message on domain2. There is a lot more to the code, I only added a basic sample. index.php on [url]http://domain2.com[/url] [CODE]<script type="text/javascript" src="http://domain1.com/test.php?js"></script>[/CODE] test.php is on [url]http://domain1.com[/url]. [CODE] <?php if (isset($_GET['js'])){ header("Content-type:text/javascript"); ?> function doAjax(){ …

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for welkam

I am beginner and this is my [B]first project[/B] (happy face). I am trying to make log in systen to learn php and mySQL. At first everything was working so and then i decided to rewrite everything in [B]Object oriented[/B] code and then it is not working. Since it is …

Member Avatar for welkam
0
127

The End.