39,323 Topics
| |
This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script: [codebox]<?php require_once "connect_to_mysql.php"; //$mysqli = new mysqli("localhost","user","pw","db"); $result = mysql_query("SELECT * FROM example") or die(mysql_error()); echo "<table border='1'>"; echo "<tr> <th>Name</th> … | |
<?php session_start(); //Check User Session include ("includes/check_session.php"); include 'includes/config.php'; $current_module = 'MATERIALREQ'; //$related_modules = array('BIDDINGENTRY','PIRRAISING','POLIST','BIDDINGSELECTION','GRV'); include ('includes/check_acl.php'); //include 'includes/config.php'; include 'includes/sqlquery.php'; include 'includes/message.php'; $valid = ''; $current_user_id = $_SESSION['associate_id']; //if the session value is present, set whether the last transaction is stored or not if (isset($_SESSION['mrmsg']) && ($_SESSION['mrmsg']!='')) { $valid … | |
I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered. We tried just a simple echo but when you view just … | |
I am generating a PHP error with this function but don't know why. Little help... [CODE] function Validate_Page_Nav($LastPage, $ErrorPage) { if($_SESSION['Staff_ID']) { $trimmed = str_replace($staffroot, '', $_SERVER['SCRIPT_NAME']); $resul = $db->query("SELECT * FROM Page_Access WHERE URI = '$trimmed'") or die("failed to get access data"); $page_access = $resul->fetch_assoc(); $URI_access = explode(",", $page_access['User_Level']); … | |
[CODE]<?php if(isset($_POST['register'])) { $username = $_POST["username"]; $password = $_POST["password"]; $email = $_POST["email"]; $conf_pass = $_POST["confirm"]; $error = false; $connect = mysql_connect("localhost", "stickmi1_data", "electricCompany"); $database = mysql_select_db("account", $connect); $usernameCheck = mysql_query("SELECT username FROM users WHERE username = '$username'"); // Registration Form Validation Script if(!$username || !$password || !$email || !$conf_pass) { … | |
Hi, I have a piece of code below: [code=php] // Check our data if (preg_match('/[^a-zA-Z0-9]/', $new_pagealias)) $error = "Invalid page alias. Use only normal characters."; if (preg_match('/[^a-zA-Z0-9]/', $new_pagekeywords)) $error = "Invalid page keywords. Use only normal characters."; if (!$new_pagealias) $error = "Page alias is missing"; if (!$new_pagename) $error = "Page … | |
i have to crop images. but i have code to crop images. but .png files are not cropping that code. i have to crop .png image files. plz any one help me. | |
Hi, nusoap doesn't support php 5.3 therefore, It is not usable for me. Is there any SOAP+PHP example for me to be run on my localhost rather than pointing/accessing wsdl files of other websites? Everything should be stored in my localhost. Thanks | |
Dear All, Since in Our Country is blocking the FTP port 21 and others port, we only use Web2FTP service. But unfortunately Web2FTP service is also down. Do you know a good PHP based WebFTP script. many thanks in advance, regards, saya | |
Hi folks, my url querystring is [CODE]querytring.php?checkin=10/11/2009&checkout=10/01/2009&minprice=100&maxprice=200&page=1[/CODE] i want to remove [CODE]&page=1[/CODE] from this url. Please help Thanks | |
hi guys, just wanna ask, could you give me some code about session time out? i have a different page for login and index. any help would be very much appreciated. thanks in advance ^^ | |
PHP mailer class is a pretty famous 1 so i believe many of u have used or atleast heard abt it.. The problem i m facing is when i try using it with my application on my local system it works fine but as soon as i upload it on … | |
I need to send sms to my customers. I developed my website using PHP. I need Own SMS gateway to send and receive message. How to create own SMS gateway? | |
Hey! I'm quite new to this whole thing, so please don't fire me with shait on this one =D I'm trying to learn PHP and MySQL, and atm I am trying to make a website which corresponds with a database - a database with customers. 1. I want the page … | |
Hi guys, I'm trying to use the mail php function to send my subscribers emails like news, information, offers,etc. The problem is when I test it on my system (Fedora 11 box and sendmail is up and running without changing any settings) I usually receive the mails after 4 or … | |
HI my host doen't support cron job (I can't see any thing that related to cron function in my control panel of my host. I want to execute a page daily and the server automatically run the page daily.What shloul i do?How can I do that? My host is byethost … | |
what is the script to customise a login. for example if "abc" logs in to the website, how do i get it to display "Welcome abc", if "pqr" logs in "Welcome pqr" and so on... please help! | |
how do i add an image path to a mysql table of mine which has "product image" as a field. i have saved the necessary images to images folder in root folder as well... please help! | |
Is there a way I can display an image, pdf or word doc that is stored in a my sql database? I tried to pull up a word doc with this: [CODE]$sql = " SELECT * FROM user WHERE username = '$_SESSION[MM_Username]' "; $result = mysql_query($sql); while($row=mysql_fetch_array($result)) { $inv=$row['invoice'];} ?> … | |
When I run my fie and open this one folder, I get this error message Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ezbiz/public_html/ar/templates/a_settings.html on line 61 Any help will be greatly appreciated. | |
Hello all.. Very new to php and am working on an online strategy game as a precursor to my business websites. I am having a problem coming up with something I thought would be simple. My intention was to have a list of units display on the screen using checkboxes … | |
Hello, I am a training developer in .NET and web 2.0 technologies and this one is an exercise from one of our first lessons in PHP: accessing a MySQL database from a PHP script. The problem I've encountered is that while database is thought to be in Unicode (i.e. the … | |
Hi everbody, can anybody give me the code for payment integration for hsbc,paypro. also i need code for xml aparing in php5 thanks shailesh | |
Hi, This is Ashok from India as I am a student but currently having a training for web development so I made a Job Consultancy Project and face the following problems.... 1. i designed a form on which user can input the information about the candidates and a search will … | |
Hi, Is it possible to upload a file that contains some data and directly save the data in specific fields as in database using php?. this is important as the data retrieved according to their field name. Thank you. | |
[CODE]hi can any one tell me how validation can be done in PHP WITH OUT USINGjavascript[/CODE] | |
Hi everyone, I am new to PHP, and I am trying to upload 10 files with differnt input names. From reading forums and such, I came up with the following code, but it doesn't seem to be working. Can anyone tell me where I went wrong? [code] if (isset($_POST[submit])) { … | |
i'm a newbie in php, and i know this question maybe silly :( i tried to create a php file that will redirect to yahoo.com. i have searched in google, and i found that the code should be [CODE] <?php header('Location:http://www.yahoo.com ?> [/CODE] but i found that it didn't work. … | |
i'm a newbie in php and maybe my question is so silly. i tried to create a session in a file named login.php [CODE]<?php include "koneksi.inc.php"; $name=$_POST['name']; $password=$_POST['password']; $hasil=mysql_query("SELECT * FROM TabelPegawai WHERE nama='$name' AND password='$password'"); $row=mysql_fetch_array($hasil); if ($row[nama]==$name AND $row[password]==$password) { session_start(); $_SESSION['namauser']=$row[nama]; $_SESSION['passuser']=$row[password]; $_SESSION['level']=$row[jabatan]; if($_SESSION['level']=="Manager") {header("location: manager.php");} else … | |
Hi, I'm sure this is very simple but am unable to find out how. How do I display an email address as a mailto link like in HTML? I have records displayed from a mysql db but would like to display a member email address that acts as a mailto … |
The End.