39,316 Topics

Member Avatar for
Member Avatar for ayesha789

Hi, all this is my file expire_show.php it shows expiry of those agreements which will expire with in 90 days from current date. Users have to login to their accounts for viewing these expiry alerts. but they require these alerts on their email. [B]1. how i can format these for …

Member Avatar for urtrivedi
0
1K
Member Avatar for hwoarang69

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\a_upload\index.php on line 114 line 144: while($row = mysql_fetch_assoc($R)) $count = 0; $Q = "SELECT (SELECT image_short_name FROM user) as `image_short_name`" .",`image_id`,`user_id`,`image_short_name`,`image`" ." FROM `image`" ." ORDER BY RAND()" ." LIMIT 5"; $R = mysql_query($Q); echo " <!DOCTYPE html> …

Member Avatar for hwoarang69
0
424
Member Avatar for matanc244

i have a form in one page thet leads me to another page . exemple: when i want to delete a page in my cms , i am click on the icon that is leads me to page called delete.php. i want that when i click the icon the option …

Member Avatar for diafol
0
84
Member Avatar for matanc244

I have a problem to update my sql <?php $host="localhost"; // Host name $username="matanc_cmd"; // Mysql username $password="123123"; // Mysql password $db_name="matanc_cms"; // Database name $tbl_name="content"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id …

Member Avatar for broj1
0
170
Member Avatar for Khav

Hi Guys First of all i would like to state that i am new in php so my question might appear stupid for the geeks here. I want to create an image downloader in php , that is i need a textbox and a submit button. The user enter each …

Member Avatar for Khav
0
666
Member Avatar for Misbah khan

my code gives undefine index error .. and i don't know how to solve it... i m making online testing program but every eror in every step is undefine index error... ok my html file is <html> <form action = "http://localhost/onlineexam/home.php" method = 'get'> <center><h1>WELCOME TO ONLINE EXAMINATION</h1> <br> <br> …

Member Avatar for Misbah khan
0
186
Member Avatar for BleepyE

Hey guys, Im looking for a simple blog script for a website. It doesnt need to be fancy, just a single admin page and then the blog display page. No styling is required, as I am to add this to a HTML template. If anyone could point me in the …

Member Avatar for nevenov
1
117
Member Avatar for arcticM

if I have a function with 1 param that is default, meaning if it isn't sent in the function call it get's it's value from the value I put in the function definition- like this: function func(a$, $b, $c=null){} I can call this function like this: func(1,2); //$c get's null …

Member Avatar for blocblue
0
132
Member Avatar for spyece

Hello, I have this code which grabs url from a webpage, when i add multiple urls, sometimes some of the webpages does not have images in the div that i mentioned in this php code so it returns with this error : Fatal error: Call to a member function find() …

Member Avatar for pritaeas
0
342
Member Avatar for Octet

I am creating my purchasing system for my game at the moment, but I am struggling on a part of it and wondered if any of you could offer me some guidance? The problem I am facing is adding X amount onto a value but if that means it goes …

Member Avatar for blocblue
0
211
Member Avatar for Djmann1013

Hi, I am having trouble with this chunk of PHP script: <?php $deny = array("Example IP"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: http://www.google.com/"); exit(); } ?> It works fine, its just when I try to link to a file that has the $deny var, it wont work. I tried using …

Member Avatar for Djmann1013
0
244
Member Avatar for keval007

Hi, I have text file which has lots of text as well as HTML data. There are some line as shown below. 06/30/12 00:40:30.73 Sending Email - Group: 4FD7917824F1B-EMAIL, 0, Message: There are lots of lines like above in text file. I want to extract following data from the entire …

Member Avatar for diafol
0
101
Member Avatar for [csharp]

I try to create dropdown list with informations from title column in sql table, but never succeeds. My connection and query is good. Can somebody to help me with this? mysql_connect(***); mysql_select_db(***); $query = mysql_query("SELECT title FROM test"); Thanks!

Member Avatar for bobgodwin
0
232
Member Avatar for debriscreator

Ok i think i'm getting closer to what I need.. Here's the error msg i'm getting. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table WHERE id = Stef Longo' at line …

Member Avatar for debriscreator
0
276
Member Avatar for raghibkhesal

I have created a page myfunction.php and added two functions: function AppNotify ($Uid,$ Message,$ Data) { return; } function AppNotifyUnfriend($Uid,$ Message,$ Data) { return; } After that I created another page and include “myfunction.php” on these page then create code $done= AppNotify (‘12’,’hello’,’Delete’); $done2= AppNotifyUnfriend(‘12’,’hello’,’Delete’); The problem is when i …

Member Avatar for DarkMonarch
0
86
Member Avatar for adishardis

Hi, I have a database table filled with interesting data. On my webpage I would like to let a user pick two rows in the table and compare the data to see how it differs. Picking what rows to compare would be done by two dropdown lists. The data in …

Member Avatar for adishardis
0
129
Member Avatar for ehpratah

hi i have a little bit of issue just thingking if somebody can give me a hand out here.. the issue is when i compute for a car rate..it will depend on the date of rental and the return date,which is already coverd the problem is it will not really …

Member Avatar for ehpratah
0
213
Member Avatar for oldezwe

Here is the code for my login page <!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>Login</title> <style type="text/css"> #apDiv1 { position:absolute; width:200px; height:115px; z-index:1; left: 608px; top: 201px; } #apDiv1 form table tr td { font-family: "Trebuchet MS"; } </style> </head> …

Member Avatar for oldezwe
0
256
Member Avatar for noelthefish

Hi, I have looked at this code and I cannot see the problem. If anyone can spot the error then I will be very grateful. Basically I am returning an array from a .PHP in json format the code is here. echo json_encode($anarray); the array is made up like "vegetable" …

Member Avatar for Airshow
0
137
Member Avatar for LastMitch

Hi I'm having an issue with the **chmod**. I can't seem to excute the file. Everytime I upload a file and write something it keep saying "**Directory is not writable chmod(700)** Here is the code: function checkPath ($path) { if (!is_dir ($path)) { printSecurityText ("Directory does not exist: ".$path.""); return …

Member Avatar for LastMitch
0
185
Member Avatar for webdesigner65

hello every one i want to ***creat a forum that some one can contribute an article and others can reply its.*** please help me Thanks in advance.e

Member Avatar for webdesigner65
0
328
Member Avatar for javedshaikm

Can some help me to convert the below xml data into php array. Thanks in advance. <dataroot> <content id= "1"> <quest><![CDATA[<FONT FACE="Arial">Which of the following is not the measure of a physical quantity?</FONT>]]></quest> <opt1><![CDATA[<FONT FACE="Arial">kilogram</FONT>]]></opt1> <opt2><![CDATA[<FONT FACE="Arial">impulse</FONT>]]></opt2> <opt3><![CDATA[<FONT FACE="Arial">energy</FONT>]]></opt3> <opt4><![CDATA[<FONT FACE="Arial">density</FONT>]]></opt4> <ans><![CDATA[a]]></ans> <ans_desc><![CDATA[<FONT FACE="Arial">kilogram is the name of the fundamental …

Member Avatar for cereal
0
336
Member Avatar for sdr001

I am trying to add an username and password into a database using JSON. I cannot get it to work, any ideas? Thank you. <?php mysql_connect("localhost","sdr001","************"); mysql_select_db("tristate"); $userID = $_POST['userID']; $password = $_POST['password']; $q=mysql_query("INSERT INTO users VALUES(>'".$_REQUEST['userID']."'"); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?>

Member Avatar for pritaeas
0
98
Member Avatar for Venom Rush

I'm trying to think of better ways to fight spam than having a captcha that a user needs to fill in. I've considered emailing a confirmation link to the user that they need to click in order to send the message they filled out in the form, but with Google …

Member Avatar for Venom Rush
0
177
Member Avatar for newbie1234

I have s_no in my database's table. Which is increment automatically whenever new entry comes. But this is only int. I am using this as a ID of particular task. I want this in varchar. means id should be like "a45c725". How to achive this

Member Avatar for pritaeas
0
102
Member Avatar for hwoarang69

trying to user left margin 50px on this link but it no working. index.php echo "<a href=\"zoom.php?img={$row['image_id']}\"> <b id='bold2'>" . $image_short_name_db . "</b></a>"; c.css .bold2 { margin-left:50px; }

Member Avatar for blocblue
0
97
Member Avatar for blaaam

Hi! I have table of records of my database. I have too many rows, so i decidet to add feature what i dont know how to call english, but mybe it's call page numbering. So i need split my table after some 10rows and its will make after table Paga …

Member Avatar for pritaeas
0
67
Member Avatar for naru vaishnaw

How to send user detail page to my email.with full deatils <?php mysql_connect("localhost","root",""); mysql_select_db("Users"); $mysql_query =("SELECT uid,`Name`,Department,Problem,Ext_no,Ip_Add,Remark,Email FROM entryform ORDER BY entryform.uid DESC limit 1 "); $result = mysql_query($mysql_query); while($data = mysql_fetch_row($result)){ echo(" <td > <tr> <td> Complaint NO. :- $data[0]</br></br></td> <td> NAME :- $data[1]</br></br> </td> <td> DEPARTMENT :- $data[2] …

Member Avatar for pritaeas
0
145
Member Avatar for hwoarang69

i was thinkg some thingklike this. i have a database image->image_id, image, image_keyword, image_name ...etc index.php- search bar <form class='form6' method='post' action='search.php'> <input type='text' name='search' class='field2'/> //search bar field <input type='submit' name='search' class='button' value='Search' /> //submit button </form> search.php <?php include("include/header.php"); $i = 0; $search_p = $_POST["search"]; $terms = explode(" …

Member Avatar for hwoarang69
0
295
Member Avatar for aristos32

Hi all. I use the following js function to dynamically create an new <tr> and <td> in my table. Then I insert an <input>. : function testName(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); //firstname var cell1 = row.insertCell(0); var element = document.createElement("input"); element.type …

Member Avatar for aristos32
0
288

The End.