39,388 Topics
![]() | |
Here is a very tiny program(3 files) has embedded with Smarty template engine. Anyone knows how to remove Smarty completely? I konw the procedure to remove Smarty but failed to rewrite the code into pure PHP. Complete source files as in attachment. **CLICK HERE!!**~~~ http://www6.mimima.com/link.php?ref=FGHkNoDtmB *****************index.php <?php require("comm/Smarty.class.php"); require_once("get_data.php"); require_once("books.php"); … | |
I need help and thank you in advance for any advice. I'm new to Php and Mysql. I've put three drop down menus in one cell of a table and I want to display results of a simple query (4 fields per record) in another cell of the table. Only … | |
![]() | Hi everyone... Well i do have a mysql query in one php page(php_1) & I want to submit the variables to the query in different php page(php_2) via form action but how am I supposed to do it without redirecting to php_1.. All I need is to post the data … |
Hi, I'm trying to send data from a form to a page called "register.php" by using the POST method. Can this be done on a localhost? I'm quite new at this and I am practicing on a localhost server with phpmyadmin. When I click the "register" button it shows the … ![]() | |
how do i make the first form entry that gets sent to the csv go under column heading...? (i.e.) I have headers that say Name, Age, weight... and the user submits a form with the following saying Bob, 72, 291... then the data gets sent to the csv... I want … ![]() | |
1.I have a MySql DB called 'scheduled' and table called 'messagelist'. The first field msgID is int(10). Rest all are varchar(20). 2.broadcasttext.php <form name="frmText" method="post" action="addScheduled.php"> 3.addScheduled.php <?php $host="localhost"; // Host name $username="scheduledUudk8"; // Mysql username $password="KeszRXqXo.)-"; // Mysql password $db_name="scheduled"; // Database name $tbl_name="messagelist"; // Table name $i = … | |
Guys please help.. It always says "Sorry, cannot log you in. Wrong login information". Thank u.. <?php session_start(); include "dbConfig.php"; if ($_GET["op"] == "login") { if (!$_POST["StudentID"] || !$_POST["password"]) { die("You need to provide a username and password."); } $q = "SELECT * FROM `student` " ."WHERE `StudentID`='".$_POST["StudentID"]."' " ."AND … | |
how can i tell in php that 01 is not equal to 1 and 1 not equal to 01 so that i can insert it in the data table $startnummer= ($_POST['Startnummer']); $query9 = mysql_query("SELECT werkelijkstartnummer,startnummer,turnier_jaar FROM narr_turnier_".$onlyconsonants." UNION ALL SELECT werkelijkstartnummer,startnummer,turnier_jaar FROM narr_turnier_".$onlyconsonants."_ster WHERE turnier_jaar=".$jaarnu." && startnummer = ".$startnummer." "); … | |
i configure openinviter with Codeigniter. gamil conatact is fetching but yahoo and facebook contacts list are not working.any suggestion will be appre. ![]() | |
Hello, Here is a snip of my code and although the mysql connection work and even the $num calcullate the numrows work as the tables gets created unfortunately no data gets populated, can any one one advise. 1 - mysql_connect (OK) 2 - mysql_select_db (OK) 3 - mysql_numrows (OK) 4 … | |
OK! so I got this code working, HostGator ended up allowing my sockets etc and it worked!!! However this lead to more problems... <?php /* Plugin Name: Server Status Plugin URI: http://minepress.co.uk Description: Server Status Plugin Author: Bradly spicer Version: 1.0.0 Author URI: http://minepress.co.uk */ class ServerStatus extends WP_Widget { … | |
I have a project am working on right now and I need help. It a sms site with "My Account" with Balance remaining but I want a script whereby, if they transfer credit to their friend or family, whatever amount inputed to be transferred, from the "Transfer" page should be … ![]() | |
how do i change the text when i login, the "Register" will change into "Control Panel" and "Login" will become "Logout"? when i click logout, the control panel & logout will change back to register & login. But in there have first login after display home page.But I want First … | |
Im new to php and mysql and doing my final year project, i want to ask u ppl that what if i want to display a row of a table after some if condition, i want to diplay offered courses to all the students and if the student whose course … | |
I have a simple php library that i am using, now i wnat to upgrade it. I want to create namespace on it so my class will be inside on the namespaces bu t i got an error when i i tried to use namespace. here a sample <?php defined('protect')||(header("HTTP/1.0 … | |
l need to generate a dynamic PDO update query. l am not sure of the behaviour where we have the same placeholder name in th update and WHERE clause for example UPDATE users SET name = 'Master User' WHERE name = 'Dev User' As you can see placeholder name will … ![]() | |
when i insert text into mysql db and view the page in a appear ,its all put together as one big text block.No spacing, no paragraph ,nothing. i use `openwysiwyg_v1.4.7` in the textarea in my form as my text editor. I want to know if there is a way to … ![]() | |
heloo everyone, i am new to mysql and php. here i am diplaying my data by joining 3 tables.what this query is doing 1) displaying course name 2) displaying subject name 3) displaying status if any there are three statuses (applied, accepted, rejected) what i want to display is 1) … | |
I am trying to figure out why I am getting this error notice, Does anyone have an idea as to why this is happening. Notice: Undefined offset: 5 on line: `if ($tree[$i]['level'] < $tree[$i+1]['level']) {` on line: `} elseif ($tree[$i]['level'] == $tree[$i+1]['level']) {` on line: `$diff = $tree[$i]['level'] - $tree[$i+1]['level'];` … | |
i'm Having 3 tables those are like 1.State table 2. District Table 3.college Table state table cat_id state 1 Andhrapradesh 2 Gujarat 3 Punjab 4 mumbai --------------- district Table cat_id d_id district 1 1 vizag 1 2 eastgadavari 1 3 hyderabad 1 4 westgadavari -------------------------------------- college table Cat_id d_id c_id … | |
hi everyone..hope every1 is going great..well i'm a beginner in mysql and php and i cant fix the query as i desire..iam joining 3 tables here and displaying thre data.. 1st i have displayed course names from the courses table 2nd i have displayed the subject names from wich the … | |
I am trying to insert my form's data radio buttons into my mysql database. it works very well but when i skip any one value of my radio button,as this is more than 20, its giving error that Notice: Undefined index: qr1 in C:\wamp\www\exam\contents\omr.php on line 134 Call Stack # … | |
**Lay of the Land** I have been tasked with rewriting a website, (I'm new to the ways of PHP). This website is a way for users to transfer files, usually between 10 MB - 1 GB using HTTPS; which includes a coupling to a broad single-sign on service. Half the … | |
I am working on login form where multiple users can sign in using their username and password. Depending on who it is, it will take them to certain file or link depending on how we set it for that user (john.doe goes to test1.php and jane.doe goes to test2.php). When … | |
![]() | Hi, I'm learning OOP and I'm having issue echoing an `attribute` function. This is my example: <?php class sandwich { function sandwich($hero) { echo "I like to eat $hero sandwich.<br>"; } } $a = new sandwich("roast beef"); $b = new sandwich("pastrami"); $c = new sandwich("turkey"); ?> When I echo it … ![]() |
I'm New in php & practicing a MLM Project, So i want know how to Calculate this & echo the Stages.  | |
Hello, I have started learning php and mysql recently, and I have run into problems. I received this code: * Parse error: syntax error, unexpected 'average_user' (T_STRING)* and the problem is that I granted SELECT to average_user in the databse, but it is coming up with an error. What is … | |
i am having the code if (eregi($file,$_SERVER["HTTP_ACCEPT_LANGUAGE"]) && !$use_lang) $use_lang = $file; This line of code is giving error:-Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\spm\includes\header.php on line 15 | |
Hi there, I have been trying to fix the problem in the below code for a long time, it did work for me at some point. Then, it suddenly stopped storing user's details in a session. $user = $_POST['username']; $pass = $_POST['password']; $query = "SELECT username, password FROM USERS WHERE … ![]() | |
----------------- sql ------------------------- CREATE TABLE IF NOT EXISTS `friend` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(30) DEFAULT NULL, `friends` text, PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; -- -- Dumping data for table `friend` -- INSERT INTO `friend` (`uid`, `username`, `friends`) VALUES (1, 'admin1', 'a:2:{i:0;s:1:"4";i:1;s:1:"5";}'), (2, 'admin2', … |
The End.