39,316 Topics

Member Avatar for
Member Avatar for patk570

Hello everyone, I am a beginner at PHP, and I have been working with some php code, I built a search result page, a random string generator and a few other ones. But I would like to get a new idea for the website I am working on. I am …

Member Avatar for diafol
0
195
Member Avatar for vedro-compota

Hi there)) Guys please tell me - how to make reference to directory which is on higher level that site root (by php - site is on local machine) - may by this situation need some aliases in apache .conf file? As I see the server(apache) don't want to understand …

Member Avatar for vedro-compota
0
184
Member Avatar for FakeTales

Hey i am currently working on a book store for a university project. And would like to implement that only admins can access the backend of the website. My login scripts currently allows all types of users Login . I have two mysql tables a [B]user [/B] table and a …

Member Avatar for blocblue
0
423
Member Avatar for ronny22

[B]Hey guys just asking for some help on my code to see where am going wrong thats all [/B] Right am making a simple CMS site and my problem is that i want everything to be shown on my index page nothing is and i dont know why it is, …

Member Avatar for simplypixie
0
185
Member Avatar for cascer1

hello, i've been working on this website for a while ([url]www.scfan.net[/url]), but for some reason the page: /gameinfo.php has an error with the session code. i'm using this code on every other page on the website too. but only /gameinfo.php and /livestream.php and /tac_protoss.php have the problem. could anyone help …

Member Avatar for broj1
0
87
Member Avatar for violaceous

Hi all, I'm new to PHP and was wondering if someone could help me... I need to write something so that when row "expire" (this is the date the account expires) is 5 days from expiring, a message shows up. I can format everything myself, I'm just drawing a blank …

Member Avatar for Smeagel13
0
109
Member Avatar for daniel36

I dont know where to save curl libraries downloaded from [URL="http://curl.haxx.se"]http://curl.haxx.se[/URL].can any one tell me.I have followed instructions given on the page [URL="http://devzone.zend.com/160/using-curl-and-libcurl-with-php/"]http://devzone.zend.com/160/using-curl-and-libcurl-with-php/[/URL] for installing curl.

Member Avatar for daniel36
0
81
Member Avatar for nathanpacker

Hey, I'm running a mysql query, and would like to run a script if the query returns no results. But what do I use to test for no results? Something like: [PHP] if (!$query) { do this } [/PHP] But just not sure how to implement it. Little help?

Member Avatar for BradChesney79
0
2K
Member Avatar for wxflint

Hello what im looking for here is to get the next addition in the database to drop below the first set of tables. at the moment it is only showing the last persons submission it does create the tables with the data but with only the last persons. when the …

Member Avatar for wxflint
0
210
Member Avatar for billmudry

After a few months working on another website, I am back finishing a list of coding tasks on my TAXA Wood Knowledge Base. One of the most important pages in the site is the one that lists (so far) over 15,000 different botanical names of woods. Each single name listing …

Member Avatar for phorce
0
171
Member Avatar for jonnyboy12

Hello all. I am trying to set a session variable as a string like this. [CODE] $_SESSION['something']="hello"; [/CODE]this does not work I also tried this. but it didn't work; [CODE] $name =$_SESSION['something']."hello"; [/CODE] and if i do this [CODE] $_SESSION['something']=$_SESSION['something']."hello"; [/CODE] the value ends up like this hellohellohellohellohello So what …

Member Avatar for phorce
0
43
Member Avatar for jacksantho

Hi, I dont know, what mistake i made in my code. [CODE][B]test1.php[/B] <?php namespace MyNameSpace; class A { public function B() { echo "san"; } } ?>[/CODE] [CODE][B]test2.php[/B] <?php include('test1.php'); $test=new MyNameSpace::A(); $test->B(); ?>[/CODE] [B][url]http://localhost/test2.php[/url] Error: Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in C:\xampp\htdocs\MyNameSpace\test2.php on line …

Member Avatar for gilgil2
0
5K
Member Avatar for gilgil2

Hi I have a database of information and the code to get that data out of the database based on the url, it will be some like [url]www.website.com/thekooks[/url] and then will display the information in the database for them. The bit I am struggling with is where do I put …

Member Avatar for phorce
0
126
Member Avatar for Mogradjinn

I'm trying to set up a timeout test on a selection of files. The files run the test via an include, which contains the following: [CODE]$inactive = 20; /* check to see if $_SESSION['timeout'] is set */ if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); …

Member Avatar for Mogradjinn
0
327
Member Avatar for furlanut

I want to insert values into 3 different tables with auto_increment of primary key. My code below creates 2 records for the first table and 1 each for the second and third AND a Failure 'duplicate entry xxxx for key PRIMARY' for the second and third. The ADD RECORD does …

Member Avatar for diafol
0
297
Member Avatar for gilgil2

Hi, I am trying to make a link based on info stored in MySQL, the code I have got so far is [CODE] if (isset($_POST['search_now'])) { $result = mysql_query("SELECT * FROM bands WHERE BandName LIKE '%$BandName%'"); $page = "<a href=\"http://www.website.com/$row['PageName']\">$row['BandName']</a>"; while($row = mysql_fetch_array($result)) { echo 'Band Name: '; echo $row['BandName'] …

Member Avatar for gilgil2
0
146
Member Avatar for eltonpiko

hi i dont know if this the right place to post this but launching a new business and need to manage it from overseas and is there a php or any web base script which i can use to do this. Automate sales process and close more deals Customize & …

Member Avatar for mikulucky
0
65
Member Avatar for NullReturned

So I'm having this weird issue, where I can do SELECT statements and INSERT statements just fine, but when I do this UPDATE statement, it sorta works. It runs without errors, and even outputs that 1 row is affected. But when I check the MySQL, nothing is updated. I've echo-ed …

Member Avatar for mikulucky
0
276
Member Avatar for Vijaysurya

Hi guys, I am a webdeveloper i am create one social media website using php.please help me I need serverside coding for profile page settings(for example Facebook) Pls send Send me coding for my email. My email I'd [email]is.vksuriya2007@gmail.com[/email].

Member Avatar for cereal
-2
134
Member Avatar for polinolin

Hello dude. Happy New Year. I want to asking about generating primes algorithm. Can you advice tell me what the fast generating primes algorithm except Sieve of Eratosthenes algorithm? thank you. i want to apply the algorithm to my cryptographic system..

Member Avatar for polinolin
0
107
Member Avatar for gilgil2

Hi, I am having trouble echoing something into a url. The code I've got is: [CODE] <?php $code = "kooks"; echo '<a href="http://website.com/'$code'">The Kooks</a>'; ?> [/CODE] But I get the message: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /hermes/web11b/b146/moo.3finking/unsignedgigs/test.php on line 3 Thanks for your help

Member Avatar for gilgil2
0
101
Member Avatar for jacob21

I need a tooltip where I can show content dynamically using (Query String [B]demo.php?id=12[/B]; id will change) jQuery, AJAX and MySQL.

0
59
Member Avatar for liphoso

I have the code below but it does not do what i want it to do. [CODE] "UPDATE products SET quantity = quantity - 1 WHERE product = $'product'"; [/CODE] I have a data base called products with field quantity, now i do not know how to code such that …

Member Avatar for hari.sarvothama
0
139
Member Avatar for inni2626

Hello everyone, I haven been trying to connect to my database but i have been getting this error: Error message: SQLSTATE[28000] [1045] Access denied for user 'mgs_user'@'localhost' (using password: YES) Does anyone know what is causing this error? please advice thanks

Member Avatar for pritaeas
0
65
Member Avatar for peterpa

WELL I AM TRYING TO DO THIS BUT NOT GETTING ANY RESPONSE FORM SERVER DELIMITER // CREATE PROCEDURE getchgp(in ol varchar(100),in nw varchar(100),in sch varchar(100),out res varchar(100)) BEGIN SELECT pass INTO res FROM registration WHERE pass=ol AND schno=sch; UPDATE registration SET pass=nw WHERE schno=sch AND pass=ol; END // DELIMITER ; …

Member Avatar for smantscheff
0
59
Member Avatar for ALFA-FOXTROT

I'm having the biggest headache with this code.... Im trying to show the data correctly but it's not showing as i want... Hope you can help me out.... I have the HTML: [code] <table border="0" cellpadding="4" cellspacing="0" class="display" id="results"> <thead> <tr> <th width="10%">Id</th> <th width="10%">Time</th> <th width="10%">User</th> <th width="10%">Name</th> <th …

Member Avatar for ALFA-FOXTROT
0
462
Member Avatar for xecure

I have a database full of user. This is roughly how the database looks: [CODE]| username | sex | birthdate | zip_code | |----------+-----+------------+----------| | coolUser | M | 02-14-1987 | 90210 | | blueUser | F | 06-16-1982 | 10011 | | . | . | . | . …

Member Avatar for Sogo7
0
383
Member Avatar for sakarora

please help me..!! i urgently need a php script which would send email to a recipient if changes/insert occur in database. Details: suppose i have table name employee with fields: emp_id name email status 1 abc abc@xyz Yes 2 xyz xyz@acb NO now, say if status of emp id changes …

Member Avatar for sakarora
0
127
Member Avatar for mcwebalizer

I make an image administrator with PHP / MYSQL / AJAX. I try upload image - success! After uploading image I refresh page. uploaded image has added to list. I press delete button - image removes from list. But why it doesn`t remove from mysql list??? File can be downloaded …

Member Avatar for swapy
0
126
Member Avatar for davy_yg

Hi, I am having problem in receiving e-mail through contact form. contact_us.php [CODE] <h2>Contact Us</h2> <br /><br /> <form action="send_email1.php" method="POST"> <table border="0" cellpadding="2"> <tr> <td>Nama Lengkap: </td> <td><input name="nama" type="text" value="" size="30" /></td> </tr> <tr> <td>E-mail: </td> <td><input name="email" type="text" value="" size="20" /></td> </tr> <tr> <td>Nomor Telepon: </td> <td><input …

Member Avatar for simplypixie
0
115

The End.