39,393 Topics
![]() | |
if(document.form1.captcha.value != '$_SESSION["code"]'){ alert("Wrongwrong captcha \n"); return false; } hello ,i just want to ask why is it not running ?i decided to convert my php function to javascript . thank you | |
hi everybody... i'm creating some educational based website in which students results r displayed. but i'm willing to send result to there mail plz visit https://github.com/shaan7/vturesults can anyone explain how to use this code files in my database and made it to work in my website(similar to http://vtu.shaan7.info/) | |
I have a form and a mysql table name parcel. I need to insert tracking number in the table which is personally generated based on year,category and status. But the tracking number must auto increment. For example : category has two values : D and L status has four values … | |
I have a query which i am trying to get the last date and when i do, the purchdate and LastPayDate is the same for all the data. the query is below: SELECT DISTINCT customer.custid,customer.compname,customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, preAgg1.LastPayDate,customer.depot, MAX(mastorders.lastsuppdate) AS purchdate, MAX(mastorders.id) FROM customer,mastorders,acctofficer, (SELECT DISTINCT T.custid, Max(T.timestamp) … | |
i need a regex for ectract meta title, description exg: <meta name="description" content="xxxxx"> and <meta name="Description" content="xxxxx"> and <meta name="Descriptions" content="xxxxx"> and <Meta name="Descriptions" content="xxxxx"> and <META NAME="Description" content="xxxxx"> i want to extract all type od descrptions, same also meta title ![]() | |
Hello Guys. I am trying to make a code for login form in my page using Bootstrap modal. Then I want to know how to validate the form in modal. Thanks in advance. Example. There have UserName and Password Field, If Username and Password not match it should be say … ![]() | |
Hello Guys. Can you check out my codes? I dont know y i get this warning Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\OJT\FINAL\login.php:117) in C:\xampp\htdocs\OJT\FINAL\login.php on line 130 help me guys thanks <?php include('dbcon.php');//para sa connection sang database session_start();//para mag start ang session … | |
I made 2 tables in PHP that I need side by side and they are end to end. How do I put them side by side? Thanks | |
Hi guys i'm creating a new table in sql to allow users to register with my website, this is the sql code that I'm suing does this seem ok to you? CREATE DATABASE `dyscaculia` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `dyscaculia`; CREATE TABLE IF NOT EXISTS `users` ( `Firstname` … | |
Dear all, I have a challenge here of understanding the page masks as used in this code; <? $access_level_map['loader'] = 1; $access_level_map['support'] = 3; $access_level_map['admin'] = 7; $access_level_map['superadmin'] = 15; define("LOAD_PAGE_MASK",1); define("SUPPORT_PAGE_MASK",2); define("ADMIN_PAGE_MASK",4); define("SUPER_ADMIN_PAGE_MASK",8); $pageMaskMap['add_employee.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc_blocked.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc_unblocked.php'] = SUPPORT_PAGE_MASK; ?> What I know … | |
What I'm trying to make is something like this. jsfiddle.net/zunrk/ I want to create a receipt that when you pick the data from the drop down it will show the details on other text box. The other problem is that i wanna create multiple textbox because there will be multiple … | |
Hi Guys I dont know what I have done wrong I'm accessing phpmyadmin through xampp on windows 7, when i changed the password on root@local host it locked me out with this #1045 - Access denied for user 'root@localhost'@'localhost' (using password: YES) what do i need to do? | |
I've got an odd question ( I think ) I have to do a header redirect to a remote server The page on the remote server is just ugly. no background no formatting, etc... The vendor that hosts it says that I can use CSS to dress it up a … ![]() | |
What is the most efficient way to get the number of rows from a table? I'm able to do it with the following code, but looping through a recordset of one row seems inefficient. Is there a better way to do this? <?php $con=mysqli_connect("0000000000","0000000000","0000000000","0000000000"); $sql = 'SELECT count(*) AS t … ![]() | |
Hi Guys, Can you Tell Me What is the wrong of my Code. This is my Code. I am Using DOM Extension! <?php require_once("dompdf/dompdf_config.inc.php"); $conexion = mysql_connect("localhost","root",""); mysql_select_db("evaluation",$conexion); $codeHTML=' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Download</title> <link href="css/style.css" rel="stylesheet"> </head> … | |
Hi Guys I've now sorted the sql query and the database is now sorted, but now I want to connect the PHP and sql database Config.php file //Mysql Connect | mysql_connect("host","username","password"); //Below example to connect in localhost $a=mysql_connect("localhost","root",""); //select your database $b=mysql_select_db("database_name",$a); I take it I need to specify the … | |
I have a form at http://www.sledor.talk4fun.net/results/results.html which shows results if a proper roll number is entered... the results are fetched from http://results.vtu.ac.in site and only the table is shown... now i want to add the data of the table to my database using php. Is there a way to do … | |
<?php // Database Connection require_once("condition.php"); $host="localhost"; $uname="root"; $pass=""; $database = "data"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); //or die("Database Connection Failed"); $selectdb=mysql_select_db($database) or die("Database could not be selected"); $result=mysql_select_db($database) or die("database cannot be selected <br>"); $projno=$_POST['parameters']; function IsChecked($chkname,$value) { if(!empty($_POST[$chkname])) { foreach($_POST[$chkname] as $chkval) { if($chkval == $value) { return true; } } … | |
Please can i get a help on joining these 3 queries SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastpaydate,'%d-%m-%Y') AS debtage,customer.depot, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate FROM customer,mastorders,acctofficer WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, customer.depot FROM customer,acctofficer WHERE acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC … | |
I need help finding a way to use xampp with an already hosted wordpress? | |
hi guys i'm creating my own website and i want to let users register and for them to be able to let them take a quiz. I have created this sql code CREATE DATABASE `dyscaculia` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `dyscaculia`; CREATE TABLE IF NOT EXISTS `users` ( … | |
i have to backup my database via php codes but i always ended up with an empty file? <?php include "connection.php"; $command = 'mysqldump -u root -p ***** –all-databases > dump.sql'; exec($command) or die(mysql_error()); ?> any help would be great | |
i am actually working for showing online for loged in user. This is my code: $qt="select userid from plus_login where tm > '$tm' and status='ON'"; $result = mysql_query($qt); while($row=mysql_fetch_array($result)) { $uid = $row['userid']; $qt1="select first_name, last_name from signup where user_id='$uid'"; $result1 = mysql_query($qt1); while($rows=mysql_fetch_array($result1)) { $_SESSION['name']=$rows[0]." ".$rows[1]; echo $_SESSION['name']."<br>"; } … ![]() | |
Hi Guys, I'm looking to build an extremely simple script that would allow someone that I know to share files in a simple manner. This script should do the following: - Make a list of all the files in a specific folder. - Make downloadable links to these files (<a … ![]() | |
Hi, I 'm new to prestashop module deelopement, I created one module which customer can add their product and sell their product, in that I have mentioned image upload functionality, which is possible to add one image, now the problem with image uploader, It can able to upload single image … | |
![]() | I've asked this before and I'm really racking my brains here. To create an admin controller or simply have an if statement in the view. **view** if session == admin show admin delete post This would minimize my code so much. I really can't see the wrongness in this. Although … |
How can you create a database driven menu in php. The vertical menu content should depend on the horizontal. Assuming you have three tables: • Module which have the data to be displayed on the horizontal menu • Sub Module which have the sub modules of the module above • … ![]() | |
**I want to embed links and fields into php generated emails. This is the email_message field.** Welcome to the Neighborhood 13 Wine Tasters Group. In order to make sure we have your correct email address we need to have you return this email by pressing the Return button on your … | |
![]() | hi guys... what is the simplest php forum to add to my cms. I'm struggling finding something simple which separates the db code and view(html) ![]() |
The End.