39,320 Topics
| |
Hi, Some decoded a zend file for me but i get this error: [CODE=php]Parse error: syntax error, unexpected '*' in /home/xxx/public_html/.main.php on line 136[/CODE] the code is: [CODE=php]mt_srand( ( double ) * 1000000 );[/CODE] I just delete the [b]*[/b] ? Sorry i dont know much about php. | |
Hi.. I'm new bie in php.I'm trying to create a "Asset Tracking System" software using php,mysql. I create menu named ats_itmentry,ats_itmissued,ats_itmreturned. but how to make each three form for insert data through these ? pls help me. i want it with php. | |
Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I want to be able to have an admin page link show up when i log in as … | |
I am creating a simple report using FPDF which opens fine. I have a link on my php page to generate the report in a new tab. But after generating the report, when i click to any button or radio box on the php web page, the design view of … | |
I'm building a few simple CMS variables into an Dynamic site that I half-built with Dreamweaver. The following code is the initiation of a paginated recordset display generated by Dreamweaver: [CODE]$currentPage = $_SERVER["PHP_SELF"]; $maxRows_creditsList = 6; $pageNum_creditsList = 0; if (isset($_GET['pageNum_creditsList'])) { $pageNum_creditsList = $_GET['pageNum_creditsList']; } $startRow_creditsList = $pageNum_creditsList * … | |
hi guys! I got a problem when I want to display the array from the database and rank it. can someone fixed this problem:- [CODE] <?php session_start(); include "mysql.php"; // you have already opened your db connection $report_status = isset($_REQUEST['reportTotal']) ? $_REQUEST['reportTotal'] :""; //$query = mysql_query("SELECT * FROM `supplier_report` " … | |
hi everyone I need help regarding my php code. I used array to insert data in the database. I want the value will be in ranking system such as: 1 0.575 2 0.456 3 0.327 the thing is the value whic is in the database such as 0.575 will be … | |
Hello Someone decoded a zend file for me.. after uploaded it on ftp i get some errors, i tryed to fix but (dont know if what it did is right, i dont have skills in php) now im stuck and i dont know where the problem is. Please take a … | |
I have a twitter clone and i was wondering how to display users tweets on his profile. | |
Hi, I ve got php set up on my localhost using IIS 7 which all works fine. iv also got Argosoft mail server.net free setup as well. The problem i have is that when i try to send an e-mail using a php e-mail script i get the following error: … | |
Hi guys, I have a very simple question I can't solve because I haven't used arrays. How can I make a For Loop that increments by 1 and when it does that takes the value and puts it in an array. So eg. Loop 1 Array = 1 Loop 2 … | |
Is it possible to get a PHP page to popup in a new page after a form post? Then, return information from the popup page to the parent page? Right now when I post my data, the browser window navigates to the new page and I have no way to … | |
I have a little twitter clone but how to display messages from mysql from newest to oldest. [CODE]<?php session_start(); $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; $date = date("d-m-Y"); if ($submit){ mysql_query(" … | |
Hi, new in PHP stuffs and coding I have question, I How do you add randomizing numbers for each reload the number fluctuates from the number i provide (ex. 1-10%) and also add microtime(like 0.3123213 or 1.32423) Im really newb here at PHP | |
Is it possible to write a php function that wraps every newline inside a <pre></pre> block with a <code></code> block? An example would be something like: [code] <pre> <code>first line here</code> <code>second line here</code> <code>third line here</code> </pre> [/code] | |
Hi. I'm using php and mysql for a system. I have some questions on INSERT query. When we are using INSERT, in our query.... i. Is it necessary to include each field included in the table we are going to insert value with (though some of the field maybe do … | |
Ok i am making a CMS using PHP/Mysql (its designed as a learning experience for me so it will not be anything like mambo etc... :) ) Anyway, here are some screenies. If anyone wants to help then I would happily share what little code I have written. | |
Hi, My site uses sessions and for example on login a random token as a hidden field in the form is generated and added to the session. As i am on shared hosting i set my own session path outside root directory and if for example session is tampered in … | |
hi all what i want to do is that when im running a shell script, if there is error(like permition denied) i wil be able to catch it as string my code is [code] $cmd= `sh /blabla/bla.sh` print_r($cmd); [/code] if the script is ruuning with no errors, im able to … | |
I need a php script if I were to see the page It would read specific country | |
i have register a domain on domain.com and setup my own name servers e.g ns1.mydomain.com ns2.mydomain.com but when i access my page it shows me the following error..... Great Success ! Apache is working on your cPanel® and WHM™ Server what should i do next i have never install any … | |
Hey guys, i am currently working on a project. It's a web application for registering the amount of time an employee has worked. I have written the web app for adding a new employee and for adding a timestamps( e.g work done). Now my problem is like this i need … | |
i keep getting this i cannot see the problem i have looked Parse error: syntax error, unexpected T_STRING in /home/wwwmmsw/public_html/includes/languages/english/contact_us.php on line 15 [code=php]<?php /* USERCART 2 Lithium [url]http://www.usercart.co.uk[/url] Copyright (c) All right are reserved 2001 - 2009 USERCART ECOMMERCE [email]sales@msweets.co.uk[/email] */ define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your … | |
I now how to make a profile but how to make for every user when he logs to view button my profile and takes them to their profile. | |
Hey guys, I have a problem. I have a connections_lib.php file this will handle all of my db connections, this works AMAZINGLY (power of OOP). Unfortunately some of my other classes require connection to the databse therfore they must use these methods (is that the right word for OOP I'm … | |
Why it won't send this to mysql.Connection is ok.Here is the code. [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; if ($submit){ $queryreg = mysql_query(" INSERT INTO messages VALUES ('','$micro','$username') "); … | |
hey,,, i am have a project to do a web Statistics website like Alexa ; what i need is a way to get all needed information to save it in my db ; i will use PHP with javascript to implement this ; what data i want to retrieve : … | |
we have just started learning PHP as a course in our 2nd year subject Internet Application development. below are the codes that we have worked on so far. [B][U]Homepage :[/U][/B] [code=html]<HTML> <HEAD> </HEAD> <BODY bgcolor='yellow'> <P align='center'><FONT color='blue' size='6'>ABC & Company</FONT></P> </BODY> </HTML>[/code] [B][U]Login.php :[/U][/B] [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
I have a code to detec backlink from yahoo and google like this : [CODE] function google_backlink($uri) { $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); $url = 'http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link:'.$uri.'&filter=0'; $v = file_get_contents_curl($url); preg_match('/of about \<b\>(.*?)\<\/b\>/si',$v,$r); preg_match('/of \<b\>(.*?)\<\/b\>/si',$v,$s); if ($s[1]!=0) { return $s[1]; } else { return ($r[1]) ? … |
The End.