39,323 Topics

Member Avatar for
Member Avatar for dartiss

Hi, I have an urgent issue. I have a screen that allows the user to select something from a drop-down and then submit it. The form directs to the same page where, if data has been supplied, processing occurs based upon their drop-down selection. What I want to do is, …

Member Avatar for Biiim
0
146
Member Avatar for f4fjks

I just want to use the id for getting description I might have many rows fetched so I am going to make onclick event but till now, why it doesnot work? where am I wrong? Thank you for your interest <?php while( $row = mysql_fetch_array($res)) { ?> <strong><?php echo $row["heading"]?></strong> …

Member Avatar for Biiim
0
278
Member Avatar for merisha.iwanthi

I am asked to submit my assignment at the end of the day. I have done all the designing part except for the XML-List part. I have no idea how to do it as I'm really new to XML. Here is my assignment. Any help or direction to the right …

Member Avatar for pritaeas
0
157
Member Avatar for kshahnazari

I'm new to php and I'm trying to download a webpage text(no need to seperate the data with elements or things like that). Could someone Give a simplized php program (using curl) so I can Get to know it more like the syntax things . for example could someone download …

Member Avatar for pritaeas
0
374
Member Avatar for shakayu

Hello guys, Am new to php with Ci... am trying to display a gridview in a form so as to extract data frm db & display the value.. .Any help?

Member Avatar for shakayu
0
1K
Member Avatar for dinhunzvi

i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT …

Member Avatar for dinhunzvi
0
229
Member Avatar for AndyPants

This php code: <?php $video_id = 'k3VevYjjwQk'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://gdata.youtube.com/feeds/api/videos/'.$video_id); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); if ($response) { $xml = new SimpleXMLElement($response); $title = (string) $xml->statistics->attributes()->viewCount; echo $title; } else { // Error handling. } ?> returns: Warning: main(): Node no longer …

Member Avatar for LastMitch
0
83
Member Avatar for hudhasama

Hello there. I used this code for user and it works but when I use and alter a bit for admin side system, there is no data inside of the text field and the username keep on changing to 0 eventhough I type in other username. This is the code. …

Member Avatar for code739
0
222
Member Avatar for jkaye

I have racked my brain and can't find the error for the incorrect SQL syntax. I basically have a form with a bunch of fields. Some of them are checkboxes (single instance check boxes) and I think that's where the code is breaking, but values of the checkboxes are 'Yes' …

Member Avatar for jkaye
0
294
Member Avatar for Hendo

Hello all, I'm trying to have a multi-colored border for a generated table on my website. The table is a 2 column, 18 row table, and I want the top 6 rows to be bordered in green (or cell shading in green), while the rest of the table uses the …

Member Avatar for Hendo
1
229
Member Avatar for DamzWildfire

I have a drop-down menu with different categories onece a category is selected i have a text box which accepts the type. this text box is an autosuggestion text. so whenever i select a category from the dropdown menu on the things that are within that category should be displayed …

Member Avatar for diafol
0
141
Member Avatar for innovateuk

Though am still a learner, I have developed a small php application and planning to sell the same. Meantime, I would like to protect my script using api or something and srictly not obfuscating or encoding, or using zend frame work? Is there any easy way? using base64decode, I should …

Member Avatar for veedeoo
0
167
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
887
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
437
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
263
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
211
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
607
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
327
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
416

The End.