39,326 Topics

Member Avatar for
Member Avatar for Lee_9

Hey I write this code for delete the selected check box values from the database. Yeah I know there are some example already here. But when I take look on them and tried to do as per they done in their question. still doesn't get the success. Can you guys …

Member Avatar for broj1
0
221
Member Avatar for zzmrzz

Hi fellow coders, I'm Martin, and i need a good PHP/HTML coder to my Website. I have a Danish hosting provider company, and i could seriously need some nice stuff to it, to make it more atractive. - If you would like to help, you are not getting paid each …

Member Avatar for imti321
0
450
Member Avatar for UK-1991

Hello, I have some problem with php functions can anyone help me out with this <?php $db_host ="localhost"; $db_user ="my_cms"; $db_pass = "secret"; $db_name = "mypractice"; $connection = mysqli_connect($db_host, $db_user, $db_pass, $db_name); if(mysqli_connect_errno()) { die("SQL Connection Failed: " . mysqli_connect_error() . "(" . mysqli_connect_errno() . ")" ); } ?> did'nt …

Member Avatar for Zagga
0
320
Member Avatar for Hijran

<!DOCTYPE HTML> <html> <body> <p>Redirecting...</p> <?php session_start(); $user=$_POST['uname']; $_SESSION['username']=$user; $con=mysql_connect("localhost","root","nano"); mysql_select_db("airline")or die("Db error"); $username=$_POST['uname']; $password=$_POST['ptxt']; $query = mysql_query("select * from user where password='$password' AND name='$username'"); if($username=="" && $password=="")header('location:admin.php'); else if($username=="hijran" && $password=="khan")header('refresh:5; user.php'); else header('location:error.php'); ?> </body> </html>

Member Avatar for imti321
0
411
Member Avatar for Nollyvenon

How can I get the Machine IP of visitors of my website logged. I've used function getIp(){ $ip = $_SERVER['REMOTE_ADDR']; if($ip){ if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } return $ip; } BUt what I get is my server IP. Thanks

Member Avatar for matrixdevuk
0
265
Member Avatar for Inch

Support me in doing my very first steps, Please. Previously I've had two links to register.php and login.php. They had `header("Location: index.php");` unfamiliar to me. And I've found `header("Location: ".$_SERVER['PHP_SELF']);` **index.php:** <!DOCTYPE html> <html> <h1>Register</h1> <form method="POST"> <input type="text" name="user"><br /><br /> <input type="pass" name="pass"><br /><br /> <input type="submit"><br /> …

Member Avatar for imti321
0
237
Member Avatar for Chris920

Hey everyone, I am new to DaniWeb and happy to be a memeber of this community. Im stuck on a PHP issue. I have two PHP scripts - One on the main domain, and one on the sub/ I have the subdomain with a "meme generator" on it. Then i …

Member Avatar for veedeoo
0
117
Member Avatar for Danny159

Hey, I am working on a project that requires dynamic sub domains... for example user1.mydomain.com and user2.mydomain.com etc... But I am having some trouble... I have setup the wildcard A record and all of that is working fine. The problem is my application uses ajax and because the domain is …

Member Avatar for Danny159
0
213
Member Avatar for imti321
Member Avatar for broj1
0
361
Member Avatar for blueberry25

if(isset($_POST['update'])) { $sql = "UPDATE menus SET Menu_bar = '$_POST[menu_bar]' WHERE ID = '$_POST[hidden]'"; mysql_query( $sql, $con ); } $resultMainMenu = mysql_query("SELECT * FROM menus WHERE Parent_id=0 ") or die(mysql_error()); echo '<ul>'; while($row = mysql_fetch_array($resultMainMenu)) { echo '<form action=page.php method=post>'; echo '<li>' . '<input type=submit name=update value=update>' .'<input type=hidden name=hidden …

Member Avatar for blueberry25
0
209
Member Avatar for Danny159

Hi, I have the following htaccess file: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule .* - [L] DirectoryIndex /index.php RewriteRule ^([^/.]*)$ $1/ [R] RewriteRule ^([^/.]*)/$ /$1.php [QSA] </IfModule> This works fine, if I put for example /legal/ it loads up …

Member Avatar for Danny159
0
168
Member Avatar for Lorele

CodeIgniter 3.0 is available in development, and has been taken over by British Columbia Institute of Technology, taken over from Ellis Labs, and has moved to [CodeIgniter.com](http://www.codeigniter.com/). I am new to using PHP and databases, but after trying to figure out the best platform to work on a web project …

Member Avatar for lorenzoDAlipio
0
570
Member Avatar for PierJean

Hello. I am retired, 70 years old and new to php and wordpress. Not to be completely stupid, I did some homework learning everyday 10 hours a day for the last month or so but my time is limited so I finally decided to seek some help from a helpful …

Member Avatar for PierJean
0
341
Member Avatar for Kalaivani Nair

Good Day Everyone. I'm using FoundationPress as frontend and Wordpress as backend. I created a very simple plugin to upload image into the homepage. I've no issue with that. I can display them properly in the page I desired. However I wish to use little bit of javascript for the …

Member Avatar for Taywin
0
237
Member Avatar for bradly.spicer

I have this snippet below, I'm trying to query if a cast is online or not (That part works when I take it outside the while loop) but then in the while loop run through until I find an online cast and then keep it there. If I remove the …

Member Avatar for bradly.spicer
0
217
Member Avatar for shehnaz20

I want to select a checkbox and delete the selected record i tried the below code but not working can anyone help me out in this <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="data"; // Database name $tbl_name="register"; // Table name // Connect to …

Member Avatar for ashokkmr22
0
189
Member Avatar for dominic.ceraso.9

Hello friends, I havea mysql database setup as the following database -------------- products | flexRange | color | pressingWidth | topSpacerorTopDie -------------------------------------------------------------- I have 400+ entries into these columns - the end result is to have 4 drop downs where the end user will select one item from each drop …

Member Avatar for Bile
0
350
Member Avatar for kesh1000

Hi All, I am doing a project whereby I can create and publish websites/landing page to custom domains. However I am a newbie at publishing. Can someone please guide as to how I can take user input for custom domain where site is to be published at, verify that the …

Member Avatar for AMJAlienServers
0
320
Member Avatar for jorgeftz

Hi, I have the follow select where it display like that using oracle 11g: M<->Note 1<->2 1<->3 1<->4 2<->8 2<->9 I want to display like that in a html table (M once): M<->Note 1<->2 "<->3 "<->4 2<->8 "<->9 $sql = ("SELECT DISTINCT(t1.MIN) AS M, T2.NOTA FROM T1 RIGHT JOIN T2 …

Member Avatar for jorgeftz
0
123
Member Avatar for Junior999

i'm making table reservations scheduling table with PHP and Mysql. i'm stuck on one thing, dont know how to check every cell i must print,which will indicate a reservation, with every column,which will indicate hours. Can anyone give me an idea ? i will get my reservation info from database …

Member Avatar for Masterblank
0
429
Member Avatar for Borderline

Good evening I've been working on creating a basic admin panel in order to allow a friend to edit the content of her own website. The data is stored in a database, and the plan is to allow her to edit/add content to the database. I've previously used this successfully …

Member Avatar for Masterblank
0
247
Member Avatar for Rizi004

Hello everyone i'm developing facebook app but i want when user reach at the end of the page the content auto load from database. The only problem is that how i can check that user's reach at the end of the page with in iframe. I have used auto load …

Member Avatar for Masterblank
0
229
Member Avatar for davy_yg

Hallo, I am trying to create session that works! This is the test admin (assign session) then afterward pass to input_image.php but I wonder why I cannot pass the index.php ? admin.php <?php //$_SESSION['banner'] = $banner; $_SESSION['banner'] = 'banner'; //$_SESSION['image_id'] = $image_id; ?> <td><a href="input_image.php"><img src="images/<?php echo $data['newfilename']; ?>" height="150px" …

Member Avatar for broj1
-1
170
Member Avatar for AntonyRayan

how to edit a image from mysql database in php , that should image should be displayed on the form

Member Avatar for diafol
0
58
Member Avatar for kamal_sharma

![fcc71b5c94a5a1e7c751b868efb70bce](/attachments/large/4/fcc71b5c94a5a1e7c751b868efb70bce.png "fcc71b5c94a5a1e7c751b868efb70bce") Im seeing whitespaces in the head section of my webpage's code on viewing source code in browser. Possibly due to inclusion of php files using include_once. I know its not a big issue but want to remove it. Here is the page http://searchmytrain.com/trains-from/BATHINDA-CANTT

Member Avatar for JorgeM
0
85
Member Avatar for rgracey

Hi - I am creating a simple PHP Task Request form that will post to an email address. I am fine with everything except one problem. I need this form to generate an ID number which will also display in the Subject line. If someone requests a task and it …

Member Avatar for broj1
0
186
Member Avatar for jonlloydd

PHP code not being interpreted by DW and appearing as text on webpage. My Php code is below, this code is bolted into a html site(PHP file). However the code is not being executed and it is appearing as text on the webpage. Any help would be really appreciated. <?php …

Member Avatar for jonlloydd
0
180
Member Avatar for Jackyjack21

Hello, I have a webpage which has the follwing source code: <div class=prod_text> <b>Category:</b> <a href='/Games/Xbox-360/Action_Adventure/'>Action Adventure</a><br><br><b>Publisher:</b> <a href='/stores/Ubisoft/'>Ubisoft (click here for our Ubisoft store)</a><br><br><b>Barcode (EAN) No:</b> 3307215794227<br><b>Barcode (EAN2) No:</b> 3307215794234<br><b>Barcode (EAN3) No:</b> 3307215794241<br><b>Barcode (EAN4) No:</b> 3307215801895<br><br><i class='psm'><b>Please Note:</b> Any images are used for illustrative purposes only, actual products and/or …

Member Avatar for almostbob
0
244
Member Avatar for soomro_moon
Member Avatar for broj1
0
86
Member Avatar for cereal

When using emails as usernames you want them to be unique over your table, but this can be a problem if you consider a GMail account, because of their [username](https://support.google.com/mail/answer/12096?hl=en) [policy](https://support.google.com/mail/answer/10313?hl=en). They allow: * dots * digits * letters * plus addressing text by using the `+` sign, i.e. `orange+juice@gmail.com` …

Member Avatar for cereal
2
658

The End.