39,388 Topics
![]() | |
Hello, I have this code: mysql_query("UPDATE users SET BasicLevel = BasicLevel +1 where username='Admin'"); but its not increasing the integer. The field names are correct as well as the username. Can anyone help me? And yes, I am connected to the database. | |
Hi, I am planning to go for a php certification. Since I do not have a proper work experience, a certification will help me build my portfolio. So, I was planning for Zend certification. Is it worth taking or is some other certification (like w3schools) better? Anybody here who got … | |
i have this main_login.php code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="checklogin.php"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong>Member Login </strong></td> </tr> <tr> <td … | |
Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 | |
![]() | hello, im using a wamp server and i want to sent an email and after writting the code, im getting an error that says 'warning: mail() [function.mail]: failed to connect to mail server at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set().' Im not … ![]() |
Hi i m trying to output pdf file from html..this html is a result of a php script i have this error from html2pdf impossible to load the image litre.php?start=2012-09-1&end=2012-09-30&client=13 any help please ![]() | |
I have a crontab job in which data from csv file get insert into mysql table at regular interval. Now i want the same table data to be inserted in ms sqlserver database. I know i can write code again to take data from csv to ms sqlserver database. But … | |
i want to create a text report and i have use this coding:- <?php $f=fopen("c:\amit.txt", "wb"); // adding header $text="\n Your text to write \n ".date('d')."-".date('m')."-".date('Y')."\n\n"; fputs($f, $text); fclose($f); ?> which results me some thing like when i open it in windows [i.e my computer->c drive->mit.txt] :- > []Your text … | |
Hi everyone :) im a new in php and mysql and doing my final year project..i want to my teacher module to create quizes for students and then want to further grade them after evaluating the marks..i want to put fill in the blanks, MCQs and true false in those … | |
hi guys, i have a rege code that looks to see if a block of text has a link. i have modded it to show the link as an image if it exists (badly i know this method isnt very good) what i need to do is check if the … ![]() | |
Hi, I have a doubt as if i have a "xml format" text message in my email body then how can i cobert it into an array so that i can fetch each node form it for example: my email body containts xml format: <?xml version="1.0" ?> <candidate> <name>Superduper automation</name> … | |
<?php if (isset($_POST['generate'])) { $charset = 'absdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYZ0123456789%$#-()*&.,'; $generated_password = substr (str_shufle($charset),0, 12); } ?> <form action ="password generator" method="post"> <input type="submit" name="generator" value="Generate"><input type="text" value="<?php if (isset($generated_password)) {echo $generated_password; } ?>"/> </form> when i click in generate button it show me this: Object not found! The requested URL was not … | |
![]() | i need help ordering my data from a database using time in ascending order. ![]() |
I need to pass a variable from page1 to page2 without URL, or without making the variable visible to users, to I figured, I might use the hidden field method, but I can't do this with the following script <form method="POST" action="page1.php"> Username: <input type="text" maxlength="25" name="username" value="" class="i_login" /> … | |
Good afternoon everyone. I need to write out a simple validation. It needs to validate only if a user enters certain keywords. Here what I have so far: if(!preg_match("Indiana, Ohio", $state)) { $errors .= "You have entered the wrong state."; } What would be the correct preg_match function to only … | |
Hello, I'm working on a project who's basic idea is that people register as a manager and upload a file to their account, then they invite users to view their documents (online) or download them, or allow the users to share more files with the parent who invited them. The … ![]() | |
![]() | |
Hello, I am using a php function to merge 2 pdfs and it works great. <?php include 'PDFMerger.php'; $pdf = new PDFMerger; $pdf->addPDF('testFile5.pdf', 'all') ->addPDF('testFile57.pdf', 'all') ->merge('download', 'samplepdfs/TEST2.pdf'); ?> I get a merged pdf as soon as the page loads. I need the ability to make this merge happen when … | |
hi i develop a software in PHP . but when i press back button which is located at the left top of browser. then there is error. infact it is not coding error. it is such type of error like (document expired) so after that when i refresh the page, … | |
Hello, I am trying to create a page with link like such: page.php <a href="#1">pic1</a> <a href="#2">pic2</a> the first page willbe page.php#1 and the second one will be page.php#2 In order to activate page 2 what file name should I create for page.php#2? It has to be a different page … | |
when new row inserting into mysql, then i want to dislplay some popup notification for few seconds in some page. so pls help me anyone ? thanx in advance :) | |
Hi,i have an xml files that looks like this [code] <?xml version="1.0" encoding="utf-8"?> <photogallery ID="8" name="Residential"> <album ID="5" name="Leb" photogallery="Residential" date="29/10/2008" location="Lebanon" architecture="Roman" img="thumbnail_1245677486.jpg"> <picture ID="Leb" path="thumbnail_1245670921"/> </album> <album ID="6" name="Leb" photogallery="Residential" date="29/10/2008" location="Lebanon" architecture="Roman" img="thumbnail_1245677486.jpg"/> <picture ID="Leb" path="thumbnail_1245670921"/> <picture ID="Leb" path="thumbnail_1245670921"/> </album> <album ID="7" name="Leb" photogallery="Residential" date="29/10/2008" location="Lebanon" architecture="Roman"/> … | |
Hi I am developing my own image hosting script and i want to add api image upload.However i have no idea of how to create API support at this moment.I particularly like the tinyurl api . How can i create a similar api so that users can upload images to … | |
I have three combo boxes in my program... look like this --> box1 number letter box2 1 - 2 - 3 - 4 - 5 - box3 1 - 2 - 3 - 4 - 5 - How can i do it work in this solution ? such as... in … | |
foreach($search_exploded as $search_each) { @$x++; if($x==1) @$construct .="keywords LIKE '%$search_each%'"; else $construct .="AND keywords LIKE '%$search_each%'"; } i just wont to understand this foreach ($search_exploded as $search_each) what is the meaning | |
hi, am recieving an undefined offset error for $month and $year line after the explode function. This happens only when the form is blank and submitted. $dob="dd/mm/yyyy"; $dob= $_POST['dob']; function icPrintINPUTbirth($label,$name,$maxlth,$size,$value) { print '<label>'.$label.':<input type="text" name="'.$name.'" maxlength="'.$maxlth.'" size="'.$size.'" value="'.$value.'"/></label>'.''; } icPrintINPUTbirth("Date of Birth (dd/mm/yyyy) ","dob",10,10,$dob); $arr=explode("/","$dob"); $day=$arr[0]; $month=$arr[1]; $year=$arr[2]; if(@checkdate($month, … | |
So I have a text file with sets of 4 items I want to go in different arrays. I've tried the following but without success. <?php $urls="list.txt"; $page = join("",file("$urls")); $kw = explode("|", $page); $count = 0; $links = array(); $images = array(); $widths = array(); $heights = array(); for($i=0;$i<count($kw);$i++){ … | |
For my project, these two queries don't work. The sqlite manual says to use 'qualified-table-name' but if I do (flist.fdata) an error is returned 'no such table'. As they are below no errors are returned, but the database table is not affected. if (isset ($_POST['del'])) { $id = $_POST['id']; $titl=$_POST['titl']; … | |
Hi guys. Im trying to write a php Read More script for my blog. What I want is to be able to render the first two paragraphs and then give a Read More link for the rest of the article. I've tried doing it myself and failed. If someone can … ![]() | |
Hi, This is a part of my code..I'm making a Post form if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ print "<tr><th>Email1: </th> <td><input name=\"email\" type=\"text\" class=\"textfield\" id=\"email\" /></td> </tr>"; print "SESS not set"; //////////////////for test } if(isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ $memberEmail = $_SESSION['SESS_MEMBER_ID']; print $memberEmail;/////////////////for test print "<input name=\"email\" type=\"hidden\" value=\"{$memberEmail}\"class=\"textfield\" … ![]() |
The End.