39,320 Topics

Member Avatar for
Member Avatar for oneill

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.

Member Avatar for jomanlk
0
157
Member Avatar for quickworld

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.

Member Avatar for quickworld
0
105
Member Avatar for fawkman

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 …

Member Avatar for glycerine
0
110
Member Avatar for aditi_19

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 …

Member Avatar for urtrivedi
0
7K
Member Avatar for revata

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

Member Avatar for CFROG
0
146
Member Avatar for just_me

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

Member Avatar for just_me
0
92
Member Avatar for just_me

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 …

Member Avatar for just_me
0
96
Member Avatar for oneill

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 …

Member Avatar for fumnimda
0
117
Member Avatar for web3

I have a twitter clone and i was wondering how to display users tweets on his profile.

Member Avatar for CFROG
0
59
Member Avatar for puk

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

Member Avatar for puk
0
73
Member Avatar for Toxikr3

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 …

Member Avatar for Toxikr3
0
95
Member Avatar for Mapper99

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 …

Member Avatar for diafol
0
211
Member Avatar for web3

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

Member Avatar for Will Gresham
0
109
Member Avatar for raz0r

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

Member Avatar for darkagn
0
79
Member Avatar for seanooi

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]

Member Avatar for seanooi
0
151
Member Avatar for lcyew

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 …

Member Avatar for lcyew
0
97
Member Avatar for jbennet

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.

Member Avatar for Stefano Mtangoo
0
832
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
131
Member Avatar for severman

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 …

Member Avatar for severman
0
135
Member Avatar for web3
Member Avatar for sirhcnus
Member Avatar for Atli
0
48
Member Avatar for shishtawitch

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 …

Member Avatar for smartness
0
118
Member Avatar for K0ns3rv

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 …

Member Avatar for K0ns3rv
0
131
Member Avatar for msweets0778

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 …

Member Avatar for CFROG
0
104
Member Avatar for web3

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.

Member Avatar for CFROG
0
97
Member Avatar for Froger93

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 …

Member Avatar for Froger93
0
180
Member Avatar for web3

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') "); …

Member Avatar for diafol
0
71
Member Avatar for eramax

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

0
57
Member Avatar for rukshilag

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 …

Member Avatar for israrkhan
0
80
Member Avatar for crohole

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

Member Avatar for cwarn23
0
141

The End.