39,316 Topics

Member Avatar for
Member Avatar for SQLpower

Hello. I am trying to connect my MYSQL Database to my JpGraph but it is not working. Any help is appriciated. Here is my conde. <?php include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_bar.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_line.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie3d.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/db.inc"); $host = "localhost"; $username = "root"; $password = ""; $database = "test"; …

Member Avatar for LastMitch
0
2K
Member Avatar for jcreate4

PHP: Display Image from Database I'll Keep It Short Because I Need Help Immediately. Im Trying To Do Exactly What On This Tutorial But Don't Know Where To Start. I've Recently Posted Two Post About This But Have Yet To Find Anyone Completely Helpful! If Knows ANYTHINg About This, Fell …

Member Avatar for jcreate4
0
280
Member Avatar for andyy121

i wont to know why we have to equal this variabel what is theri meaning $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_text'];

Member Avatar for EvolutionFallen
0
224
Member Avatar for rustydust

need help finding whats wrong syntax error in line 265 <?php function pay_upline( $refered, $level, $oamount ) { global $Db1; global $username; global $settings; global $today_date; $return = 0; $sql = query( "SELECT user.membership, memberships.downline_earns FROM user JOIN memberships ON memberships.id=user.membership WHERE user.username='{$refered}' and type='1'" ); if ( 0 < …

Member Avatar for diafol
0
404
Member Avatar for bsewell

Hi, I have a table and I need to write a SQL to limit the resulset set based on 2 conditions, by IP and out of that resultset, remove the rows which have nothing in 2 columns. So I have tried this but it's not producing the expected results: SELECT …

Member Avatar for smantscheff
0
107
Member Avatar for pink_05

Please help me with this... I cannot insert pictures into the folder and it is not saving in the database But it creates album folder. Thanks $albumname = addslashes($_POST['albumname']); $target_path = "Gallery/images/".$albumname."/"; @$imagename = basename($_FILES['image']['name']); @$target_path = $target_path . $imagename; $file = $_FILES['image']['tmp_name']; //@$image = addslashes(file_get_contents($file)); $album_target = "Gallery/images/".$albumname; @$image_size …

Member Avatar for pritaeas
0
616
Member Avatar for jackbauer24-2

So I just started learning MySQL. I am learning from [Tizag](http://www.tizag.com). They are using PHP files. Now I can see that the PHP files are slightly complex, I'm only 15. And they also recommended PHPMyAdmin. This GUI tool has many complicated options. So I quite don't know what to use. …

Member Avatar for jackbauer24-2
0
503
Member Avatar for showman13

OK, hopefully this question makes sense... I have a select that I have been to randomly select a record within a table The Table was simply a list of member IDs 'mem_id' BUT Now I've added a couple more fields to the table, one of which allows the member to …

Member Avatar for showman13
0
150
Member Avatar for tnjiric

Hello everyone, I'm having trouble with Joomla non-existing category re-direct problem. I cannot seem to find the proper rewrite url line for .htaccess file for the following problem. I have my website http://www.dubrovnik.com I'd like to send user to my 404 Page whenever user request for non-existing link. I've managed …

Member Avatar for spammyyammy
0
189
Member Avatar for lifeworks

Hi Im getting into a php mvc framework, available here ([url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#8[/url]), but they only explain their code, and dont offer much other advice on the basics of working inside a framework... how would i go about posting a form? working outside of any framework i usually just post the form …

Member Avatar for speedovic
0
3K
Member Avatar for jackbauer24-2

Go here: http://www.tizag.com/phpT/fileupload.php Under the heading "**php - file upload: uploader.php**" there are these sentences:- ----$_FILES['uploadedfile']['name'] - name contains the original path of the user uploaded file. ----$_FILES['uploadedfile']['tmp_name'] - tmp_name contains the path to the temporary file that resides on the server. The file should exist on the server in …

Member Avatar for urtrivedi
0
191
Member Avatar for safgom

I have a database and want to display data in rows then create a link to show the whole data when selected. Kindly guide me how to get the right php script for creating the link to display the whole row from database.

Member Avatar for LastMitch
0
205
Member Avatar for Djmann1013

// set timeout period in seconds $inactive = 1; // Testing. Change back to 600 when done // check to see if $_SESSION['timeout'] is set if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); header("Location: index.php"); } } $_SESSION['timeout'] = time(); The code above works fine. …

Member Avatar for LastMitch
0
387
Member Avatar for jcreate4

Hello, Im Jeffrey McCain! Im Trying To Build A Website And The Last Thing I Need To Know How To Do Is Display Imade From A Datbase! I Found A Tutorial >http://www.codeofaninja.com/2011/02/how-to-resize-and-print-image-file-from.html < But I Don't understand How To Implement It! I Will Glady Pay ANOYONE Who Can Show Me …

Member Avatar for jcreate4
0
302
Member Avatar for jcreate4

Hello, To Keep It Short! I'm Building Three Websites. And I Basically From What i Was Told Need To Put Images On In A Row Going Down The Page And The Images Need To Come From A Database Which Is Mysql And Im Guessing That PHP And Such. Also When …

Member Avatar for jcreate4
0
428
Member Avatar for Tko_1

Im tring to show image1.png if it exists, else show image2.png <?php $image1 = images/image1.png; $image2 = images/image2.png; if ( $image1 < true ) { echo "$image1"; } else { echo "$image2"; } ?> I am getting a Warning: Division by zero Thank you

Member Avatar for Tko_1
0
175
Member Avatar for DJ-DOO

Hi Folks, I've recently started using High Charts to chart dynamic data from my database. I was on last week with an issue in relation to my column charts not rendering. I managed to figure that out with the assistance of other forum users. I now have a new problem, …

Member Avatar for sandi triana
0
3K
Member Avatar for klemme

I need to create a video gallery for a website, and would like to create it using the html5 video tag backed up by videojs. As I havent worked with video uploads before I have some doubts on how to approach it: What file size would you recommend as a …

Member Avatar for klemme
0
498
Member Avatar for shiva.thapa

Hi, we have a page where we have our host status like up/down and many others. I just wanted to write a php scripts which finds the host up/down and only displays this in homepage. How can we perform this task.

Member Avatar for diafol
0
122
Member Avatar for vizz

I have hosting and domain with https://www.znetlive.in (with Apache version 2.2.21) suppose www.abc.com I want to rewrite urls.(Which is not working in anyways) http://www.abc.com/index.php for this http://www.abc.com http://www.abc.com/about.php for this http://www.abc.com/about http://www.abc.com/portfolio.php for this http://www.abc.com/portfolio http://www.abc.com/contact.php for this http://www.abc.com/contact I have tried all possible ways but it is not working. …

Member Avatar for vizz
0
432
Member Avatar for GlenRogers

Hi all, I cant get this at all. Ihave a form with a series of radio button, all which represent a category of animal. I have given each radio button a value which is the same as the mysql table it represents. For example: <input type="radio" name="delete" value="tortoises">Tortoises<br /> When …

Member Avatar for GlenRogers
0
2K
Member Avatar for johndohmen1963

can someone explain me wy the folowing query dosn''t work because i want to select only where the values are 1 , 2 , 3 , 4 and so ond and count these rows $link = mysql_connect("localhost", "bla", "bla"); mysql_select_db("db", $link); $result = mysql_query("SELECT * FROM narr_turnier_".$onlyconsonants." WHERE startnummer <> …

Member Avatar for johndohmen1963
0
113
Member Avatar for hafiz.muhammadakas

please i have a problem with my login page when i hosted my website it is showing me this error please help me here are the errors that it show:- 1. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/coezelib/public_html/checkstaffLogin.php:10) in /home/coezelib/public_html/checkstaffLogin.php on …

Member Avatar for gabrielcastillo
0
147
Member Avatar for atiqur_29

here is an example that if i enter id then it will retrieve data from database & print it within form fields. my database has only three column- id, name & number. here is my index.html file: <html> <head> <script> function showData(str) { if (str=="") { document.getElementById("ajax-content").innerHTML=""; return; } // …

Member Avatar for gabrielcastillo
0
246
Member Avatar for Aamir18

Sir, my site url ix www.site.com/exploits.php?id=1 how can i chng it to www.site.com/exploits/1 plx help me?

Member Avatar for diafol
0
324
Member Avatar for ehpratah

Hi guys need some extra help/eye here to point out what am i doing wrong basically i want to display the data from mydbase.by the way the purpose of this page is for posting article anyway what im trying to do is put a Next and previous navigation bar but …

Member Avatar for ehpratah
0
167
Member Avatar for dbalas

Hi! Im getting this error : Warning: preg_replace(): No ending delimiter '.' found in C:\wamp\www\oa\include\config.inc.php on line 67. This is the line `$file = preg_replace(".*/",'',$e_file);`. tried to put . everywhere but its not so simple for me hahaha... Anny ideas? Thank you!

Member Avatar for LastMitch
0
518
Member Avatar for Noth

Before I start, I just wanted to make it clear that I have never used PHP before, therefore none of the code in this post is mine. It is all from tutorial sites that I am trying to get to work. My mistakes will probably be incredibly basic. Anyway, I'm …

Member Avatar for broj1
0
154
Member Avatar for mrcniceguy

Is there anyone who can explain to me how can i store image in a folder to the server then the path to mysql. i dont know even how to get started,i will appreciate for your help. Or links where i can find the tutorials.

Member Avatar for yanmyoe
0
5K
Member Avatar for phpHelp

hello, can any1 me help with live chat module in php for e-commerce site???how to keep the track of visitor's queries and replies in DATABASE? Plz help

Member Avatar for Djmann1013
0
185

The End.