Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~19.4K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.

28 Posted Topics

Member Avatar for Siberian

I'm not sure what you're trying to do... here's a [JSBin](http://jsbin.com/vazit/2/edit) with what you posted and it is creating output, I just don't have any idea what you're grabbing and what result is expected. Maybe some more code would help. Even elaborating on that jsbin would be great^^

Member Avatar for Siberian
0
170
Member Avatar for Pravesh_1

You set `type: "POST"` but you're sending `data:"cart_itemid="+cart_itemid+"&cart_qty="+cart_qty` as if it were `"GET"` try replacing the `type` or changing how data is sent. On another note, if you're already using jQuery, take a look at `.post()` in the documentation for a shortand ajax post request with callbacks.

Member Avatar for Member #120589
0
2K
Member Avatar for jovstudios

I don't know laravel, but I think I would need to take a look at the method `save()` in the `question` class to see what it's doing with those values. Although, since you are in a loop, saving one item should lead to saving another. You might also want to …

Member Avatar for veedeoo
0
5K
Member Avatar for ray100

<form method="POST" action="OnlineOrders.php"> <table border=0> <tr> ............... </tr> </table> <br /> <input name="submit" type="submit" value="Submit Order" /> <input type="reset" name="reset" value="Recalculate Order" /> </form> <hr /> Keep in mind all inputs, even the buttons, have to stay in the form you want to submit. Your `OnlineOrders.php` will collect the forms …

Member Avatar for veedeoo
0
294
Member Avatar for Siberian

I think you want it to be something like this: function House (w, d, a) { //i trimmed down the passed variables for clarity as to what goes where this.windows = w; this.doors = d; this.attic = a; } //create an instance of House passing in the variables var myHouse …

Member Avatar for Siberian
0
346
Member Avatar for noor92

I think you want to use the contents of 'admin/addBlogs' script within the 'user/blogger' script before content is published to the user. The problem I see is, once a php script finishes execution and sends output to the user the only way to run another php script would be through …

Member Avatar for Fernando_4
0
230
Member Avatar for Fernando_4

Here's how I'm thinking about inserting values into two tables. Each `reservation` will have a set of `services` the amount of which can vary, so I need to setup the query dynamically, here's my first sketch, although not tested yet. function saveBooking($fullBook) { $mysqli = new mysqli(HOST, USER, PASSWORD, DB_PRICE); …

Member Avatar for Fernando_4
0
2K
Member Avatar for Siberian
Member Avatar for Tinnin

I'm guessing it has to do with the [array_pointer](http://www.php.net/manual/en/function.reset.php) keep in mind they don't recommend `reset` on associative arrays, but it might give you an idea. **Edit** Take a peek at the resulting jQuery function to see if the problem comes from PhP or if it's jQuery we have to …

Member Avatar for Tinnin
0
371
Member Avatar for patk570

It will always say "All Assets Deleted", because on line 6 you didn't say it's an `else` block. As for the condition itself, it seems you might want to take a look at [affected_rows](http://us1.php.net/manual/en/mysqli.affected-rows.php).

Member Avatar for Fernando_4
0
200
Member Avatar for sigitas.darguzas

Not knowing exactly what you're struggling with and for the looks of it, you're getting stuck right at the beggining I would suggest [Google Forms](http://www.google.com/google-d-s/createforms.html). It might just give you all you need. Give us more information if all this doesn't work for you.

Member Avatar for Fernando_4
0
193
Member Avatar for mark103

I'm not sure how `simple_html_dom.php` works and if it can read classes/ids so you could do something like `$html->find('p id=links')` or `$html->find('p #links')`. Can you post the `find()` function from that class so we can try to figure it out? If it's something you grabbed from someone on the web …

Member Avatar for veedeoo
0
170
Member Avatar for centenond

Try making a file in the `users` folder that will select the right file. I'm assuming you're detecting `username` from a post variable. So `users/users.php` would have something like this: if(isset($_POST['username']) && $_POST['username'] != ''){ //include "users/username/profile.php" include_once('users/'.$_POST['username'].'/profile.php'); } You'll want to add testing if the file exists before including …

Member Avatar for centenond
0
277
Member Avatar for mpc123

So basically you want to populate a second `select` based on what was selected on the one you posted, correct? We need a bit more info if that's the case. 1. Do you want to do this after a reload? The user selects a manufacturer and posts the form in …

Member Avatar for Member #120589
0
182
Member Avatar for spluskhan

1. The `mysql` API to connect to the database is [deprecated as of php5.5](http://www.php.net/manual/en/intro.mysql.php), try looking into [msqli](http://pt2.php.net/mysqli) or [pdo](http://www.php.net/manual/en/book.pdo.php) 2. `mysql_real_escape_string` [deprecated as of php5.5](http://pt2.php.net/mysql_real_escape_string) 3. Carefull with [sql injection](http://www.php.net/manual/en/security.database.sql-injection.php). Try looking at [prepared statements](http://www.php.net/manual/en/mysqli.quickstart.prepared-statements.php) 4. If you're concatenating strings to build your query you should change this: line …

Member Avatar for spluskhan
0
236
Member Avatar for carlosvz21

From what I can see you would need to test `$_POST['soptns']` value to output the correct file. Something like this on the same file, since the form action is itself: switch($_POST['soptns']){ case 'NS': include_once(normalSale.php); break; case 'PT': include_once(platinumSale.php); break; case 'SP': include_once(seniorsSale.php); break; case 'UP': include_once(upgrade.php); break; default: include_once(default.php); break; …

Member Avatar for Fernando_4
0
238
Member Avatar for Nollyvenon

EXLPLAIN SELECT customer.custid, customer.compname, customer.phone, customer.depot, acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate, STR_TO_DATE(transactions.timestamp,'%Y-%m-%d') AS debtage, format( customer.balance, 2) AS balance, customer.balance AS balance1 FROM customer, mastorders, acctofficer, transactions WHERE customer.custid = mastorders.custid AND acctofficer.acctoffid = customer.acctoff AND customer.depot = '$depot' GROUP by customer.id ASC Go into your database manager (phpMyAdmin …

Member Avatar for Nollyvenon
0
222
Member Avatar for Fernando_4

With the following bit of code I'm trying to get the key's of each sub-array that I will need at this part of the script. It's working so I'm not too worried about this, I just think there should be a pre-built function to do the same thing. foreach($myArray['ico'] as …

Member Avatar for Fernando_4
0
273
Member Avatar for ravi142

I believe you're looking for websockets, however I haven't got a clue how it works, or how to implement it. I just read about it the other day and never tried it out. Try starting [here](http://en.wikipedia.org/wiki/WebSocket), after that I'm not the best person to point you in any direction on …

Member Avatar for Fernando_4
0
216
Member Avatar for Iikeloa

I've never tried to pull that off, but I would think to start looking [here](https://developers.google.com/maps/web/). Eventually you'll find a term that repeats itself and you're ready to google what you actually need. Sorry for not helping more, but I've never done it, so I don't really know where the info …

Member Avatar for Ajay Gokhale
0
274
Member Avatar for Enigma360

Before the loop try to see what you're actually getting from the database with this: echo '<pre>'; var_dump($resultSet); echo '</pre>'; In the loop you can try this to see what each `$i` block is giving you: echo '<pre>'; var_dump($resultSet[$i]); echo '</pre>'; If that doesn't show you the problem, try posting …

Member Avatar for Member #120589
0
1K
Member Avatar for jovstudios

Usually it has to do with whitespace before `<?php` or after `?>`. Sometimes it has to do with `session_start();` being called twice, normally in diferent files. If that's the case then you need to test `if(!headers_sent())` and put your `session_start();` in there. There is a fix for it if it's …

Member Avatar for jovstudios
0
3K
Member Avatar for Fernando_4

Hi all, I've made a query that gathers info from several tables, after it was working, there was the need to integrate yet another table, however I can't seem to put it to work. I've seen some of this "witchcraft" before, but can't seem to find a tutorial, basically because …

Member Avatar for Fernando_4
0
481
Member Avatar for Nollyvenon

Wow, you gotta work on indentation... it's a pain to read through this. I'm going to repost the query with indentation and code high-lighting for the next guy. At this point I'm still not sure I can help though... QUERY: SELECT DISTINCT customer.custid, customer.compname, customer.balance AS balance, customer.phone, acctofficer.acctfullname AS …

Member Avatar for Fernando_4
0
274
Member Avatar for kreyzy

There are a few options here. /* BEFORE PAGE IS SENT */ 1. When the page loads, grab the array you need from the database and pass it along to javascript with `json_encode()`. /* AFTER PAGE IS SENT */ 2. Use AJAX's asynchronous xhr to a file that grabs that …

Member Avatar for Fernando_4
0
241
Member Avatar for stokie-rich

Try [this](http://www.apachefriends.org/faq_windows.html) > The easiest way is to use the security console, which you can access at http://localhost/security/ This console creates a password for the MySQL user root and adjusts the phpMyAdmin configuration. > Another approach is to configure it with the "XAMPP Shell" (command prompt). Open the shell and …

Member Avatar for Fernando_4
0
162
Member Avatar for PriteshP23

**On line 3**: You define ['current_language'] as 'fr' and never change it, so it will always be 'fr'. **On line 15**: This is personal preference, I wouldn't create a link to a language that is translated. English would always be English and never Anglais, since when the website opens I …

Member Avatar for PriteshP23
0
332
Member Avatar for Ahmed_48

Is the error message saying headers are sent on line `header ('location: user/dashboard.php');` or is the error being thrown from `dashboard.php`? Usually I get that error when I `session_start();` on the target file. If that is the case, you're probably calling `session_start();` on both files and since there might be …

Member Avatar for Fernando_4
0
244

The End.