39,402 Topics

Member Avatar for
Member Avatar for kyle.santelices.31

if(document.form1.captcha.value != <?php echo json_encode($code) ?>){ alert("qq. \n"); return false; } whats wrong with my code? syntax error

Member Avatar for jstfsklh211
0
102
Member Avatar for sathyagovin

Hi, I am using image upload for REGISTRATION page. I am able to upload images and also database works. My problem is that i get the "Undefined index: emp_image in C:\wamp\" when the image upload page is loading itself. This error is for about 10 lines when i open the …

Member Avatar for dinhunzvi
0
678
Member Avatar for Hanan_1

Hello everyone, I use the example from [Google](https://developers.google.com/maps/articles/phpsqlajax_v3) Now, I would like to know how to change center location from city to another city like this map in [example](http://http://www.enasher.com/billboards) please can you help me to know how becouse im new in google map and i have anthore question in my …

Member Avatar for Ajay Gokhale
0
382
Member Avatar for Iikeloa

Hi I need to put google maps inside my website so that the user can add his location (manually) Then the location will be stored in the database so I can brows it in the display page.I've looking over the web but couldn't find the way to do it :( …

Member Avatar for Ajay Gokhale
0
269
Member Avatar for stokie-rich

Hi Guys this was working this morning and now when my computer crashed and I restared it again it wont work, I've un-installed and re-installed wamp about 4 times now and it still wont work! I really dont know what to do, I cant open the "wampmanager.tpl" file as it …

0
127
Member Avatar for suresh.chaudhari.75

SMTP Error: Could not authenticate. SMTP server error: 5.7.14 Please log in via your web browser and then try again. 534-5.7.14 Learn more at https://support.google.com/mail/bin/answer.py?answer=787 534 5.7.14 54 e67sm2084558qge.13 - gsmtp

Member Avatar for suresh.chaudhari.75
0
424
Member Avatar for Bchandaria

is there any way we can scrap php data from the website? like we can get full data about website content? how can client view the server php code ?

Member Avatar for minitauros
0
98
Member Avatar for kwamephp

I'm trying to create an automated sms expiration reminder but i'm kind of stuck and don't know where i'm going wrong. Can anyone help plssssssss!! <? require('file/connection.php'); $resul = mysql_query("SELECT `firstname` , `phonenumber` , `dob` FROM `members` WHERE DATEDIFF(`dob`,CURDATE())=7 ")or die(mysql_error()); $num = mysql_numrows($resul); mysql_close(); $i=0; while($i < $num) { …

Member Avatar for Webville312
0
4K
Member Avatar for cmabill

I am interested in how to know the price of building a website with shipping cart, is there any thumb rule out there for a non-IT expert to evaluate it. you'd better give me some price with website reference, you could also inbox me if you like. thank you

Member Avatar for renoldscott
0
177
Member Avatar for ultmt.punisher

I just created a simple theme option page that is working fine and also saved after when press save options. But whene reload page by pressing "theme options" menu the saved settings disappeared. Or if you go another page and come back to theme options page the same thing happens. …

Member Avatar for ultmt.punisher
0
767
Member Avatar for Enigma360

I have just used this code in a project which works perfectly, but I have noticed that the first record is always not displayed. Eg. the SQL query lists 15 results, but the output only displays 14, missing the first record. Any ideas why? <?php $result = mysql_query($sql); //first put …

Member Avatar for diafol
0
1K
Member Avatar for jovstudios

Hello guys, I need your Help, why i can get this warning? Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\OJT\FINAL\profile.php:112) in C:\xampp\htdocs\OJT\FINAL\profile.php on line 122 this is my code <?php $member_id=mysql_real_escape_string($_SESSION['id']); $result=mysql_query("select * from user where id='$member_id'")or die(mysql_error); $row=mysql_fetch_array($result); $username=$row['UserName']; $FullName=$row['FullName']; $image1=$row['img']; header("Content-Type: image/jpeg"); …

Member Avatar for jovstudios
0
3K
Member Avatar for Mike_danvers

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\xampp\htdocs\prac\picvw.php:202) in G:\xampp\htdocs\prac\picvw.php on line 220

Member Avatar for diafol
0
152
Member Avatar for burt.munn

I'm trying to create a script that will calculate the tip a customer should pay, based on the number of customers and the amount of the bill. I also have to create an HTML document that has a form with two text boxes, one for number of customers and one …

Member Avatar for burt.munn
0
284
Member Avatar for monika maan
Member Avatar for monika maan
0
100
Member Avatar for rpv_sen

Hi I am using MSSQL ODBC Connetion for my project in PHP. I have created login form with PHP and MSSQL with ODBC Function. Can any one please help how to use SESSION to carry on to next page without get function.

Member Avatar for rpv_sen
0
2K
Member Avatar for markii.borabon

im getting unexpected '$sql' when I run this code.. and idont know why.. <?php include('connect/connection.php'); if(isset($_POST['pid2'])) { $pid = $_POST['pid2']; $name = $_POST['name'] $sql="INSERT INTO tbl_wishlist (prod_id, name) (select prod_id, image from tbl_product where prod_id ='$pid' AND image ='$name' )"; }else{ echo 'mali';} mysql_close(); ?>

Member Avatar for markii.borabon
0
103
Member Avatar for Rizi004

Hello everyone i have a pattern that checks the given url is correct or not and this is working perfectly fine, but when i give arabic chrarcters in pattern it return false because of invalid URL. I want english and arabic chracter to check in URL. where i can do …

Member Avatar for diafol
0
1K
Member Avatar for kyle.santelices.31

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

Member Avatar for urtrivedi
0
231
Member Avatar for punith_1

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/)

Member Avatar for pritaeas
-1
216
Member Avatar for nurul_1

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 …

Member Avatar for nurul_1
0
614
Member Avatar for Nollyvenon

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) …

Member Avatar for Fernando_4
0
268
Member Avatar for kannan mangalar

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

Member Avatar for diafol
0
521
Member Avatar for jovstudios

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 …

Member Avatar for diafol
0
813
Member Avatar for jovstudios

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 …

Member Avatar for jovstudios
0
324
Member Avatar for burt.munn

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

Member Avatar for pritaeas
0
300
Member Avatar for stokie-rich

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` …

Member Avatar for parijatziw
0
374
Member Avatar for Webville312

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 …

Member Avatar for Webville312
0
173
Member Avatar for kreyzy

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 …

Member Avatar for Fernando_4
0
234
Member Avatar for kgavhane12
Member Avatar for szurcsii
0
131
Member Avatar for stokie-rich

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?

Member Avatar for Fernando_4
0
158
Member Avatar for showman13

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 …

Member Avatar for diafol
0
212
Member Avatar for dawbin

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 …

Member Avatar for iamthwee
0
232
Member Avatar for jovstudios

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> …

Member Avatar for chrishea
0
218
Member Avatar for stokie-rich

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 …

Member Avatar for stokie-rich
0
187
Member Avatar for punith_1

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 …

0
113
Member Avatar for shehnaz20

<?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; } } …

Member Avatar for shehnaz20
0
179
Member Avatar for Nollyvenon

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 …

Member Avatar for Nollyvenon
0
450
Member Avatar for Mohammed_9
Member Avatar for Mohammed_9
0
182
Member Avatar for stokie-rich

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` ( …

Member Avatar for stokie-rich
0
198
Member Avatar for jj.dcruz

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

Member Avatar for jj.dcruz
0
271
Member Avatar for sushilsth

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>"; } …

Member Avatar for diafol
0
209
Member Avatar for raul8711

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 …

Member Avatar for diafol
0
231
Member Avatar for thilipdilip

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 …

0
139
Member Avatar for iamthwee

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 …

Member Avatar for pritaeas
0
149
Member Avatar for kimems

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 • …

Member Avatar for diafol
0
157
Member Avatar for Lonestar Jack

**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 …

Member Avatar for OsaMasw
0
144
Member Avatar for iamthwee

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)

Member Avatar for diafol
0
793
Member Avatar for k99rs

I have PHP scripts inside my HTMl file. I am using Apache. I created a .htaccess file and place it in my root directory of the application with the following as its contents AddType application/x-httpd-php .php .html .htm I want to allow the server to execute the PHP scripts inside …

Member Avatar for nturup
0
311
Member Avatar for ImaComputerLuvr

I have an html form to get a number from the user for a calculation. The first number is given. The second is entered by the user. The result is posted to the same page. BUT the resulting answer is now the first number and again the second number is …

Member Avatar for ImaComputerLuvr
0
139

The End.