39,388 Topics

Member Avatar for
Member Avatar for amith_ami

hi all... im getting undefined index errors while running my code in localhost. im using wampserver 2.2... but it works fine with older version of wampserver. here is my example code for products page.... <?php $man_id=$_GET['man_id']; $man_name2=$_GET['manf_name']; $man_name=str_replace('-',' ',$man_name2); $cat_id=$_GET['cat_id']; $cat_name2=$_GET['name']; $cat_name= str_replace('-',' ',$cat_name2); if($cat_id!=""): ?> <span class="pro-head"><?php echo $cat_name;?></span> …

Member Avatar for amith_ami
0
888
Member Avatar for davy_yg

<?php // url nya: abcd.com/jumlahklik.php?idads=[idadsnya] $con = mysql_connect("localhost","root",""); mysql_select_db("freescript", $con); // kalo ada yg click tambahkan jumlah klik $count = 0; if ($_GET['idads']==1) { $count++; $waktu = date('Y-m-d H:i:s'); $idads = 1; $date = date('Y-m-d'); $time = date('H:i:s'); mysql_query("insert into adsmgt (idads,waktu,date,time) values ('$idads', '$waktu', '$date', '$time')"); } //di jumlahklik.php …

Member Avatar for davy_yg
0
177
Member Avatar for Tinnin

Hi all, I'm trying to send emails to various people using a .php file run with a crontab. I'm having some PHP issues though. My code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Email</title> </head> <body> <?php # …

Member Avatar for Tinnin
0
204
Member Avatar for shweta patil

hello , I am new in php, and dont know about RSS feed.. I want to fetch news from another site and show it on our webpage. can anybody guide me about the code?? what the code should be??any help is appreciated.. thank you!

Member Avatar for pritaeas
0
33
Member Avatar for ibn_sumal

Hello guys, I'm trying to save/store data from a *form* to a *text file*. The problem is that the information sent from the form does not seem to be storing in the text file as whenever I enter its url the page is just empty. The code is as follows: …

Member Avatar for pritaeas
0
438
Member Avatar for davy_yg

adsmgt.php $result = mysql_query("SELECT COUNT(idads) AS countidads FROM adsmgt") or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { echo "Number of ad clicks: ".$row['countidads']; } $result2 = mysql_query("SELECT waktu, date, time FROM adsmgt") or die(mysql_error()); echo "<br>"; echo "<br>"."Tanggal"." "." Waktu"." Jumlah clicks per hari"; while($row2 = mysql_fetch_array($result2)) { echo "<br>".$row2['date']." ".$row2['time']; } as of now, all …

Member Avatar for davy_yg
0
181
Member Avatar for davy_yg

Hello, I would like to input date validator. How to do so? User must be able only to input date, otherwise is wrong data entry. <tr> <td>Tanggal :</td> <td><input type="date" size="12" maxlength="22" name="Tanggal" value=""></td><br> </tr> Please help. Thanks.

Member Avatar for code739
0
102
Member Avatar for code739

Hi guys, Need an effective suggestions on how to deal with this situation. Im working with php and mysql. Now the system i am creating needs to send emaill notification once a year.

Member Avatar for code739
0
265
Member Avatar for silent lover
Member Avatar for code739

hi, i have a table in database that contains birthday column varchar()- i choose varchar because ecoder could input birthday like 1. 1993-14-03 2. 1993-03-14 3. March 14 4. March 14,1993 5.etc.... Now my problem i want to detect what month is their birthday could some help me?

Member Avatar for code739
0
217
Member Avatar for welshly_2010

basically i have created a selection box which display the files i have got in a certain folder which are xml files, my problem is that i am unsure how to save the content of the file selected as a live variable which changes on different selected which the variable …

Member Avatar for veedeoo
0
118
Member Avatar for jayreis

I have a jquery code below which I am using to try to get a html form that is displaied in a lightbox on a webpage to post to a php page my issue seems to be that when I click the "save" button it is not executing the jquery …

Member Avatar for jayreis
0
253
Member Avatar for matanc244

What are the main things I need to pay attention to them Process of building a strong security system?

Member Avatar for broj1
0
69
Member Avatar for b.wickham

I've been having trouble with an UPDATE statement in the code below. The problem is that each time I submit the form to update an existing record in the products table, the records won't update. When I submit the form there is no error message and it redirects to the …

Member Avatar for b.wickham
0
1K
Member Avatar for Amicallef1991

Hi, I have a mysql database with some student info records. I am trying to Update a record in the db using a html form and a php script however it wont update. It doesnt give me any errors. Can anyone assit me please. Here is the code. **editingRecord.php** <?php …

Member Avatar for Amicallef1991
0
611
Member Avatar for gopi17

Heyy...i'm trying to save the attachment file location in mydb...the thing is it's just saving the file name eg.database.txt i want it to look like this C:/bla/bla/test my codes addtask.php <html> <head> <title>Task Management System</title> <link rel="stylesheet" href="Appcss.css" type="text/css"/> <script src="datetimepicker_css.js"></script> <script type="text/javascript"> // Javascript function which takes care for …

Member Avatar for Biiim
0
328
Member Avatar for redapple12

Hi I was wondering if I might be able to get some help with a Basic Class Calender Editor. I am self employed teacher and I teach classes at various venues. I have a website which displays the classes on for each week.i.e. using the following coding: --------------------------------------------------------------------------------------------------------------- **THIS WEEK'S …

Member Avatar for redapple12
0
127
Member Avatar for brave_demo

<?php //email signup ajax call if($_GET['action'] == 'signup'){ mysql_connect('localhost','root',''); mysql_select_db('newsletter'); //sanitize data $email = mysql_real_escape_string($_POST['signup-email']); //validate email address - check if input was empty if(empty($email)){ $status = "error"; $message = "You did not enter an email address!"; } else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid …

Member Avatar for brave_demo
0
418
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to access SkyDrive using php i have looked at so many forums and i could not find anything and what i did find was too complicated to understand, what i want is a way to create files or folders, get …

Member Avatar for pritaeas
0
365
Member Avatar for NardCake

Hello! I'm working on a profile page, I already have the first get variable redirect working so it goes from mywebsite.com/u/?u=username to mywebsite.com/u/username, as an example. But I want to pass a second parameter as such: mywebsite.com/u/username/about for example. So I wrote (more like mashed a bunch of scavenged code …

Member Avatar for diafol
0
181
Member Avatar for sagisgirl

Hi guys... I have a trouble with my delete page.. here are my codes.. <?php include("enter.php"); $dbjpu_jenis_jentera=$_GET['jpu_jenis_jentera']; //if(isset($_GET['bil'])){ $dbstaf_bil = $_GET['bil']; } $sql="DELETE FROM jpuma_jkkp2013 WHERE jpu_jenis_jentera='".$dbjpu_jenis_jentera."'"; $result=@mysql_query($sql); if($result){ echo "<center>Please wait a few second.<br>The data was deleted from database...<meta http-equiv='refresh' content='3;url=jpuma_jkkp2013.php'>"; //echo "<p>"; //echo ""; } else { echo …

Member Avatar for sagisgirl
0
520
Member Avatar for perfectionist91

hey guys the checkboxes aren't gettin displayed in the following code and the data isnt gettin stored as well.plz help!!!!!!! <?php session_start(); include ("menu.php"); $UserId=$_SESSION['UserId']; ?><html> <head> <title>Feedback</title> </head> <body> <table> <tr> <td> <form name="f1" method="post" action="Feed2.php"> <table cellspacing="10"> <tr> <td colspan="2"><h1>Feedback Form</h1></td> </tr> <tr> <td> <?php include ("db.php"); $sql="SELECT …

Member Avatar for broj1
0
353
Member Avatar for davy_yg

stock.php <td>Produk :</td><br> <td> <select name="batch" onchange="submit();"> <option value="-1" >-- Select Address --</option> <?php $username='root'; $password=''; $con = mysql_connect('localhost', $username, $password); mysql_select_db('snack', $con); $result = mysql_query("SELECT * FROM po"); while($row = mysql_fetch_array($result)) { } $data = array( '1'=>array('po'=>'1','namn'=>'name 1'), '2'=>array('po'=>'2','namn'=>'name 2'), '3'=>array('po'=>'3','namn'=>'name 3'), '4'=>array('po'=>'4','namn'=>'name 4'), '5'=>array('po'=>'5','namn'=>'name 5') ); foreach($data as …

Member Avatar for radhakrishna.p
0
243
Member Avatar for mmcdonald

Hi all, I have a website that allows users to vote once every hour and I've run into a weird issue. When a user votes for a listing their IP is collected and stored along with the time of the vote. An hour later they are able to vote again. …

Member Avatar for Atli
0
149
Member Avatar for garyjohnson

Hi, I was wondering if I am going to make a social networking site if it was neccesary for me to understand how classes are used? Do i need to use classes or can I just use a series of functions?

Member Avatar for diafol
0
145
Member Avatar for RamiroS

This is one of the fastest ways to get data submitted by a HTML form, make it readable and send it by e-mail. Fast and easy. From the raw example to some basic functionality.

Member Avatar for mlesniak
0
250
Member Avatar for richprich

Although there are many similar questions and answers here and i've tried my best to make it work but no luck. This is my code: $content = "Blah...blah...[image=1], blah...blah...blah...[image=2], blah...blah...blah...[image=1], no more..."; function get_image($content) { $stripper = $content; preg_match_all("/\[image=(.+?)\]/smi",$stripper, $search); $total = count($search[0]); for($i=0; $i < $total; $i++) { $image_id …

Member Avatar for richprich
0
602
Member Avatar for davy_yg

Hello, I am trying to create a stock recording system: <h4>STOCK RECORDING SYSTEM</h4> <form action="action.php" method="post"> <table border="0" width="200"> <tr> <tr> <td>Produk :</td><br> <td><input type="text" size="12" maxlength="22" name="Produk"></td> </tr> <tr> <td>Jumlah :</td> <td><input type="text" size="12" maxlength="22" name="Jumlah"></td><br> <tr> <td>Tanggal :</td> <td><input type="text" size="12" maxlength="22" name="Tanggal"></td><br> </tr> </table> </form> <?php username='root'; …

Member Avatar for broj1
0
223
Member Avatar for vizz

I have created **log.php** to get **visitors information**. It is included on **index.php**. But it is adding records to database **without single visit** to **index.php**. After few seconds it adds records continuously. Help me please. **index.php** <?php include_once('log.php');?> **log.php** <?php $page_name = $_SERVER['PHP_SELF']; // PAGE NAME $parse_page_name = basename ($page_name); …

Member Avatar for vizz
0
395
Member Avatar for latooplat

So I was creating a simple photo gallery site, wherein users can upload their photos or delete their photos. While, I have a CRUD functions as well in the side of the users, where I can add users, delete users, update user's info and search user's info. Now, I want …

Member Avatar for Biiim
0
207

The End.