39,393 Topics

Member Avatar for
Member Avatar for richardham31

I think php is a hardar part of programming. But wanna step forward in this field. please assist me all of my friends around. Thanks

Member Avatar for diafol
0
144
Member Avatar for iamthwee

This is driving me mad, I'm sure I'm missing something. I save the £ sign into the database and it displays fine when I check the database, but when I print this out in a pdf it displays as £. I can't use modify headers because I'm previewing a pdf …

Member Avatar for iamthwee
0
125
Member Avatar for mangel.murti

i have build a project where wordpress themes can be purchased. Build with Codeigniter how to implement multiple coupons for a single Theme / Item for % discount. i need some help regarding database design.

Member Avatar for mangel.murti
0
181
Member Avatar for ganesh641

Thanks in advance I have used periodic Ajax call for getting a value from the API result in WordPress with Ajax Here is my code Javascript code is : setInterval('getRecentAPI(oid)', 60000); function getRecentAPI(oid){ jQuery.ajax({ type: "POST", url: ajaxurl, data: {id:oid, action:'recent_value'}, success: function(result){ jQuery(".recent div").html(result); } }); } WordPress code …

Member Avatar for pritaeas
0
459
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
224
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
451
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
323
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
412
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
267
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
239
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
119
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
215
Member Avatar for imti321
Member Avatar for broj1
0
362
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
212
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
169
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
342
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
239
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
219
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
191
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
322
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
124
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
430
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
248
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
231
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
171
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
60
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
87
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
187

The End.