- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hello, I'm new into PHP. Just migrated from Java recently. I'm trying to make a conversion machine that conver number to romans number. Here is the code I wrote : !DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Latins to Romans Conversion</title> </head> <body> <h2>Latin to Romans … |
|
Dear friends, Please guide me I want to display data in PHP form from mysql database. my code is below <?PHP //connect to database $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; $conn= mysqli_connect($server,$username,$password,$database); // checkintin connection if($conn->connect_error){ die("".$conn->connect_error); } // select data $sql = "SELECT … |
|
Hello, I am trying to troubleshoot this problem using codeigniter. I am following a tutorial and getting this error after installing the ready-to-use-uncomplete-ci-script. Therefore, I still have to edit things out to make it work, which not all of them is being taught in the tutorial. ---------------------------- // all of … |
|
All, I have one question and one issue with my below php email script - the script currently has the two images side by side when displayed in the e-mail - I'd like the CSS z-index values as well as the transformation to be picked up in the HTML e-mail … |
|
Hello, I am trying to create a table which has a sort feature. I mean whenever someone click the table header, the table content must be sorted based on the header. how to do so? Here is my table codes: index.php <!-- Insert New --> <br><br><br><br> <div id="inputberita"> <p> </p> <p> </p><center> … |
|
Hello. I need some help to update two table.. This is my coding: $query = "UPDATE br.discharged_Date, b.book_Status SET br.patron_ID = b.patron_ID FROM borrow br INNER JOIN book b ON br.patron_ID = b.patron_ID WHERE b.patron_ID = '$patron_ID'"; |
|
i have 5 rows and i want to store all row data into database but it is storing only last row data instead of all four |
|
If checkForm is false, I don't want the form to submit. And if checkForm is true, I would like the form to submit and the action=POST to work. I've seen several examples online where people have VERY similar code and theirs supposedly works. So what am I doing wrong? Is … |
|
Hi. i am trying to show a hidden element using a button. but i want to make it so that everytime the button is clicked the hidden element get shown that same amount as button clicked. example: <input type="button" value="Click me" id="clickme"> <input type="text" id="textbox"> <script> $(document).ready(function() { var element … |
|
im new to php . plz help. i have a page where people fill in a form and check on checkboxes. i also have a page where i edit. i want to know if its possible that on my edit page i could see the checked box checked ? example … |
|
Hello guys, I have a doubt regarding the tabs I have in my project. Its a user view page with multiple tabs in it. Each tab is having details like user basic info, social profile info, skills etc. The current setup is PHP tabs with $_GET['tab'] value. There are different … |
|
after login i want to display logout and username. but here if i login again its showing login. please some help me index.php <?php session_start(); $city=$_SESSION['city']; $userl = $_SESSION['username1']; <?php if(!isset($userl) == '') { ?> <div class="header_nav_left">Welcome <?php echo $userl; ?> | <a href="logout.php" id="clicklogin" title="Logout" onClick="NewWindow(this.href,'loginwindow','500','500','no','center');return false" onFocus="this.blur()">Logout</a></div> <?php … |
|
Can someone help me with below script, this is script for change password. But it always can't recognize the old password. i'm really thankfull for your comments.. <?php include("plogin.php"); //$_SESSION["userId"] = $_POST['id']; //$userId = $_POST['id']; session_start(); include("config.php"); //Cek Login if ($_SESSION['level']==user) { $namaLgkp = $_SESSION['username']; if(count($_POST)>0) { $result = mysql_query("SELECT … |
|
Column 'group_id' in where clause is ambiguous. I wonder why? invoice.php <?php //LOAD GROUP $result2 = mysql_query("SELECT group_name FROM `group` INNER JOIN invoice ON `group`.group_id = `invoice`.group_id WHERE group_id = '".$_GET['group_id']."' ORDER BY group_date") or die(mysql_error()); $result = mysql_query("SELECT * FROM `invoice` WHERE group_id = '".$_GET['group_id']."' ORDER BY group_date ASC") … |
|
I need to subdtring a paragraph in php, without breaking a word? |
|
I am try to figure out how to check current time against time in database and header the user to "expired page" if the current time is greater than the one in database "1 hour" $email = $token = $check_time = ""; $crossToken = $db->prepare("SELECT email, token, check_time FROM pw_reset_company … |
|
Hi again guys please forgive my unknowing, i tried but simpply got errors. I downloaded this upload script ( [Click Here](http://www.phpkode.com/scripts/item/es-simple-uploader/) ), it works great except it's for single file uploads, not multi-file uploads The website I'm working on requires the ability to upload multiple files at the same time, … |
|
Trying desperately to get CodeIgniter and Nginx to play nice. I was able to get it working once a long time ago and I cannot seem to reproduce what I had. I am trying to follow: http://wiki.nginx.org/Codeigniter However, it works fine where / gives me the default controller/method, and I … |
|
I have a problem with login issue that when i loggin as student from index.php it should bring me to student_home php.. but it doesnt show anything and just bring me to index.php back.. i mixed up about header and session part.. my index.php <?php include('header.php'); //Start session session_start(); //Unset … |
|
i have a simple php login script with session but all i get is just a white blank page after running my login,php script. Here is the login,php page <?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); include('connect.php'); session_start(); if (isset ($_POST['submit'])) { $UserName=$_POST['uname']; $Password=$_POST['pswd']; $result=mysql_query("select * from bizness_profile where … |
|
here is my code foreach($test as $t=>sid) $sid->'name of table' $sid->'name of table' $sid->'name of table' $sid->'name of table' when i use this code i can only retrieve the last inserted data. i want to retrieve all the data on my html table. Thanks in advance. |
|
dear friends m using strtotime () function to compare two dates , but it is not working for the date greater then '19-jan-2038'.my os is win 7 32 bit and php 5.2 and apache 2.2.plz if any body having any solution , kindly share it |
|
I have come accross this website. http://en.colette.fr/women/just-in.html If you notice, the products are loaded with lightning speed. I understand they are using Magento. However, its still not clear how the products are loaded so fast. Can you guys give an idea what's hapening there. Is it the server or a … |
|
Hello! I have a problem with sorting mysql queries into pages. So i wanna set every query that is passed to screen to be divided with 30 rows per page. Here is what i come up with: <?php $con=mysqli_connect("*","*","*","*"); // MySQL connect if (mysqli_connect_errno()) { echo "MySQL: no connection! " … |
|
I'm trying to prevent the user from purchasing any share, if the cash in his/her account is less than the desired stock cost (price * shares). However, I'm getting the following error: Warning: mysql_query() expects parameter 1 to be string, array given in /home/jharvard/vhosts/pset7/public/buy.php on line 39 Here is the … |
|
|
Hi I am using codeigniter and I want to use a constant defined in the config>constant file. For example, my color theme for my view might be blue, so I save this in the constants file. define('blue', '#3fsefe'); Now I can use this in all my views... works fine. But … |
|
I'm just wondering what the codeigniter caching library does and where it might be useful, or what problems people have encountered with it are. |
Aplication developed in PHP is more stronger than Codeigniter Aplication ? |
|
This is my code: <!DOCTYPE HTML PUBLIC "-//SQ//DTD HTML 2.0 HoTMetaL + extensions//EN"> <HTML> <HEAD> <TITLE>Courses Radio Button Project</TITLE> <SCRIPT Language="JavaScript"> <!-- function choiceChecker(){ var message = "A course can only be one choice!"; var returnval= true; for (var i = 0; i < form.Choice1.length; i++){ if ((form.Choice1[i].checked && form.Choice2[i].checked) … |
|
Hello Everyone, I wrote this script way back in 2008 as Version1. However, I was forced to forget about this, because it was criticized by many developers with BS, MS, and "Seasoned PHP Developer" under their names. During those days, I couldn't stand up for my own reasons, because I … |