38,020 Topics

Member Avatar for
Member Avatar for Mike_danvers

my table structure is id|passport|stamp|postcard|poster|greetings|collage| 1|2 |3 |4 | 2|7| 6 | ................like this.. i want to show ma users the most recent entry....i am successfully able to show the entries but..my php script is showing all the earlier and recent records..i want to show just the last record inserted. …

Member Avatar for diafol
0
180
Member Avatar for Mohamed_26

Hello, SO I am able to add one item but I would like to add more than 1 item. Can you guys help me with it? <?php require "connect.php"; $query = "SELECT `DVDID`, `NameOfTheDVD`, `Quantity`, `Price` FROM `DVD` "; $stmt = $dbhandle->prepare($query); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ while ($row = …

Member Avatar for Mohamed_26
0
146
Member Avatar for davy_yg

Hello, I downloaded apache: [Newest Apache](http://www.apachefriends.org/index.html) And now I wonder why everytime I try to start the apache service this message appears: Attempting to start Apache service... and stuck right there. I think I have tried install and reinstall my apache several from the newest and the second newest version …

Member Avatar for davy_yg
0
261
Member Avatar for kannan mangalar

**this table dont have a id,class, i want get the content** <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td width="14%" height="25">FullName:</td> <td width="86%">kannan</td> </tr> <tr> <td height="25">email</td> <td>kanna@sample.com</td> </tr> </tbody> </table>

Member Avatar for diafol
0
223
Member Avatar for vaultdweller123

i had an htaccess for that, but the problem is... it doesn't read $_POST variables RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/$ $1.php RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule (.*)$ /$1/ [R=301,L] Anyone know an htaccess that can remove the .php, add a …

Member Avatar for vaultdweller123
0
874
Member Avatar for chaitu11

<?php if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login']) == 'Login'){ $email = test_input($_POST['lemail']); $password = test_input($_POST['lpassword']); $passw = sha1($password); echo sha1($passw); $sql = mysqli_query($con,"select admin_id,admin_email,admin_password from admin where admin_email = '".$email."' and admin_password = '".$passw."'"); $row = mysqli_fetch_array($sql); if(mysqli_num_rows($sql) == 1){ session_start(); $_SESSION['admin_id'] = $row['admin_id']; $_SESSION['admin_email'] = $row['admin_email']; if($_SESSION['admin_id']){ header("Location:jobpost.php"); }} else{ …

Member Avatar for jj.dcruz
0
8K
Member Avatar for rajendher

hello everybody......... for example i want to read a 2014.html or 2014.php file like shown below. http://example.com/myfiles/2014/-dir-/2014.html. i don't want to show full path. how it is possible anybody please help me. Big up for reply.........

Member Avatar for rajendher
0
438
Member Avatar for jj.dcruz

I have coded this today and wanted to find all the data inside my database which is start_time and end_time also date which is very easy for me to validate but when it comes to time... its really hard this is what I want to do. 1. check all the …

Member Avatar for jj.dcruz
0
189
Member Avatar for Sujithabonam

Hi , I just want to know,is it possible to assign the javascript array variables to the php array variables. I am new to php ,so please can anyone explain me.

Member Avatar for diafol
0
384
Member Avatar for Mike_danvers

hi!!m doing my college project on "online digital photo printing"where a customer can upload,edit and order photos at home the problem i am facing is:-i want to provide my users a "price list of photo type(passport size=rs XXX,stampsize=rs YYY)" and these prices should be entered by "admin"in a form..that gets …

Member Avatar for diafol
0
173
Member Avatar for asker54

I installed WAMP server 2.4 the latest one on its website which currently support PHP 5.4 and Apache 2.4. This works successfully. When I tried to downgrade the PHP version to 5.2 or another lower version, the system rejected this downgrading saying my Apache version is not compatible. So, I …

Member Avatar for asker54
0
536
Member Avatar for com00085

Dear all , i have one question how can i submit a form with multiple form in my page and i don't want to refresh page because if refresh page other form will lose data need to input again

Member Avatar for com00085
0
158
Member Avatar for jj.dcruz

i have a database at the links. so the problem it still insert between the time some friends suggested to loop all the data 1st then validate but im confused here. **any help would be great ** <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php mysql_connect("localhost","root",""); …

Member Avatar for jj.dcruz
0
208
Member Avatar for edbr

struggling with this update in PDO, i have hacked away at it in frustration, but i cannot see my error

Member Avatar for edbr
0
216
Member Avatar for juspho.kaur
Member Avatar for grakovski

Here is online demo - http://cs-bg.info/news/archive/ I want to show my news like that. (like archive for each year) I want to work with epoch time. Thanks for any help.

Member Avatar for diafol
0
301
Member Avatar for sushilsth
Member Avatar for diafol

It seems the article [Update on PHP.net site malware hack attack](http://www.daniweb.com/web-development/php/news/466087/update-on-php.net-site-malware-hack-attack) has been at the top of the PHP forum for 3 months. OK, there have been a few comments, but it's getting a bit old. Is there any reason why this is a sticky? BTW - good article by …

Member Avatar for richkardmunga.hounarable
0
593
Member Avatar for reshma.patil
Member Avatar for sushilsth

<?php $query=mysql_query("SELECT model_no,images1 FROM nokia"); echo"<div>"; while ($img = mysql_fetch_array($query)) { echo $img[0]; echo "<img src = cms/pages/images/".$img[1].">"; } echo"</div>"; ?> what is actually wrong in my code.. its not displaying images($img[1]) but it displays the content 'model_no' ie. $img[0]. plz any sugesstion would be greatly helpful...

Member Avatar for kgavhane12
0
369
Member Avatar for shaqib

Hello, i have the following column in mysql table. number | name 123 | ABC XYZ 456 | DEF QRS hre is my mysql query: $query = "SELECT name, extension FROM users ORDER BY name ASC"; $resultID = mysql_query($query, $linkID) or die("Data not found."); $xml_output = "<?xml version=\"1.0\"?>\n"; $xml_output .= …

Member Avatar for shaqib
0
176
Member Avatar for david.roun.7_1

So, I checked the first 5 pages and couldn't find anything like what I'm asking. When a user registers on my site, it automatically creates a new directory and uploads a picture of their choice, to the directory. When the user logs in, the webpage shows their photo, taken from …

Member Avatar for david.roun.7_1
0
185
Member Avatar for chaitu11

When i reload my registration page, duplicate data gets entered in to database ...should i clear cookies..any solution

Member Avatar for JorgeM
0
105
Member Avatar for adsegzy

Hello, I uploaded some pictures on my website and i want to watermark them on preview. the watermark file is <?php // Load the stamp and the photo to apply the watermark to $stamp = imagecreatefrompng('images/watermark.png'); $im = imagecreatefromjpeg('imgs/products/picture.jpg'); //needs to be dynamic instead of static // Set the margins …

Member Avatar for iamthwee
0
208
Member Avatar for persianprez

Hello all, I get the following error when hitting submit in my form to post to the spreadsheet: > Fatal error: Uncaught exception 'DOMException' with message 'Namespace Error' in /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php:220 Stack trace: #0 /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php(220): DOMDocument->createElementNS('http://schemas....', 'gsx:') #1 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets/Extension/Custom.php(64): Zend_Gdata_App_Base->getDOM(Object(DOMDocument), 1, NULL) #2 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets/ListEntry.php(77): Zend_Gdata_Spreadsheets_Extension_Custom->getDOM(Object(DOMDocument)) #3 /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php(329): Zend_Gdata_Spreadsheets_ListEntry->getDOM() #4 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets.php(336): Zend_Gdata_App_Base->saveXML() …

Member Avatar for Окна
0
225
Member Avatar for ysfzby

Hi Friends; I have experience in PHP programming language started to be proficient with the more recent and would like o make a site like this http://www.yorungetur.com In my experience, the best way to learn it in order to win, and how can I do?

Member Avatar for Alberto Bucur
0
439
Member Avatar for davidjennings

Hi All, I am tring to capture the data being passed from an ASP page. `<td height="30"><a href="http://admin.boilerrentalservices.co.uk/availability.php?<%= rowProduct("GRPCODE") %>"><%= rowProduct("GRPCODE") %></a></td>` using VAR_DUMP($_GET) in the PHP page which produces this `array(1) { ["AHU-100-200"]=> string(0) "" }` How can I extract this 'AHU-100-200' data in a usable form and use …

Member Avatar for davidjennings
0
162
Member Avatar for marriott81

Hey all, Kinda new to php but have managed to create a website with a login script (cheated and used usercake) but have modified it to my own needs mostly. However I now need to make it so that when the user registers it sends it to me not to …

Member Avatar for marriott81
0
611
Member Avatar for Jemuel

please help i am trying to extract data from database into multiple columns but i can't get it. All your helps is very needed. Thank you! this will be the output (actual value of my serial table) 1233BED13DS01132 1233BED13DS00878 1233BED13DS00012 1233BED13DS00097 1233BED13DS01315 1233BED13DS00461 1233BED13DS00835 1233BED13DS00010 1233BED13DS01313

Member Avatar for diafol
0
223
Member Avatar for iamthwee

Hi friends, I'm wondering what is the best way to go about validating my forms with both php and ajax. For example, I want to use the form_validation library but also jquery such that the page doesn't require a refresh or redirect. How best to do this what is best …

Member Avatar for iamthwee
0
4K

The End.