39,320 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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" … | |
how to edit a image from mysql database in php , that should image should be displayed on the form | |
![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 | |
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 … | |
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 … | |
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 … | |
how Cookies can store other things such as your name, last visit, shopping cart contents, etc. | |
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` … | |
Dear friends, I want to transfer data from one page to other via SESSION variables my code of session1.php page is below <!DOCTYPE html> <html> <head> <title>Hello!</title> </head> <body> <form action="session2.php" method="post"> <input type="text" name="text" /> <input type="submit" name="submit" /> </form> <?php session_start(); $text=$_POST['text']; $_SESSION['stext']=$text; echo("session is set"); ?> </body> … | |
I am trying to make a graph from data that i have in my sql database. Below is the exmaple of the data that i am pulling from my data base. Region LC_count MC_count NC_count B_count LL_count EL_count LR_count CR_count MOUNTAIN 0 722 542 0 7155 0 0 1444 NO.CAL/NEVADA … | |
I have 1000 page metarial in chankya hindi font .i want to make a website who transalte chankaya font to unicode effectly can u suggest how can i do .. | |
I have a gps sending data to mysql db, but am having hard time ploting the values on google map. My javascript skills are not very good, pls help... javascript code <?php $server = "localhost"; $username = "root"; $database = ""; $password = ""; $conn = mysql_connect($server,$username,$password); mysql_select_db($database) or die("Unable … | |
line 15 is WP_PLUGIN_URL.' // Add the stylesheet to the header wp_enqueue_style( 'jquizzystyles' WP_PLUGIN_URL.'/jquizzy/source/jquery.jquizzy.css' false, all); ` { ` font-family "Myriad Pro", "Lucida Sans Unicode", "Lucida Grande", sans-serif; margin: 0; padding: 0; border: 0; text-decoration: none; color: #333; `}` | |
hello, everyone im working on my masters thesis, i need little help. if anyone can help me with cookies methods. i want to implement cookies in my website through PHP, im nt that much expert in php.how can i do that ??? please | |
Hello i am trying to echo a listview using php, i have made an ajax request to display the list view in my html page using div. but the list view never comes out properly, which leaves me with only one thing, that the css and javascript for this listview … | |
How can i redirect to admin and user page ? <?php session_start(); $con = mysql_connect("localhost","root","nano"); $selected = mysql_select_db("airline"); $username=$_POST['uname']; $password=$_POST['ptxt']; $username = stripslashes($username); $password = stripslashes($password); $query = "SELECT * FROM user WHERE name='$username' AND password='$password'"; $result = mysql_query($query); $count = mysql_num_rows($result); if($count==1){ $_SESSION['username']=$username; header("Location:login_success.php"); }else if{ $_SESSION['username']=$username; header("Location:admin.php"); }else … |
The End.