345 Posted Topics
Re: Ask the person who design your database...he's the only one who can answer you why he saves record about info of your images on your database and uploaded images but doesn't link them. I think the images field should contain the source/path of the images for you to to be … | |
Re: you have to study error handling.... you have to work on try catch | |
Re: all you need is this query... [CODE]<?php $sql = mysql_query( "UPDATE price SET prod_price = (prod_price * .10)" ); ?>[/CODE] | |
Re: ok but ill use a simple example for this one... 1st u need 2 files and a database lets assume you got these tables, and ill make this simple but you can add more fields... candidate can_id = int, primary, autoincrement name = varchar votes = int category = varchar … | |
Re: u need to files for these 1.) newwindow.php 2.) newwindow2.php 1.) newwindow.php [CODE]<a href="#" onclick="window.open('newwindow2.php','_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=200');">click me</a>[/CODE] 2.)newwindow2.php [CODE]<img src='images/sulik.jpg'><br /> description: We and i know so many Things.... travel from great saltwater to home of biting lizard[/CODE] i know how to … | |
Re: you need to join two tables together assuming you had these 2 table ill make this example simple /* tables */ price price_id - int(autoincrement) prod_price - double acc_establishments prod_id - int(autoincrement) prod_name - varchar price_id - int /* query */ select ae.prod_name, p.prod_price from acc_establishments as ae join price … | |
Re: it's very useful dude... joins are used when combing two tables. learn it here [url]http://w3schools.com/sql/sql_join.asp[/url] ![]() | |
Re: i recommend you use database to store information of your files... it's a more professional approach. | |
Re: well i haven't really tried using mysql_fetch_assoc(), coz. i prefer mysql_fetch_array(). but from what i know about mysql_fetch_assoc() it returns associative arrays of your recordset. So your array index and values are dependent on your recordset. try print_r() to see the array values. | |
Re: you can use the javascript window.location instead... <?php echo "<script>window.location='yourpagehere.php'</script>"; ?> | |
Re: maybe it's an automatic replacement of spaces between your text. | |
Re: you can't run php code inside a .html files.... your files should be saved as .php so it will be parsed at the server. ![]() | |
Re: use the 'and' keyword to add more conditional statements | |
Re: yeah ive used unlink() too, to delete files... there's no problem... the only error it will generate is when assigning incorrect path. The file you wish to delete does not exist. | |
Re: i recommend you use .png.... about the banner will it's not really hard... because you use database...all you do is some mysql query and PHP predefined function rand(); here ill show you the code lets assume you had these table banner banner_id - int (primary)(autoincrement) src = varchar [CODE]<?php mysql_connect('localhost','root',''); … | |
Re: can u provide the code? so that we can trace it.... bec. u fail to show it to us... i suspect that 2 possible reason. 1) maybe you put that code outside your html form. 2.) maybe the form method you use is 'get' and not 'post'. coz. your retrieving … | |
ok it's my time to ask.... who knows framework of CRM and PMS? which it could help me lessen my job on developing them in hardcode. | |
Re: its very easy here ill give u an example 1.) if your using html form then all you have to do is specify the url of other page you wish to link. All data will be sent automatically in the receiving end as query string and your url may look … | |
Re: you create it? then how come your asking us? you should be able to know the problem if your the real creator... or maybe you just got that code from another source and copy and paste it? am i right? | |
Re: its normal to hyperlink to show the physical path... ur the only person babbling about it... well if u really think that's a security breach... then you can encrypt your hyperlinks and decrypt the link to its original in the receiving end. i mean link page that will decrypt the … | |
Re: hehe nice one... you want us to debug every single line of your code then get the answer with no sweat. I think there's no one here that would eagerly read every line of code you got there... take note your code is so long... gives me headache... the only … | |
Re: you dont have a choice... your client wants to select it rather than entered them wich is much faster... you have to use series of html form select... it would be a lot easier if it would be inputed in a textfield like this [CODE]<?php if(isset($_GET['btnsubmit'])){ $number = $_GET['number']; if(is_numeric($number)){ … | |
Re: coz. you directly use $azz variable without first defining it... define it like this $azz = $_GET['azz']; just put that above your code, befor you output $azz. | |
Re: waaaa! why would u want that ? i dont understand why u want to include a file in a URL? | |
Re: window.location='yoourpage.php'; ![]() | |
Re: PHP OOP framework? then codeignigter best suites your needs! | |
Re: i recommend use xampp | |
Re: you can put it outside the html tag, just above the <html> tag | |
Re: try this. [CODE]<?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); mysql_query("UPDATE Persons SET Age = '36' WHERE FirstName = 'Peter' AND LastName = 'Griffin'"); mysql_close($con); ?> [/CODE] | |
Re: 1st you have to study how to upload. then DBMS add a field in your current database that will hold the source file of the image. and then query the field and view it via <img src=''> tag | |
Re: just changed double quotes(") VALUES("hi","$username","$password","beta") to single qoute('). | |
Re: your problem is "its just its blank, there's no forms of submit button". u mean u only see a blank page, no form and submit button? If my understanding is right? then this is really a comedy.... the answer is quite obvious... i dont see any code of your html … | |
Re: u forget to show the code... well based in your problem i think its because you didn't escaped the singe quotes (') in the sentece. coz. single qoutes has meaning in PHP so they should be escaped. i think this may be your code [CODE]<?php echo "10 Facts about World's … | |
Re: yeah i agree with network18, check for the values of $a and $b... the fact that it work fine in phpmyadmin means your query is fine and should satisfy the query statement... if you had the correct values of $a and $b the query will return true. | |
Re: i dont know if i understand you right... but this is what i understand from your problem... and i come up with this code. [CODE]<?php mysql_connect('localhost','root',''); /* i use the default */ mysql_select_db('yourdatabase'); /* your database */ $sql = mysql_query( "SELECT new_user FROM yourtable WHERE userid='1'" ); /* for this … | |
Re: here is my algorithm to your problem, just changed the values. [CODE]<?php if(isset($_POST['btnsubmit'])){ $chk = $_POST['chk']; foreach($chk as $val){ echo $val."<br />"; } } ?> <form method='post'> <?php while($row=mysql_fetch_array($sql)){ echo "<input type='checkbox' name='chk[]' value='".$row['fields']."' /> ".$row['fields']."<br />"; ?> <input type='submit' name='btnsubmit' value='submit' /> </form> [/CODE] | |
Re: Many people uses PHP coz. it's free | |
ei could someone help me with my problem. I got error running my projects on localhost. I dont know what caused this, but this problem occured when i replace my wampserver2.0c to the latest version wampserver2.0i. before there is no error it works fine. but now when i logged in … | |
i had problem running my projects on localhost. why does i cant access some of the page? there will be an error that says apache has encountered some serious error and need to be closed. this problem started after i replaced wampserver2.0c to the latest wampserver2.0i. Is there a problem … | |
hello guys im a php programmer and im new to homebased programming jobs. I just want to have an idea on how homebased programming job works? how do i find some clients? how to transfer files? how to receive my payments? And they say you are paid per hour? but … | |
Hi everyone....I have a problem on my php date function... and i hope someone will help.... the PHP date function outputs incorrect results... It outputted incorrect date which is 8 hours late.... and i found out that the timezone has been set to UTC. So ive search the net and … | |
Re: Aha! at last! i found here what ive been searchin for.... tnxs bro your the best! |
The End.