39,323 Topics
| |
Hi all, Does anyone know of any software/classes that can be used to generate images of network diagrams? We are using a tool called Graphviz using Perl at the moment but the diagrams are looking a little bit dated! The networks will be pretty small, consisting of 3 or 4 … | |
i have a long string which contains a url. I want to extract that url from that particular string. Please help me. | |
Hi everybody, I have a specific problem, and cant get over it. For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code: [CODE]header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://www.somesite.com/images/$img");[/CODE] The problem is that the image doesn't … | |
[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". … | |
Hi, I know the problem that I am having is related to the change in PHP5 about strings and arrays, however I do not understand why my script is affected. It seems like I am not trying to add more variables to an array. I do not success in order … | |
Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above? | |
Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set … | |
[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve … | |
Php code for button wheh we press the button it give previous infrmation about that filed | |
Description: ------------ Doing the following SimpleXML text comparison does not give the expected results. Reproduce code: --------------- [CODE] <?php $sxe = simplexml_load_string('<root a="123" />'); echo $sxe['a']."\n"; if ($sxe['a'] == '123') { echo 'They are equal.'."\n"; } else { echo 'They are not equal.'."\n"; } [/CODE] ?> Expected result: ---------------- 123 … | |
hello i satya i need information about how to install php and how we can use it | |
i am trying to store the user entered form data (using php )to a .txt file.. and when i am trying to display the .txt file using php .. the contents are displayed along with the delimiter ( ||) ..how do i get rid of the delimiter in the display … | |
I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only … | |
how many menus and what features are needed to build Shopping Cart? | |
Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give … | |
I want to know how to update a href link with javascript using an image. I have a image which has to update a href which displays a lightbox. Could someone please tell me know to do this. | |
Hi all, I have a number of refreshing divs in my code, all of which work fine. Ive been trying to create a dynamic graph using the same method, but when i run the script all i can see is the following when the graph should be PNG ��� … | |
I'm not really sure what's going on. I've looked all over the internet and have been stuck on this issue for days. It seems as though few have run into this problem and those that have - have no suggestions or even any replies. CKEditor's help forum has nothing on … | |
Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work. I am trying to change this url: [url]http://domain.com/viewAlbum.php?aid=2[/url] (any number) to this url: [url]http://domain.com/album/2/[/url] Here is my .htaccess file and I dont know if … | |
I have cretaed a login page in php got the database and connection how ever when i register i get an error Error: User not added to database. this code is in my register.php file can anyone help thanks [CODE] // Make sure query inserted user successfully if ( !mysql_insert_id() … | |
Hello I want to make file hosting website. As like megaupload or rapidshare. How can I do this. I know how to upload a file, rename file, etc. Actually I need to know. How to prevent file or directory to access from un authenticated user. Please suggest what is the … | |
Has anyone worked on Agentpress theme on wordpress? Brad | |
ok guys i have a litle peace of script that needs some modefying the page was original that you must ad you admin pass to accept a new fusker upload! but becouse i intregrate it in a new system it can be done after you see the images so only … | |
Hi! I have a problem with the following statement: [code] $dbres = mysql_query("SELECT UNIX_TIMESTAMP(`huur`) AS `huur`,huur1,`login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`attlosses`,`attwins`,`deflosses`,`defwins`,`cash`,`type`,`clan`,'maffiamode',`avaurl` FROM `[users]` WHERE `login`='{$_GET['x']}'"); if($def = mysql_fetch_object($dbres)) { if($def->login == $data->login){ print " <tr><td class=\"mainTxt\">You kicked yourself in the nuts... now what?.</td></tr>\n"; }else if($def->login == $admin1) print " <tr><td class=\"mainTxt\">Do NOT attack … | |
hello.. i am creating cmc pages from admin side. i have 3 level menu in front end. my database table structure for cms pages 'name,parent_id,description,status'. now i have to display all pages subpages and sub of subpages in menu. how to write this query? [CODE]<!-- BEGIN Menu --> <ul id="nav"> … | |
i wanna get two inputs and calculate them. how can i do? my code is [CODE] <input type="text" name="a" /> <input type="text" name="b" /> <input type="submit" name="Submit" value="calculate" /> <?php if ($a > $b) echo "a is greater than b"; else echo "a is greater than b" ?>[/CODE] please help … | |
Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas … | |
[CODE] <?php class X { function X(){ if($_POST['break']=='yes'){return;} } } class Y extends X{ function Y(){ parent::__construct(); print("Y_constructor_finished"); } } $_POST['break']=='yes'; $new_Y=new Y(); // will print "Y_constructor_finished" [/CODE] i does't work with return it still print Y_constructor_finished | |
Hi guys Can I use HTML Frames with PHP? I presumed I can do this by.. <?php session_start(); require("auth.php"); require("do_html_header.php"); if($_SESSION['SESS_admin'] == 0) require("do_menu.php"); else require("do_menu3.php"); do_html_header(); print"<h1>Welcome ". $_SESSION['SESS_FIRST_NAME']."!</h1>"; do_menu(); ?> </body> <frameset rows="50%,50%"> <frame noresize="noresize" src="limits.php" /> <frame noresize="noresize" src="limits.php" /> </frameset> </html> I have put it everywhere … | |
html.html is below [CODE]<form action="734608271.php" method="POST" /> Carrier: <select> <option name="car" value="nothing">------------------------------</option> <option name="car" value="Alltel">Alltel</option> <option name="car" value="AT&T">AT&T</option> <option name="car" value="BoostMobile">Boost Mobile</option> <option name="car" value="CentennialWireless">Centennial Wireless</option> <option name="car" value="EinsteinPCS">Einstein PCS</option> <option name="car" value="Nextel">Nextel</option> <option name="car" value="Sprint">Sprint</option> <option name="car" value="T-Mobile">T-Mobile</option> <option name="car" value="US Cellular">US Cellular</option> <option name="car" value="VerizonWireless">Verizon Wireless</option> <option name="car" … |
The End.