39,402 Topics
![]() | |
I am writing a site that sends the following: [url]https://accounts.google.com/ServiceLogin?service=cl&passive=1209600&continue=http://www.google.com/calendar/event?action%3DTEMPLATE%26text%3DEventTitle%26dates%3D20120107T152000Z/20120107T162000Z%26location%3D1%2BNicholas%2BStreet%26details%3Dhttp://dev.uocal.uottawa.ca/en/node/354&followup=http://www.google.com/calendar[/url] to Google to add to the Google calendar. How would I write the URL if I want to add a calendar event every Monday until a specific date to Google calendar. I looked in the Google API and I did … | |
Im trying to write an else statement in php where: if keyword is equal to letter or word it will give me an error message. right now my statement looks like this. [code] mysqli_stmt_close ($query); } else //problem with a query echo "Error: " . mysqli_error($conn); } else { //no … | |
Hi every one I am trying to upload a file on server but it is not uploading and always giving an error HEre is code. Please help. Its urgent [CODE] <?php session_start(); if(!session_is_registered(username)){ header("location:login.php"); } if($_REQUEST['title'] != '' && $_REQUEST['type']!='' && $_REQUEST['category'] != '' && $_REQUEST['sub']!=''&&$_REQUEST['elm3'] != '') { require("db.php"); … | |
Hi, I am having some trouble echoing into a drop down menu. Instead of the bandnames that I would like to appear, $band is appearing. Here is my code: [CODE] <form action="insert.php" method="post"> Band Name <select name="band"> <? $link = mysql_connect(); if (!$link) { die('Could not connect: ' . mysql_error()); … | |
I have a proble in getting parent url address in iframe from my project. so, i have let's say ads.php located in [url]www.domain1.com/ads.php[/url] it's look like this [CODE] <?php //iklan.php if($_GET['klik'] == 'yes') { //klik process exit; } $some_content = ' document.write('<iframe src="www.domain1.com/ads.php"> <a href="www.domain1.com/ads.php&klik=yes">klik_link</a> </iframe>'); '; echo $some_content; ?> … | |
hi , i have two table i want result in tree view.how to do it. if i have n level question and answer then what is db design for it thnx for any help | |
I have four database tables locality table: localityid, locality. jobtype table: typeid, type. applywork table: id, userid, applyfor applicationsent, jobtypeid, vacancyseenon companyname, doorno buildingname, street, localityid, postcode, telephone, website, email, notes users: id, role, name, surname, gender, username, password. I have a page to edit selected field from applywork. I … | |
how can i do image update mean i want change my image using php code......... and previosly store image del and new image is overright previously image and image information store in mysql database such as image name and image path... | |
Hi there i m having some problems in creating and handling multiple buttons. The idea is that i have two buttons "Accept" and "Reject" and i want to give them differnt names using the variable $i from the for loop. Below i give you the code which shows what i … | |
I am currently testing a desktop application which is sending some data to a web URL in XML format, for some reason this data seems to be not sent in the correct format. I need to know if there are any website or script that I can use to troubleshoot … | |
can anyone help me what is the problem .. here is the situation, there is USER1 logged in name ex JAMES a student, and on the other hand the admin updates the other student in his account,, why is it the current logged in replaced the updated one... ? this … | |
hi im trying to use my login class file with my database class file using class extends and i cant seem to figure out how to connect the two [CODE]<?php class access extends MySQL{ var $user_column = 'username'; var $email_column = 'email'; var $pass_column = 'password'; var $user_level = 'user_level'; … | |
Hi guys, i'm a php beginner I was trying to create a function to merge two images into one. I have been successfully merging a frame(png) on top of an image uploaded (jpeg) on low res. Then i move on to increase the image file size so that i have … | |
Hello. :) So I am creating a grading system where users can compute student's grades on selected ID Number. The problem is after clicking the COMPUTE button, an "Error!" message display. So far I can save the grades in database but I can't compute it. I'm sorry I'm new to … | |
Hello Guys, Can anyone help me regarding this search engine I want to implement on my script? Let's say i have 5 files (file11.txt, file12.txt, file13.txt, file14.txt and file15.txt) on my folder named FILES. Now i want to write script that when i search for a particular words, it will … | |
I want a Jquery Popup Form which will appear on Page Load but only one time (for newsletter purpose). After filling form.. I want to store values into a table. | |
Hi How to write code mod-rewrite for 3 variables. Ma actualy code: [CODE]AddType text/x-component .htc AddType application/x-httpd-php .html Options FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)$ index.php?s=$1&pods2=$2&pods3=$3 [L][/CODE] variables $1 and $2 correctly work, but $3 does not work, what can I do? | |
hello, i need some help with my source code. can anyone explain how to create a button to view next record from my database in php? sorry for my bad english <?php session_start(); if(isset($_SESSION['id'])) echo "Selamat Datang,".$_SESSION['id']."!"; else die('Tiada maklumat yang dicapai. Sila <a href="../index.php">login</a></h1> semula!'); $con = mysql_connect("localhost","root",""); if … ![]() | |
Hi guys, im trying to upload files to my script and have hit an anoying problem. if the file is bigger than what I allow in in my php.ini config, the $_POST and $_FILE comes through empty - and I cant check that there's been a post to then check … | |
i want to display data from mysql database in table form on the web page . Ex. - If there are 100 entries in the database then only 10 entries can be displayed i should be able to use 'next' and ' previous' buttons to display consecutive data tables containing … | |
Okay I'm sure you read the title and rolled your eyes, but I can't seem to figure this out - so I need some help. I'm a bit of a newbie when it comes to php. I've read a bunch of various forums threads (from here and else where), and … | |
I am trying to figure out why the PHP will not check the database level and echo the proper message. Hopefully someone can help me figure this out. [CODE]<?php $connect = mysql_connect("localhost","goforgol_master","!rach22*") or die("Couldn't connect!"); mysql_select_db("goforgol_phplogin") or die("Couldn't find database"); session_start(); $email = $_POST['email']; $password = $_POST['password']; if ($email&&$password) { … | |
I've got a form that on submit two things occur: 1. all the data is passed to a shopping cart (a php script) 2. it emails me all the data (using a [B]separate[/B] php form-to-email script) In the form-to-email script, I want to delete/strip/remove some of the data that is … ![]() | |
I have one variable already set (received through GET, too). I want to pass it, together with the variables of the form. The problem is that the new page takes only the variable from the from. This is the code: [CODE]$insertion_type=$_GET['insertion_type']; echo "<form action='index.php?insertion_type=".$insertion_type."&' method='get'>"; echo "Number of registrations<br /><input … | |
Guys can anybody help me, I'm trying to fetch records from my database and use those records as links, my codes work but the first two records are not converted into a hyperlink, why it happened? what is wrong in my codes? [CODE] <?php $username = $_SESSION['username']; $query = "SELECT … ![]() | |
Hi everyone! I am sorry I'm new to PHP and MySQL. So, I am creating a form for user to update their details and compute student's grade but the updating part doesn't work. Here is code: [B]COMPUTE.PHP[/B] [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Compute Grade</title> </head> <body> … | |
$date =date("m-d-Y"); $selected =$_REQUEST['sel_day'];// Selected date $today = strtotime($date); $expiration_date = strtotime($selected); if ($expiration_date > $today) { echo $valid = "yes"; } else { echo $valid = "no"; } not working? please help | |
I encounter an error message when I click on my submit button. The error is: [QUOTE]Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\Duplicate of Edited Site\question.php on line 17[/QUOTE] Line 17 contains the … | |
Hi i'am try to insert multiple data on a single submit, but i'm a total noob to Arrays, can any one help me out here... one of the members send me this out, but still i can figure it out how to insert the fields onto my database. it inserts … | |
error msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mon'@'localhost' (using password: YES) in C:\xampp\htdocs\project\include\connection.php on line 7 Could not Connect ///my connection.php code <?php define("contype","localhost"); define("user","mon"); define("passwd","affinity"); define("db","project"); $con=mysql_connect(contype,user,passwd) or die('Could not Connect'); $dbcon=mysql_select_db(db); ?> //here's my scenario. i add new USER to my mysql in phpmyadmin and its … | |
Hi all, I'm working on a webpage with 2 dropdown menu and a submit button. both the dropdown menu has a default value="" selected. I am trying to figure out a way to filter mysql query. Here is the drop down menu <form action="showJobs.php" method="post"> <select name="Locations"> <option value="" selected="selected">All … | |
I am trying to create a form that exports my mysql database , and can also reimport the mysql database using like a form. I am trying to do this in PHP any ideas on how it can be done or if it''s already been done? I know there is … | |
So I'm trying to create a PHP and MySQL program where users can add, update, delete, view and search records. But the problem is I can't update records whenever I click update button. Here's my code --> [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Update Record</title> </head> … | |
![]() | Im creating a community website and have a little problem working out what my if statment should look like. there is a default profile image and the one that is stored in the users directory. so basically i want to display the image which is in the users directory, but … |
Hi, i have this code which is a table with login form, history of website and the news. ths news are here: [CODE] <td> <h2>DESTAQUES</h2> <table> <tr> <td> <?PHP include "db_connect.php"; $sql_destaque = "SELECT data_destaque, descricao_destaque FROM destaques ORDER BY cod_destaque DESC LIMIT 4"; $executa=mysql_query($sql_destaque,$connect); $dados = array(); while ($linha … | |
I have three table that are linked like this. Each content is linked to a category and each category is linked to a section. Like this sections_table -section_id -section_name categories_table -category_id -section_id -category_name contents_table -content_id -category_id -content_title -content_description I want to write a query to display only content from a … | |
Hey guys, I have this code which grabs categories from my category table of the database and populates the category drop-down box. I was hoping someone could tell me how I could populate the second drop-down box depending on what was selected in the first box. E.g. If "Networking" is … | |
Hi everyone! So, I'm trying to create a program which users can add, update, delete, view, and search records but I am having a hard time about updating records in my database. In my Update form, I've got 1 dropdown menu or option that contains ID number and when I … | |
Hi my php code is not working on my computer, i cannot see any problem with my code either. when loading my code, it just shows my code printed onto the browser <?php $yourname = check_input($_POST['yourname']); $email = check_input($_POST['email']); $likeit = check_input($_POST['likeit']); $comments = check_input($_POST['comments']); ?> <html> <body> Your name … | |
I'm new to regular expressions. could any one suggest where to start and any tutorials or books they can recommend. Also need to start learning frameworks I'm good with PHP with mvc pattern but need to learn RegX and frameworks is Zend good? ![]() | |
Hi all I am writing a points system for a event that is coming up and the client would like results for each member printed on 1 page for each account the results will fit on 1 page for the user how would i go about doing this. i dont … ![]() | |
Hello everyone. I am working on a site that has a backend allowing the client to use a rich text editor to change the content of her pages. The editor page has a form that looks like this: [code=html]<form name="edit" method="post" action="processedit.php"> <textarea name="editor" id="editor" cols="50" rows="10"> <?php echo $content; … | |
Parse error: syntax error, unexpected $end in /home/wmsumo/public_html/student_profile.php on line 394 IN THIS PROGRAMME.... <?php @session_start(); include('mysql.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css"/> </head> <body> <div class="overall_container"> <div class="div_head" style="border-bottom: 0px solid red;"><img src="images/header.jpg"/></div> <div class="div_menu"> <div class="div_menu_right"> <?php $id = $_GET['user']; $query = "SELECT … ![]() | |
I'm using int type in my database, what I should put in order to catch the input data by users? mysql_real_escape_string is not working because I think he can cater only the string values. here is my codes. [CODE]<?php /* NEW.PHP Allows user to create a new entry in the … | |
Hello i am new to php and i need some help. I'm looking to delete a section of a php file (start - end) from another file with a submit button. So lets say i have logdata.php and index.php. The submit button would be in the index.php and on the … | |
I have a php code that suppose to have a user enter a number in and it out puts all people in my database who is the same age or younger. Instead of it working it give me the error: Error: You have an error in your SQL syntax; check … | |
![]() | Hey everyone, I am trying to develop an addon for my admin area to send a text to my clients. I am trying to populate a select menu that will list clients that have added their mobile phones. I am using the following tables. [LIST] [*]tblclients [*]tblcustomfields [*]tblcustomfieldsvalues [/LIST] At … ![]() |
Hey friends, I have installed 2.2.22 version of apache which I think is not completely compatible with windows, because after configuring http.conf file for php and also configuring v-host , it doesn't work properly. I have used .msi installer with ssl compatibality from apaches authorised website. Please give suggestion if … | |
Hey guys, using a dynamic div here to spit out definitions based on final dispositions of records. I have a database that contains all dispositions and the definitions of each disposition. I want to break after so many characters, so i use the php wordwrap() function but get an odd … | |
Hi can anyone tell me how I add a row to a database table (gamescores) that will record a userID and the number of points they have gained. I also have to update two session variables and use them to update values that appear on the screen by adding code … |
The End.