Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for websponge

Hi There, Im really really pulling my hair out here, and was hoping you guys could help a really poor coder! basically, I have a table with a list of contracts in it, and a table with a list of applications for each contract. I can succesfully populate a list …

Member Avatar for Ronie_1
0
3K
Member Avatar for stokie-rich

Hi guys, I'm creating a register page for my website. I have got things sorted now, when i try and test the page and try and register a user the data is not been inserted into the database I'm not getting any error messages at all so I dont know …

Member Avatar for stokie-rich
0
301
Member Avatar for websponge

I have a select box that looks up values from my database, and then runs a jquery function to display the results, function is working fine, but some of the values in the database have spaces i.e "BT Global" the results are returning everything that starts with "BT" any help …

Member Avatar for almostbob
0
287
Member Avatar for websponge

I have a curious issue with Twitter bootstrap, I include the bootstrap.js , but my popovers and tooltops dont work? `<button type="button" class="btn btn-lg btn-danger" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>` All my other js stuff works fine, I have a …

Member Avatar for websponge
0
240
Member Avatar for websponge

In the process of converting an old web application I did from MYSQL to MYSQLi and am a bit lost with echoing a result, This code works in the old app with Mysql: <textarea name="dump" style="width:300px; height:400px;"> <?php include ("../connect.php"); $content = mysql_query("SELECT $field FROM customer WHERE cusid = '$cusid'") …

Member Avatar for websponge
0
329
Member Avatar for websponge

I import a spreadsheet (csv) into my sqli database (keeps a track of all our firewalls) there are 10 excel columns , one for each connected network on the firewall. i would like all these columns to be imported as one entry in the database, so 1 database field would …

Member Avatar for websponge
0
196
Member Avatar for websponge

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\firewall\php\allresults.php on line 3 The annoying thing is, I have used this multiple times on different applications, I dont know why it think the result is boolean? the exact same code works on a different database, I just cant …

Member Avatar for websponge
0
222
Member Avatar for websponge

I want to have a supplier table, with ID, NAME, CONTACT, PHONE, etc, In my main table, a record can have more than one of these suppliers, what is the best way to select multiple rows from the supplier table if they relate to a record in the main table? …

Member Avatar for websponge
0
222
Member Avatar for websponge

`<a href="#" onclick='contacts($code)'>Contact Details</a>` This runs a jquery code with the value $code. in Firebug I can see it gets the correct rowset value, the jquery is below: function contacts(code){ jQuery.ajaxSetup({async:true}); jQuery.post("php/contact.php", {code: code}, function(data) { $('#results').hide(); $('#results').fadeIn(2000); $('#results').show() .html(data); }); } it is supposed to post this value to …

Member Avatar for anthonydaly
0
332
Member Avatar for websponge

Hi, I use a query which is identical throughtout my application, only thing that differs is the select part of the query, so for example: mysql_select_db("mydatabase", $con); $result4 = mysql_query("SELECT * FROM nap where Exchange LIKE '$majorvalue%'"); while($row = mysql_fetch_array($result4)) { $psba = $row['Site']; $status = $row['Status']; $spectrum = $row['InSpectrum']; …

Member Avatar for Atli
0
145
Member Avatar for websponge

Hi, I have been able to write to a text file, then another page can read from that file, all good.. Problem is I'm using multiple txt files just to set various variables. There is a reason I'm not using a database. Can I somehow, write to a file after …

Member Avatar for minitauros
0
199
Member Avatar for websponge

Hi, I have a large monitor at work on the wall, and I want to display some simple information, I have set up WAMP on my desk PC, I want to enter information on my desk PC and submit that data, and it displays on the main screen, I have …

Member Avatar for websponge
0
247
Member Avatar for satbir4

case 'forward': $id = $_REQUEST['id']; $con = mysql_connect('localhost', 'root', '') or die("error in mysql connect"); mysql_select_db('database', $con) or die ("error in select db"); if ($con) { $query = "select * from signup1"; $runQuery = mysql_query($query, $con) or die("abc"); while ($abc = mysql_fetch_assoc($runQuery)); { echo "<div>$abc[ID] $id</div>"; } } break; ------------------------------------------------------------------------ …

Member Avatar for kaustavbanerjee
0
195
Member Avatar for websponge

I have the below code that grabs all the data I need, but as there are duplicate names in each row, I only want to display this once as a heading, and then display the array. <?php echo "<h1>Results Summary</h1>"; //TABLE RESULTS $psba = $_POST['psba']; $con = mysql_connect("localhost","root",""); mysql_select_db('project', $con) …

Member Avatar for minitauros
0
179
Member Avatar for websponge

Most annoyingly I cant get this to work, I made a sample table where there will be duplicate entries in some of the fields, and I need to display then all. table looks a bit like this id county city phonenumber the id is unique as is the phonenumber, but …

Member Avatar for websponge
0
179
Member Avatar for websponge

Hi There, I have written a very simple notice board page, for displaying information to the team where I work. I want to have an admin.html page where I can enter details in fields and select from drop downs, then hit submit and it populates a page called "notice.html" is …

Member Avatar for JorgeM
0
125
Member Avatar for websponge

I have no idea why this query doesnt work? the WHERE part will work if I put the value in of the rowset, but I can echo out the variable $faultid and its the same? it executes the query but doesnt change the record? all the variables are declared before …

Member Avatar for websponge
0
153
Member Avatar for websponge

Hi, I have a simple query here, one of my database fields is boolean, 1 or 0, when I echo out the value I want it to be yes or no, I did this, but it doesnt work, $value = .$row[booleanresult]; if ($value ="1"){ $value = "YES" } else { …

Member Avatar for websponge
0
716
Member Avatar for Riu 2009

hope everyone is fine there, i just wanted to ask that i want to display the image im storing in the database using php.. but i dont know how to display it, would i be able to retrieve it simply by echoing?? im not getting how would the whole process …

Member Avatar for pritaeas
0
215
Member Avatar for websponge

I have a script that uploads files to a folder and it works lovely when im testing on my XAMPP box, if someone else tries to upload it says Warning: copy(C:/xampp/htdocs/data/mottramg/AEGON.jpg): failed to open stream: No such file or directory in C:\xampp\htdocs\training\upload.php on line 27 Could not copy file. now …

Member Avatar for websponge
0
109
Member Avatar for websponge

I have a "New Employee" script, that when you enter the details it creates a folder according to their username, using mkdir, this all works fine, I now have managed to import 200 entries into my DB from a spreadsheet, but I need to create a folder for all the …

Member Avatar for websponge
0
83
Member Avatar for websponge

I have a simple form that uses a bit of jquery, <form action="" method="post" enctype="multipart/form-data"> <label for="file">Upload File:</label> <input type="file" name="userfile" id="userfile" /> <input type="button" value="Submit" onclick="uploadfile()"/> </form> the uploadfile() in my .js file looks like this: function uploadfile(){ var userfile = document.getElementById('userfile').value; var username = document.getElementById('username').value; $.post("php/upload.php", {userfile: userfile,username: …

Member Avatar for websponge
0
522
Member Avatar for websponge

I have this in my index.php include ('php/config.php'); $connection = new db(); $connection->connect(); the class (in a file called config.php) looks like this: <?php //CONECTION CLASS class db { var $host="localhost"; var $username="root"; Var $password=""; var $database="training"; public function connect() { mysql_connect($this->host,$this->username,$this->password); mysql_select_db($this->database)or die(mysql_error()); $sql = "SHOW TABLES"; $result = …

Member Avatar for broj1
0
157